like, I’m trying to do
if not Gem.available?('curb')
puts "Please run: 'sudo gem install curb'"
exit
end
but I get the following error
uninitialized constant Gem (NameError)
what am I missing?
*this is all I have in a simple .rb file.
(the command works in the commandline)
Put
require 'rubygems'at the top of the file.