Permalink
Browse files

Revert "Revert "fix bundle cache again for rubygems 1.3.x""

This reverts commit 4a0697c.
  • Loading branch information...
1 parent 177cda6 commit 5b16789e6707133af0390a2dd878930f82022a34 @hone hone committed Oct 11, 2011
Showing with 2 additions and 7 deletions.
  1. +2 −7 lib/bundler/rubygems_integration.rb
@@ -255,14 +255,9 @@ def replace_entrypoints(specs)
# by monkeypatching it into the method in Rubygems 1.3.6 and 1.3.7.
def backport_segment_generation
Gem::Version.send(:define_method, :segments) do
- @segments_generated ||= false
- unless @segments_generated
- @segments ||= @version.scan(/[0-9a-z]+/i).map do |s|
- /^\d+$/ =~ s ? s.to_i : s
- end
+ @segments ||= @version.scan(/[0-9]+|[a-z]+/i).map do |s|
+ /^\d+$/ =~ s ? s.to_i : s
end
- @segments_generated = true
- @segments
end
end

0 comments on commit 5b16789

Please sign in to comment.