summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-13 15:02:01 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-13 15:02:01 +0000
commitb3571b55971e92458cba6c13177bae7a9d9b6ffd (patch)
treed2aea6e726560b44e0649406f3199d110a60e143 /lib
parent81a807b1a26044b08520df4d3c510cb7d0252dc1 (diff)
* lib/rubygems: Update to RubyGems to 2.0.8. [ruby-core:57155]
[Backport #8900] the patch is provided by drbrain (Eric Hodel). this update contains a security fix for CVE-2013-4287. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems.rb4
-rw-r--r--lib/rubygems/version.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 5a3a3a1846..78bdc4867d 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -8,7 +8,7 @@
require 'rbconfig'
module Gem
- VERSION = '2.0.7'
+ VERSION = '2.0.8'
end
# Must be first since it unloads the prelude from 1.9.2
@@ -307,7 +307,7 @@ module Gem
@paths = nil
@user_home = nil
Gem::Specification.reset
- Gem::Security.reset if const_defined? :Security
+ Gem::Security.reset if defined?(Gem::Security)
end
##
diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb
index e983751c17..bbf04f5403 100644
--- a/lib/rubygems/version.rb
+++ b/lib/rubygems/version.rb
@@ -147,7 +147,7 @@ class Gem::Version
# FIX: These are only used once, in .correct?. Do they deserve to be
# constants?
- VERSION_PATTERN = '[0-9]+(\.[0-9a-zA-Z]+)*' # :nodoc:
+ VERSION_PATTERN = '[0-9]+(?>\.[0-9a-zA-Z]+)*' # :nodoc:
ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})*\s*\z/ # :nodoc:
##