Permalink
Browse files

Switched to exact requires instead of load path stuff.

  • Loading branch information...
1 parent 20def23 commit 51f51424e1d29a404d481bfd287279e463e76bfe @jnunemaker committed with sandro 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
@@ -198,7 +199,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 51f5142

Please sign in to comment.