diff options
Diffstat (limited to 'lib/rubygems/version.rb')
-rw-r--r-- | lib/rubygems/version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb index 2ee887e213..10b0503294 100644 --- a/lib/rubygems/version.rb +++ b/lib/rubygems/version.rb @@ -177,7 +177,7 @@ class Gem::Version # REFACTOR: There's no real reason this should be separate from #initialize. def self.create input - if input.respond_to? :version then + if self === input then # check yourself before you wreck yourself input elsif input.nil? then nil |