diff options
author | Andre Arko <andre@arko.net> | 2015-04-30 00:36:18 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-04-30 00:37:10 -0700 |
commit | 0a33372f62cbb06a3c6e8df8582c565ebc699853 (patch) | |
tree | aea42857d9c1970f2d2940ac5f56cd34439bb946 | |
parent | c9a38adc1859307e31f02219a657fd62db4e7c81 (diff) | |
download | bundler-0a33372f62cbb06a3c6e8df8582c565ebc699853.tar.gz |
Move RubyGems 2.4.7 compatibility into 2.1+
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 15d43c38a2..0107663057 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -467,9 +467,7 @@ module Bundler end def find_name(name) - Gem::Specification.stubs.find_all { |spec| - spec.name == name - }.map(&:to_spec) + Gem::Specification.find_all_by_name name end end @@ -510,9 +508,7 @@ module Bundler end def find_name(name) - Gem::Specification.stubs.find_all { |spec| - spec.name == name - }.map(&:to_spec) + Gem::Specification.find_all_by_name name end def fetch_specs(source, name) @@ -589,6 +585,12 @@ module Bundler def ext_lock Gem::Ext::Builder::CHDIR_MONITOR end + + def find_name(name) + Gem::Specification.stubs.find_all do |spec| + spec.name == name + end.map(&:to_spec) + end end end |