Created
September 10, 2008 18:44
-
-
Save jashmenn/9998 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
# Function to check for a minimum rubygems version | |
# | |
# Can be found at: http://gist.github.com/9998 | |
def check_rubygems_version | |
min_version = '1.2.0' | |
local_version = %x[gem --version].chomp | |
unless local_version >= min_version | |
puts "You need to update the RubyGems utility to #{min_version} using the following" | |
puts "" | |
puts " sudo gem update --system" | |
end | |
end | |
check_rubygems_version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment