diff options
author | Austin Ziegler <austin@zieglers.ca> | 2013-11-24 17:55:49 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2013-11-24 17:57:57 -0500 |
commit | 6be836f59a041893cfc1c25668b3aa3552a7e334 (patch) | |
tree | 88975c38f276e5105dd1e123affe85c1eee104f1 /lib | |
parent | ade226b48b6f7f4be5c72c33924f771365b00203 (diff) | |
download | git-v1-bug-fixes.tar.gz |
Resolve issue #47: undefined method zero?v1.25.1v1-bug-fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mime/types.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/mime/types.rb b/lib/mime/types.rb index 40d299f71f..876300cb8f 100644 --- a/lib/mime/types.rb +++ b/lib/mime/types.rb @@ -33,7 +33,7 @@ module MIME # class Type # The released version of Ruby MIME::Types - VERSION = '1.25' + VERSION = '1.25.1' include Comparable @@ -97,9 +97,11 @@ module MIME elsif platform? != other.platform? platform? ? 1 : -1 # generic < platform elsif complete? != other.complete? - pc = complete? ? -1 : 1 # complete < incomplete + complete? ? -1 : 1 # complete < incomplete elsif obsolete? != other.obsolete? - pc = obsolete? ? 1 : -1 # current < obsolete + obsolete? ? 1 : -1 # current < obsolete + else + 0 end if pc.zero? and obsolete? and (use_instead != other.use_instead) |