components/ruby/ruby-19/patches/04-rubygems_version_rb.patch
branchs11-update
changeset 2813 db0bfa0fa498
equal deleted inserted replaced
2812:8dd40225690f 2813:db0bfa0fa498
       
     1 # Fix for 17650189 Problem with utility/ruby
       
     2 diff -ru ruby-1.9.3-p448-orig/lib/rubygems/version.rb ruby-1.9.3-p448/lib/rubygems/version.rb
       
     3 --- ruby-1.9.3-p448-orig/lib/rubygems/version.rb	Thu Apr 19 15:43:16 2012
       
     4 +++ ruby-1.9.3-p448/lib/rubygems/version.rb	Wed Oct 23 15:52:30 2013
       
     5 @@ -145,8 +145,8 @@
       
     6  
       
     7    include Comparable
       
     8  
       
     9 -  VERSION_PATTERN = '[0-9]+(\.[0-9a-zA-Z]+)*' # :nodoc:
       
    10 -  ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})*\s*\z/ # :nodoc:
       
    11 +  VERSION_PATTERN = '[0-9]+(?>\.[0-9a-zA-Z]+)*' # :nodoc:
       
    12 +  ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/ # :nodoc:
       
    13  
       
    14    ##
       
    15    # A string representation of this Version.