jsonpath 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/jsonpath.rb CHANGED
@@ -1,9 +1,7 @@
1
- $:.unshift(File.dirname(__FILE__)) unless
2
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
-
1
+ require File.join('jsonpath', 'expression')
2
+ require File.join('jsonpath', 'wrapper')
4
3
 
5
4
  class JsonPath
6
- VERSION = '0.0.1'
7
5
 
8
6
  def self.path(expression)
9
7
  @expression = Expression.new(expression)
@@ -24,5 +22,3 @@ class JsonPath
24
22
  end
25
23
 
26
24
  end
27
- require File.join('jsonpath', 'expression')
28
- require File.join('jsonpath', 'wrapper')
@@ -1,6 +1,5 @@
1
- require "rubygems"
2
- require 'lib/jsonpath.rb'
3
- require 'json'
1
+ require 'spec_helper'
2
+
4
3
  describe "JsonPath" do
5
4
 
6
5
  object = { "store"=> {
@@ -0,0 +1,2 @@
1
+ $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'jsonpath'))
2
+ require 'jsonpath'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonpath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hull
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-25 00:00:00 -05:00
12
+ date: 2010-01-20 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -32,6 +32,7 @@ files:
32
32
  - lib/jsonpath/wrapper.rb
33
33
  - spec/jsonpath_spec.rb
34
34
  - spec/spec.opts
35
+ - spec/spec_helper.rb
35
36
  has_rdoc: true
36
37
  homepage: http://github.com/joshbuddy/jsonpath
37
38
  licenses: []
@@ -62,3 +63,4 @@ specification_version: 3
62
63
  summary: Ruby implementation of http://goessner.net/articles/JsonPath/
63
64
  test_files:
64
65
  - spec/jsonpath_spec.rb
66
+ - spec/spec_helper.rb