Skip to content

Commit

Permalink
Merge pull request #838 from kana/fix-typos
Browse files Browse the repository at this point in the history
Fix a wrong type check in self.new
  • Loading branch information
Zachary Scott committed Mar 15, 2014
2 parents e2e3235 + f3b4dea commit 8b37d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/version.rb
Expand Up @@ -189,7 +189,7 @@ def self.create input
@@all = {}

def self.new version # :nodoc:
return super unless Gem::VERSION == self.class
return super unless Gem::Version == self

@@all[version] ||= super
end
Expand Down

0 comments on commit 8b37d86

Please sign in to comment.