components/ruby/ruby-19/patches/04-rubygems_version_rb.patch
author April Chin <april.chin@oracle.com>
Wed, 06 Nov 2013 14:12:13 -0800
branchs11-update
changeset 2813 db0bfa0fa498
permissions -rw-r--r--
PSARC/2013/269 Add Ruby 1.9.3 and EOF and Remove Ruby 1.8.7 15700054 SUNBT7023596 integrate ruby version 1.9.3 17650189 problem in UTILITY/RUBY

# Fix for 17650189 Problem with utility/ruby
diff -ru ruby-1.9.3-p448-orig/lib/rubygems/version.rb ruby-1.9.3-p448/lib/rubygems/version.rb
--- ruby-1.9.3-p448-orig/lib/rubygems/version.rb	Thu Apr 19 15:43:16 2012
+++ ruby-1.9.3-p448/lib/rubygems/version.rb	Wed Oct 23 15:52:30 2013
@@ -145,8 +145,8 @@
 
   include Comparable
 
-  VERSION_PATTERN = '[0-9]+(\.[0-9a-zA-Z]+)*' # :nodoc:
-  ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})*\s*\z/ # :nodoc:
+  VERSION_PATTERN = '[0-9]+(?>\.[0-9a-zA-Z]+)*' # :nodoc:
+  ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/ # :nodoc:
 
   ##
   # A string representation of this Version.