summaryrefslogtreecommitdiff
path: root/lib/rubygems/version.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/version.rb')
-rw-r--r--lib/rubygems/version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb
index 50849857fe..2b7bf9b422 100644
--- a/lib/rubygems/version.rb
+++ b/lib/rubygems/version.rb
@@ -174,7 +174,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