File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
lib/google/apis/generator/templates Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
2323 gem . required_ruby_version = ">= 2.5"
2424 gem . add_runtime_dependency "activesupport" , ">= 5.0"
2525 gem . add_runtime_dependency "gems" , "~> 1.2"
26- gem . add_runtime_dependency "google-apis-core" , ">= 0.11 .0" , "< 2.a"
27- gem . add_runtime_dependency "google-apis-discovery_v1" , "~> 0.5 "
26+ gem . add_runtime_dependency "google-apis-core" , ">= 0.12 .0" , "< 2.a"
27+ gem . add_runtime_dependency "google-apis-discovery_v1" , "~> 0.14 "
2828 gem . add_runtime_dependency "thor" , ">= 0.20" , "< 2.a"
2929end
Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
2929 gem.require_paths = ["lib"]
3030
3131 gem.required_ruby_version = '>= 2.5'
32- gem.add_runtime_dependency "google-apis-core", ">= 0.11 .0", "< 2.a"
32+ gem.add_runtime_dependency "google-apis-core", ">= 0.12 .0", "< 2.a"
3333end
Original file line number Diff line number Diff line change @@ -34,14 +34,16 @@ module Google
3434 # @see <%= api.documentation_link %>
3535<% end -%>
3636 class <%= api.service_name %> < Google::Apis::Core::BaseService
37+ DEFAULT_ENDPOINT_TEMPLATE = "<%= api.root_url.to_s.sub '.googleapis.com', '.$UNIVERSE_DOMAIN$' %>"
38+
3739<% for param in api.parameters.values.reject {|p| p.name == 'fields'} -%>
3840 # @return [<%= param.generated_type %>]
3941 # <%= block_comment(param.description, 8, 2) %>
4042 attr_accessor :<%= param.generated_name %>
4143
4244<% end -%>
4345 def initialize
44- super('<%= api.root_url %>' , '<%= api.service_path %>',
46+ super(DEFAULT_ENDPOINT_TEMPLATE , '<%= api.service_path %>',
4547 client_name: '<%= api.gem_name %>',
4648 client_version: <%= api.qualified_name %>::GEM_VERSION)
4749 @batch_path = '<%= api.batch_path %>'
You can’t perform that action at this time.
0 commit comments