request.rb compatible with <1.9 and require rubygems to Rakefile