Created
February 20, 2014 13:45
-
-
Save rwjblue/9113898 to your computer and use it in GitHub Desktop.
Bundler Version Testing
This file contains 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
required_version = '~> 1.4.beta' | |
comparison_version = '1.5.0' | |
if Gem::Requirement.new(required_version) =~ Gem::Version.new(comparison_version) | |
puts "Specifying #{required_version} will allow upgrading to #{comparison_version}." | |
else | |
puts "Specifying #{required_version} will NOT allow upgrading to #{comparison_version}." | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment