diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-18 00:58:47 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-18 00:58:47 +0000 |
commit | 5383ccd9814c2ec81413ed51f5ff8775497ebe5a (patch) | |
tree | 212e391d6c32906cf4995487eba4c709614540d1 /lib/rubygems | |
parent | 6c1da63bd77b4caa409b919f8c9893b27f9ae1be (diff) | |
download | ruby-5383ccd9814c2ec81413ed51f5ff8775497ebe5a.tar.gz |
* lib/rubygems/version.rb: Fixed init_with warning by calling into
yaml_initialize (for syck) from psych's init_with
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/version.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb index ecf9f2b4ce..2ced9ccdfb 100644 --- a/lib/rubygems/version.rb +++ b/lib/rubygems/version.rb @@ -218,6 +218,10 @@ class Gem::Version @hash ||= segments.hash end + def init_with coder # :nodoc: + yaml_initialize coder.tag, coder.map + end + def inspect # :nodoc: "#<#{self.class} #{version.inspect}>" end |