Skip to content

Commit a87db85

Browse files
committed
fix(core): remove rexml from dependencies
1 parent 91392a7 commit a87db85

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

generated/google-apis-discovery_v1/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ platforms :ruby do
2121
gem "redcarpet", "~> 3.5"
2222
end
2323
end
24+
25+
gem "google-apis-core", path: "../../google-apis-core"

google-apis-core/google-apis-core.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
3030
end

google-apis-generator/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ platforms :ruby do
3636
gem 'pry-byebug', '~> 3.2'
3737
end
3838
end
39+
40+
gem "google-apis-core", path: "../google-apis-core"

google-apis-generator/lib/google/apis/generator/templates/_method.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)