lib/jsonpath.rb in jsonpath-0.0.1 vs lib/jsonpath.rb in jsonpath-0.0.2

- old
+ new

@@ -1,11 +1,9 @@ -$:.unshift(File.dirname(__FILE__)) unless - $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) +require File.join('jsonpath', 'expression') +require File.join('jsonpath', 'wrapper') - class JsonPath - VERSION = '0.0.1' def self.path(expression) @expression = Expression.new(expression) if block_given? yield @expression @@ -22,7 +20,5 @@ @wrapper end end end -require File.join('jsonpath', 'expression') -require File.join('jsonpath', 'wrapper')