aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2011-07-05 18:07:16 -0700
committerAman Gupta <aman@tmm1.net>2011-07-05 18:07:16 -0700
commit03c7d3c08222a3c371f6d1e9ae16e7261c20fdcd (patch)
treefb98256b872ad51691f018850374ab7bcae85cd7 /lib
parent6cab7e9f74a0f4979af9cc5502d35f245e5bb5d5 (diff)
downloadbundler-03c7d3c08222a3c371f6d1e9ae16e7261c20fdcd.tar.gz
avoid modifying frozen array (fixes `bundle install --without` on kiji)
bundler-1.0.15/lib/bundler/cli.rb:157:in `map!': can't modify frozen array (TypeError)
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 87131931..3c8dee0b 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -152,10 +152,10 @@ module Bundler
opts = options.dup
opts[:without] ||= []
if opts[:without].size == 1
- opts[:without].map!{|g| g.split(" ") }
+ opts[:without] = opts[:without].map{|g| g.split(" ") }
opts[:without].flatten!
end
- opts[:without].map!{|g| g.to_sym }
+ opts[:without] = opts[:without].map{|g| g.to_sym }
# Can't use Bundler.settings for this because settings needs gemfile.dirname
ENV['BUNDLE_GEMFILE'] = File.expand_path(opts[:gemfile]) if opts[:gemfile]