Permalink
Browse files

Prevent making useless symbols.

Groups are concatenated with ':' in Bundler::Settings#without=,
and splited by ':' in Bundler::Settings#without. So replace ' '
with ':' to prevent making useless symbols and other objects.
  • Loading branch information...
1 parent 26fa77a commit 6efdf1cfe2a7de53e3e6bec070adae9cc8ccddf8 @nurse nurse committed Dec 3, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/bundler/cli.rb
View
@@ -161,9 +161,7 @@ def check
def install
opts = options.dup
if opts[:without]
- opts[:without].map!{|g| g.split(" ") }
- opts[:without].flatten!
- opts[:without].map!{|g| g.to_sym }
+ opts[:without] = opts[:without].map{|g| g.tr(' ', ':') }
end
# Can't use Bundler.settings for this because settings needs gemfile.dirname

0 comments on commit 6efdf1c

Please sign in to comment.