Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Prevent making useless symbols.
Browse files Browse the repository at this point in the history
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
nurse committed Dec 26, 2011
1 parent 26fa77a commit 6efdf1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/bundler/cli.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6efdf1c

Please sign in to comment.