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:36:57 -0700 |
commit | b0a32a61d887fff954b419e9a95de6f3ed43e07f (patch) | |
tree | 34efd97d4b277f798487fa1784af7d775e61e1ec | |
parent | 18b25725eb43da35863ee851b7fefd9b1d144347 (diff) | |
download | bundler-b0a32a61d887fff954b419e9a95de6f3ed43e07f.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 15d43c38..01076630 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 |