vendor/bundler_gem/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb
# This backports the correct segment generation code from Rubygems 1.4+
# by monkeypatching it into the method in Rubygems 1.3.6 and 1.3.7.
This backports the correct segment generation code from Rubygems 1.4+
by monkeypatching it into the method in Rubygems 1.3.6 and 1.3.7.
This backports the correct segment generation code from Rubygems 1 . 4 + 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 ||= @version.scan(/[0-9]+|[a-z]+/i).map do |s|
          /^\d+$/ =~ s ? s.to_i : s
        end
      end
    end
def backport_segment_generation Gem :: Version . send ( :define_method , :segments ) do @segments ||= @version . scan ( / [0-9]+|[a-z]+ /i ) . map do | s | / ^ \d +$ / =~ s ? s . to_i : s end end end
This backports the correct segment generation code from Rubygems 1.4+
by monkeypatching it into the method in Rubygems 1.3.6 and 1.3.7.
This backports the correct segment generation code from Rubygems 1 . 4 + by monkeypatching it into the method in Rubygems 1 . 3 . 6 and 1 . 3 . 7 .