Permalink
Browse files

Rely on load path instead of exact requires.

  • Loading branch information...
1 parent 0664f2a commit eb7e0de29ecda24f55772562d6e74811612585d4 @jnunemaker committed Jun 18, 2010
Showing with 5 additions and 7 deletions.
  1. +5 −7 lib/happymapper.rb
View
@@ -1,9 +1,7 @@
-dir = File.dirname(__FILE__)
-
+require 'rubygems'
+gem 'libxml-ruby', '=1.1.3'
require 'date'
require 'time'
-require 'rubygems'
-gem 'libxml-ruby', '= 1.1.3'
require 'xml'
class Boolean; end
@@ -114,6 +112,6 @@ def parse(xml, options = {})
end
end
-require File.join(dir, 'happymapper/item')
-require File.join(dir, 'happymapper/attribute')
-require File.join(dir, 'happymapper/element')
+require 'happymapper/item'
+require 'happymapper/attribute'
+require 'happymapper/element'

0 comments on commit eb7e0de

Please sign in to comment.