1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Fix require issues. Rely on load path.

This commit is contained in:
John Nunemaker 2011-04-15 18:29:55 -04:00
parent 1f82664e65
commit 99700082e6

View file

@ -5,15 +5,13 @@ require 'uri'
require 'zlib' require 'zlib'
require 'crack' require 'crack'
dir = Pathname(__FILE__).dirname.expand_path.to_s require 'httparty/module_inheritable_attributes'
require 'httparty/cookie_hash'
require dir + 'httparty/module_inheritable_attributes' require 'httparty/net_digest_auth'
require dir + 'httparty/cookie_hash'
require dir + 'httparty/net_digest_auth'
# @see HTTParty::ClassMethods # @see HTTParty::ClassMethods
module HTTParty module HTTParty
VERSION = "0.7.4".freeze VERSION = "0.7.5".freeze
CRACK_DEPENDENCY = "0.1.8".freeze CRACK_DEPENDENCY = "0.1.8".freeze
module AllowedFormatsDeprecation module AllowedFormatsDeprecation
@ -448,11 +446,11 @@ module HTTParty
end end
require dir + 'httparty/core_extensions' require 'httparty/core_extensions'
require dir + 'httparty/exceptions' require 'httparty/exceptions'
require dir + 'httparty/parser' require 'httparty/parser'
require dir + 'httparty/request' require 'httparty/request'
require dir + 'httparty/response' require 'httparty/response'
if Crack::VERSION != HTTParty::CRACK_DEPENDENCY if Crack::VERSION != HTTParty::CRACK_DEPENDENCY
warn "warning: HTTParty depends on version #{HTTParty::CRACK_DEPENDENCY} of crack, not #{Crack::VERSION}." warn "warning: HTTParty depends on version #{HTTParty::CRACK_DEPENDENCY} of crack, not #{Crack::VERSION}."