Permalink
Browse files

Switched to exact requires instead of load path stuff.

  • Loading branch information...
1 parent 515b355 commit 201862c84241066f12f9782b4aea7e424b0fa683 @jnunemaker committed Aug 22, 2009
Showing with 9 additions and 8 deletions.
  1. +9 −8 lib/httparty.rb
View
@@ -1,13 +1,14 @@
-$:.unshift(File.dirname(__FILE__))
-
+require 'pathname'
require 'net/http'
require 'net/https'
-require 'httparty/module_inheritable_attributes'
require 'rubygems'
gem 'crack', '>= 0.1.1'
require 'crack'
-require 'httparty/cookie_hash'
+dir = Pathname(__FILE__).dirname.expand_path
+
+require dir + 'httparty/module_inheritable_attributes'
+require dir + 'httparty/cookie_hash'
module HTTParty
@@ -201,7 +202,7 @@ def self.delete(*args)
end
end
-require 'httparty/core_extensions'
-require 'httparty/exceptions'
-require 'httparty/request'
-require 'httparty/response'
+require dir + 'httparty/core_extensions'
+require dir + 'httparty/exceptions'
+require dir + 'httparty/request'
+require dir + 'httparty/response'

0 comments on commit 201862c

Please sign in to comment.