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/https'
|
||||
require 'uri'
|
||||
require 'rubygems'
|
||||
require 'active_support'
|
||||
|
||||
dir = File.dirname(__FILE__)
|
||||
$:.unshift(dir) unless $:.include?(dir) || $:.include?(File.expand_path(dir))
|
||||
|
||||
require 'module_level_inheritable_attributes'
|
||||
require 'httparty/request'
|
||||
|
||||
module HTTParty
|
||||
class UnsupportedFormat < StandardError; end
|
||||
|
@ -101,3 +97,5 @@ module HTTParty
|
|||
Basement.delete(*args)
|
||||
end
|
||||
end
|
||||
|
||||
require 'httparty/request'
|
|
@ -1,3 +1,5 @@
|
|||
require 'uri'
|
||||
|
||||
module HTTParty
|
||||
class Request
|
||||
# Makes it so uri is sure to parse stuff like google.com without the http
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
begin
|
||||
require 'spec'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
gem 'rspec'
|
||||
require 'spec'
|
||||
end
|
||||
|
||||
require 'rubygems'
|
||||
gem 'rspec'
|
||||
require 'spec'
|
||||
require File.join(File.dirname(__FILE__), '..', 'lib', 'httparty')
|
||||
|
||||
def file_fixture(filename)
|
||||
|
|
Loading…
Reference in a new issue