summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2015-12-01 10:34:57 +0900
committerHomu <homu@barosl.com>2015-12-01 10:34:57 +0900
commitf2035cc109212c36917cdf1f19beb168ab0e2ab0 (patch)
tree15e017d1eaacf5bfbd14a0e2481829d2364bdae3
parent9b36b70b6662ab456e5905d9acf1eb84a8fa1eab (diff)
parente88c7aa8c7fa812e92172149f6ef0128efb04a69 (diff)
downloadbundler-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.rb2
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