Skip to content
Browse files

fix bundle cache again for rubygems 1.3.x

  • Loading branch information...
1 parent dfc5246 commit bad23b5bdbb74858c1eb2406f08901c9feb35807 @hone hone committed Aug 8, 2011
Showing with 2 additions and 7 deletions.
  1. +2 −7 lib/bundler/rubygems_ext.rb
View
9 lib/bundler/rubygems_ext.rb
@@ -162,14 +162,9 @@ def hash
if Gem::Version.new(Gem::VERSION) < Gem::Version.new("1.4.0")
class Version
def segments # :nodoc:
- @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
end

0 comments on commit bad23b5

Please sign in to comment.
Something went wrong with that request. Please try again.