summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author7rans <transfire@gmail.com>2012-12-08 19:23:32 -0500
committer7rans <transfire@gmail.com>2012-12-08 19:23:32 -0500
commit544ad22dd08033c694317c0b413b3b4375f6e474 (patch)
tree7829a0cdaf1707513be209ff040cf43e31c4ea33
parentdabeb9f8afa742bff73c7cbf3566b293883e0489 (diff)
parent75eac2e95f269edec7e370458329db0a74f909d2 (diff)
downloadbundler-544ad22dd08033c694317c0b413b3b4375f6e474.tar.gz
Fix merge conflict with gem_push patch.
-rw-r--r--lib/bundler/gem_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index 06de00dc40..50c4dca982 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -73,7 +73,7 @@ module Bundler
guard_clean
built_gem_path = build_gem
tag_version { git_push } unless already_tagged?
- rubygem_push(built_gem_path)
+ rubygem_push(built_gem_path) if gem_push?
end
protected
@@ -156,5 +156,9 @@ module Bundler
}
[outbuf, $?]
end
+
+ def gem_push?
+ ! %w{n no nil false off 0}.include?(ENV['gem_push'].to_s.downcase)
+ end
end
end