File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
generated/google-apis-discovery_v1
lib/google/apis/generator/templates Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,5 @@ platforms :ruby do
2121 gem "redcarpet" , "~> 3.5"
2222 end
2323end
24+
25+ gem "google-apis-core" , path : "../../google-apis-core"
Original file line number Diff line number Diff line change @@ -25,6 +25,6 @@ Gem::Specification.new do |gem|
2525 gem . add_runtime_dependency "addressable" , "~> 2.5" , ">= 2.5.1"
2626 gem . add_runtime_dependency "mini_mime" , "~> 1.0"
2727 gem . add_runtime_dependency "googleauth" , "~> 1.9"
28- gem . add_runtime_dependency "httpclient" , ">= 2.8.1 " , "< 3.a"
29- gem . add_runtime_dependency "rexml"
28+ gem . add_runtime_dependency "httpclient" , ">= 2.8.3 " , "< 3.a"
29+ gem . add_runtime_dependency "mutex_m" # used by httpclient
3030end
Original file line number Diff line number Diff line change @@ -36,3 +36,5 @@ platforms :ruby do
3636 gem 'pry-byebug' , '~> 3.2'
3737 end
3838end
39+
40+ gem "google-apis-core" , path : "../google-apis-core"
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def <%= api_method.generated_name %>(<% for param in api_method.required_paramet
103103<% for param in api.parameters.values.reject {|p| p.name == 'key'} -%>
104104 command.query['<%= param.name %>'] = <%= param.generated_name %> unless <%= param.generated_name %>.nil?
105105<% end -%>
106- <% unless api_method.api_version.empty? -%>
106+ <% if api_method.api_version && ! api_method.api_version.empty? -%>
107107 command.set_api_version_header "<%= api_method.api_version %>"
108108<% end -%>
109109 execute_or_queue_command(command, &block)
You can’t perform that action at this time.
0 commit comments