summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-04-30 00:36:18 -0700
committerAndre Arko <andre@arko.net>2015-04-30 00:37:10 -0700
commit0a33372f62cbb06a3c6e8df8582c565ebc699853 (patch)
treeaea42857d9c1970f2d2940ac5f56cd34439bb946
parentc9a38adc1859307e31f02219a657fd62db4e7c81 (diff)
downloadbundler-0a33372f62cbb06a3c6e8df8582c565ebc699853.tar.gz
Move RubyGems 2.4.7 compatibility into 2.1+
-rw-r--r--lib/bundler/rubygems_integration.rb14
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