Skip to content

Instantly share code, notes, and snippets.

@jashmenn

jashmenn/gist:9998

Created Sep 10, 2008
Embed
What would you like to do?
# 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