class Bundler::RubygemsIntegration
def backport_segment_generation
This backports the correct segment generation code from Rubygems 1.4+
def backport_segment_generation redefine_method(Gem::Version, :segments) do @segments ||= @version.scan(/[0-9]+|[a-z]+/i).map do |s| /^\d+$/ =~ s ? s.to_i : s end end end