Take the 2-minute tour ×  I have a small application which I
created using jeweler. The jeweler generates a lib/ directory,
where I suppose to write my code.  This gem I'm creating depends
on the httparty gem, so, in my Rakefile I put
Jeweler::Tasks.new do |gem|     gem.add_dependency('httparty',
'>= 0.4.5')  in my implementation file I put  require 'httparty'
but when I executes it I get:  lib/my_app.rb:1:in `require': no
such file to load -- httparty (LoadError)  I have already
installed the httparty gem using  sudo gem install httparty
What is missing?  share|improve this question add comment  6
Answers  up vote 8 down vote accepted  You need to require
rubygems before requiring any gem.  require 'rubygems' require
'httparty' share|improve this answer Perfect! Thanks –  Daniel
Cukier Oct 7 '09 at 12:49 This cures only the symptom not the
illnes. –  johannes Oct 8 '09 at 21:02 add comment  You need to
require rubygems  require 'rubygems'  before you require
httparty  share|improve this answer add comme