diff options
author | Andre Arko <andre@arko.net> | 2011-08-08 14:55:11 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-08-08 14:57:41 -0700 |
commit | 1ef523331b484e2f27d7945fbdd55b862f156fdb (patch) | |
tree | 22e242791b30d51f9dbd6f5f44af3eb666474892 /lib/bundler/rubygems_ext.rb | |
parent | a2ecae7590b57beb528449edcf51c0717ca5b525 (diff) | |
download | bundler-1ef523331b484e2f27d7945fbdd55b862f156fdb.tar.gz |
move the backport of Gem::Version#segment to RubygemsIntegration
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 55356b0149..54e72c53b7 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -158,16 +158,6 @@ module Gem alias eql? == end - # fix bug in Rubygems < 1.4 by backporting the segment code - if Gem::Version.new(Gem::VERSION) < Gem::Version.new("1.4.0") - class Version - def segments # :nodoc: - @segments ||= @version.scan(/[0-9]+|[a-z]+/i).map do |s| - /^\d+$/ =~ s ? s.to_i : s - end - end - end - end end module Bundler |