summaryrefslogtreecommitdiff
path: root/lib/bundler/source/metadata.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/source/metadata.rb')
-rw-r--r--lib/bundler/source/metadata.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/metadata.rb b/lib/bundler/source/metadata.rb
index 50b65ce0ea..8bdbaa5527 100644
--- a/lib/bundler/source/metadata.rb
+++ b/lib/bundler/source/metadata.rb
@@ -25,7 +25,7 @@ module Bundler
s.loaded_from = File.expand_path("..", __FILE__)
end
- if local_spec = Bundler.rubygems.find_name("bundler").find {|s| s.version.to_s == VERSION }
+ if local_spec = Bundler.rubygems.find_bundler(VERSION)
idx << local_spec
end