diff options
author | Homu <homu@barosl.com> | 2015-12-01 10:34:57 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2015-12-01 10:34:57 +0900 |
commit | f2035cc109212c36917cdf1f19beb168ab0e2ab0 (patch) | |
tree | 15e017d1eaacf5bfbd14a0e2481829d2364bdae3 | |
parent | 9b36b70b6662ab456e5905d9acf1eb84a8fa1eab (diff) | |
parent | e88c7aa8c7fa812e92172149f6ef0128efb04a69 (diff) | |
download | bundler-f2035cc109212c36917cdf1f19beb168ab0e2ab0.tar.gz |
Auto merge of #4130 - bundler:seg-fix-rake-push, r=segiddins
[GemHelper] Fix crash when pushing gem
\c @indirect
-rw-r--r-- | lib/bundler/gem_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb index d468194538..99d4194edf 100644 --- a/lib/bundler/gem_helper.rb +++ b/lib/bundler/gem_helper.rb @@ -94,7 +94,7 @@ module Bundler if Pathname.new("~/.gem/credentials").expand_path.exist? allowed_push_host = nil gem_command = "gem push '#{path}'" - if spec.respond_to?(:metadata) + if @gemspec.respond_to?(:metadata) allowed_push_host = @gemspec.metadata["allowed_push_host"] gem_command << " --host #{allowed_push_host}" if allowed_push_host end |