From 5e96290ee2f6d947e090e6f2d8419426e039d428 Mon Sep 17 00:00:00 2001 From: Sandro Turriate Date: Sat, 30 Jan 2010 21:59:51 -0500 Subject: [PATCH] Remove dependency of rubygems Closes gh-27 --- Rakefile | 1 - bin/httparty | 1 - lib/httparty.rb | 2 -- spec/spec_helper.rb | 2 -- 4 files changed, 6 deletions(-) diff --git a/Rakefile b/Rakefile index a890df1..d770c62 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,3 @@ -require 'rubygems' require 'rake' begin diff --git a/bin/httparty b/bin/httparty index fda4109..048e30f 100755 --- a/bin/httparty +++ b/bin/httparty @@ -94,7 +94,6 @@ else case opts[:output_format] when :json begin - require 'rubygems' require 'json' puts JSON.pretty_generate(response.delegate) rescue LoadError diff --git a/lib/httparty.rb b/lib/httparty.rb index e402c01..17f64ff 100644 --- a/lib/httparty.rb +++ b/lib/httparty.rb @@ -1,8 +1,6 @@ require 'pathname' require 'net/http' require 'net/https' -require 'rubygems' -gem 'crack', '>= 0.1.1' require 'crack' dir = Pathname(__FILE__).dirname.expand_path diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e5404db..9d06f4b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,4 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty') -gem 'rspec', '1.2.9' -gem 'fakeweb' require 'spec/autorun' require 'fakeweb'