17650189 problem in UTILITY/RUBY
authorApril Chin <april.chin@oracle.com>
Fri, 25 Oct 2013 09:21:57 -0700
changeset 1525 a6f52c3cea4a
parent 1524 811bdd28dfee
child 1526 e02c36c9062c
17650189 problem in UTILITY/RUBY
components/ruby/ruby-19/patches/04-rubygems_version_rb.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ruby/ruby-19/patches/04-rubygems_version_rb.patch	Fri Oct 25 09:21:57 2013 -0700
@@ -0,0 +1,15 @@
+# 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
[email protected]@ -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.