mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Tweaked requires and such.
This commit is contained in:
parent
5ba768e29a
commit
80aa3595d5
3 changed files with 9 additions and 14 deletions
|
@ -1,14 +1,10 @@
|
||||||
|
$:.unshift(File.dirname(__FILE__))
|
||||||
|
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
require 'net/https'
|
require 'net/https'
|
||||||
require 'uri'
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'active_support'
|
require 'active_support'
|
||||||
|
|
||||||
dir = File.dirname(__FILE__)
|
|
||||||
$:.unshift(dir) unless $:.include?(dir) || $:.include?(File.expand_path(dir))
|
|
||||||
|
|
||||||
require 'module_level_inheritable_attributes'
|
require 'module_level_inheritable_attributes'
|
||||||
require 'httparty/request'
|
|
||||||
|
|
||||||
module HTTParty
|
module HTTParty
|
||||||
class UnsupportedFormat < StandardError; end
|
class UnsupportedFormat < StandardError; end
|
||||||
|
@ -101,3 +97,5 @@ module HTTParty
|
||||||
Basement.delete(*args)
|
Basement.delete(*args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require 'httparty/request'
|
|
@ -1,3 +1,5 @@
|
||||||
|
require 'uri'
|
||||||
|
|
||||||
module HTTParty
|
module HTTParty
|
||||||
class Request
|
class Request
|
||||||
# Makes it so uri is sure to parse stuff like google.com without the http
|
# Makes it so uri is sure to parse stuff like google.com without the http
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
begin
|
require 'rubygems'
|
||||||
require 'spec'
|
gem 'rspec'
|
||||||
rescue LoadError
|
require 'spec'
|
||||||
require 'rubygems'
|
|
||||||
gem 'rspec'
|
|
||||||
require 'spec'
|
|
||||||
end
|
|
||||||
|
|
||||||
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
|
||||||
|
|
||||||
def file_fixture(filename)
|
def file_fixture(filename)
|
||||||
|
|
Loading…
Reference in a new issue