diff options
author | Carl Lerche <carllerche@mac.com> | 2010-02-03 22:36:35 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-02-03 22:48:37 -0800 |
commit | 4582d39bf9b6c4a2cda880daee646a0bfb2ea8d5 (patch) | |
tree | da1b55e42ad1358cc9050c14c9f91934c4e1ba8e /lib/bundler/installer.rb | |
parent | f50ccd9e12006731383a1ed6c791e6a371693529 (diff) | |
download | bundler-4582d39bf9b6c4a2cda880daee646a0bfb2ea8d5.tar.gz |
Allow Bundler::Dependency to have multiple groups
Diffstat (limited to 'lib/bundler/installer.rb')
-rw-r--r-- | lib/bundler/installer.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb index 845dfc5d..2b440317 100644 --- a/lib/bundler/installer.rb +++ b/lib/bundler/installer.rb @@ -85,17 +85,17 @@ module Bundler def group_specs(specs) dependencies.each do |d| spec = specs.find { |s| s.name == d.name } - group_spec(specs, spec, d.group) + group_spec(specs, spec, d.groups) end specs end - def group_spec(specs, spec, group) - spec.groups << group + def group_spec(specs, spec, groups) + spec.groups.concat(groups) spec.groups.uniq! spec.dependencies.select { |d| d.type != :development }.each do |d| spec = specs.find { |s| s.name == d.name } - group_spec(specs, spec, group) + group_spec(specs, spec, groups) end end |