summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2012-12-19 23:35:59 -0800
committerAndre Arko <andre@arko.net>2012-12-19 23:37:07 -0800
commit7c4ae0f8280bcffd3bb2bb6a317caebbeadf4131 (patch)
treef1846a1f2aeb7b91802b67aeb585aa6187e90a91
parentaa47b9a0f3269d43b7a3a047881ceab50ede546f (diff)
downloadbundler-7c4ae0f8280bcffd3bb2bb6a317caebbeadf4131.tar.gz
implement Gem::Command.build_args in rg integration
-rw-r--r--lib/bundler/rubygems_integration.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index 981920edcd..7b33381389 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -2,6 +2,15 @@ require 'rubygems'
module Bundler
class RubygemsIntegration
+
+ def build_args
+ Gem::Command.build_args
+ end
+
+ def build_args=(args)
+ Gem::Command.build_args = args
+ end
+
def loaded_specs(name)
Gem.loaded_specs[name]
end
@@ -109,12 +118,12 @@ module Bundler
end
def with_build_args(args)
- old_args = Gem::Command.build_args
+ old_args = build_args
begin
- Gem::Command.build_args = args
+ build_args = args
yield
ensure
- Gem::Command.build_args = old_args
+ build_args = old_args
end
end