aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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