Skip to content

Instantly share code, notes, and snippets.

@rwjblue
Created February 20, 2014 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwjblue/9113898 to your computer and use it in GitHub Desktop.
Save rwjblue/9113898 to your computer and use it in GitHub Desktop.
Bundler Version Testing
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