Created
October 5, 2010 05:49
-
-
Save indirect/611068 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> Gem::Requirement.new("~>3.0.0.rc").satisfied_by? Gem::Version.new("3.0.0.a") | |
=> true | |
>> Gem::Requirement.new("~>3.0.0").satisfied_by? Gem::Version.new("3.0.0.a") | |
=> true | |
>> Gem::Requirement.new("~>3.0.0.0").satisfied_by? Gem::Version.new("3.0.0.a") | |
=> true | |
>> Gem::Requirement.new("~>3.0.0.0.0").satisfied_by? Gem::Version.new("3.0.0.a") | |
=> true | |
>> Gem::Requirement.new("~>3.0.0.0.0.0").satisfied_by? Gem::Version.new("3.0.0.a") | |
=> true | |
>> Gem::Requirement.new("~>3.0.0.0.0.0").satisfied_by? Gem::Version.new("3.0.0.1") | |
=> false | |
>> Gem::Requirement.new("~>3.0.0").satisfied_by? Gem::Version.new("3.0.0.a") | |
=> true | |
>> Gem::Requirement.new("~>3.0").satisfied_by? Gem::Version.new("3.0.0.a") | |
=> true | |
>> Gem::Requirement.new("~>3").satisfied_by? Gem::Version.new("3.0.0.a") | |
=> true | |
o_O | |
ben_h: http://github.com/benhoskings/babushka/blob/master/lib/babushka/version_str.rb | |
ben_h: if it helps, that stuff works with babushka's VersionStr: http://gist.github.com/611064 | |
parndt: in the rubygems tests, if I add refute_satisfied_by "3.0.rc", "~> 3.0" it doesn't fail.. so maybe it's already working on master? Maybe since this commit: http://github.com/rubygems/rubygems/commit/716f204c66c3c997f60934abcdb00b0406d5b7ca |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment