diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-07-25 11:02:53 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-07-25 11:02:53 -0500 |
commit | 3050ab317bbfc127b38e165fba8257e3015a0ffe (patch) | |
tree | 13a1b8f4b5ffd30ebad7534c1fe42f7fd9b59768 /lib | |
parent | 3a240097248bb381209811b59d0aa4b28b6a16b1 (diff) | |
download | bundler-3050ab317bbfc127b38e165fba8257e3015a0ffe.tar.gz |
Use reject! instead of select! for Ruby 1.8.7seg-locked-resolve-keep-platforms
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/dsl.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 91c791c73b..b064c80d4c 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -58,7 +58,7 @@ module Bundler expanded_path = gemfile_root.join(path) gemspecs = Dir[File.join(expanded_path, "{,*}.gemspec")].map {|g| Bundler.load_gemspec(g) }.compact - gemspecs.select! {|s| s.name == name } if name + gemspecs.reject! {|s| s.name != name } if name Index.sort_specs(gemspecs) specs_by_name_and_version = gemspecs.group_by {|s| [s.name, s.version] } |