Permalink
Browse files

fix regex that was mistakenly too greedy

  • Loading branch information...
1 parent 5f10534 commit 421538903bed582b6ae16a89230d6a242c7c13ec @indirect indirect committed Nov 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/source.rb
View
@@ -193,7 +193,7 @@ def cached_specs
idx = Index.new
@caches.each do |path|
Dir["#{path}/*.gem"].each do |gemfile|
- next if gemfile =~ /bundler-.*?\.gem/
+ next if gemfile =~ /bundler\-[\d\.]+?\.gem/
# Try to skip decompressing the gem to get at the gemspec if possible
cached_gemspec = gemfile.gsub(%r{cache/(.*?)\.gem}, 'specifications/\1.gemspec')

0 comments on commit 4215389

Please sign in to comment.