Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix regex that was mistakenly too greedy

  • Loading branch information...
commit 421538903bed582b6ae16a89230d6a242c7c13ec 1 parent 5f10534
@indirect indirect authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bundler/source.rb
View
2  lib/bundler/source.rb
@@ -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')
Please sign in to comment.
Something went wrong with that request. Please try again.