poller-json 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZWFlMmMyZjQwNmNkZjdlYjkxMTI0MmU5MDEzYjY2YWFjOWFhODcyMg==
5
+ data.tar.gz: !binary |-
6
+ ZjA1MjE1NWRhMzNlMjBhMWJhZGM4MzFjNjhlYmJjY2NlYzMxYmQ4Yg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YmI1NzAzZGZjMGFlYzNiM2UxYTIyZmI1NzA4NDUyNzhlYjMzYTIwZjZhZDdm
10
+ MWU5ZjQ0NmVmZWVkNTg2YWYyZTM5YTRkYmI5ZTUyNWU4MzMwN2VmYWJmM2Nl
11
+ YjhhNjhlYTZkYmMxNmIwMjIwZWE0MDA4OGZjMDdlNWRiOTEyOWY=
12
+ data.tar.gz: !binary |-
13
+ NzgzZjI0YmMxMTg1N2MyZmNiNDRjMWIyMjIyMzBmMTg2NjY4YjJmYWNhNjlh
14
+ ZmQ0MmYxNmRhMmFjNmY5YjI4NzIwYzM2MzBlNDE0ZDhkMzRiMTExYjgwMDFh
15
+ NTcwYzkzM2YzODhkMDAyYTg1MTBiN2RjMTczMTBkMDZmMmVlNDA=
@@ -26,7 +26,8 @@ module Matchers
26
26
  end
27
27
 
28
28
  # TODO: the regular expressions below will catch very few errors
29
- def json_path_valid?(path)
29
+ def json_path_valid?(path)
30
+ # TODO: figure out how groups could be extracted and then looked at individually (each do)
30
31
  notation = path.include?('[\'') ? :bracket : :dot
31
32
  path_regex = /^\$[a-zA-Z0-9_(\[\d\])\.]*[^\.]$/ if notation == :dot
32
33
  path_regex = /^\$[a-zA-Z0-9_(\[\d\])\.\']*[^\.]$/ if notation == :bracket
@@ -1,5 +1,5 @@
1
1
  module Poller
2
2
  module JSON
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,68 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poller-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
5
- prerelease:
4
+ version: 0.1.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Markus Krogemann
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-08 00:00:00.000000000 Z
11
+ date: 2013-08-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: poller
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 0.4.1
19
+ version: 0.4.2
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
29
- version: 0.4.1
26
+ version: 0.4.2
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: multi_json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
37
- version: 1.7.2
33
+ version: 1.7.9
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
45
- version: 1.7.2
40
+ version: 1.7.9
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: 2.13.0
47
+ version: 2.14.1
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: 2.13.0
54
+ version: 2.14.1
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: simplecov
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -82,36 +73,35 @@ executables: []
82
73
  extensions: []
83
74
  extra_rdoc_files: []
84
75
  files:
85
- - lib/matchers/json/json_path_has_array.rb
86
- - lib/matchers/json/json_path_has_value.rb
87
76
  - lib/matchers/json/document_contains_json_path.rb
88
77
  - lib/matchers/json/json_path.rb
78
+ - lib/matchers/json/json_path_has_array.rb
89
79
  - lib/matchers/json/json_path_has_object.rb
90
- - lib/poller/poller_json.rb
80
+ - lib/matchers/json/json_path_has_value.rb
91
81
  - lib/poller/json/version.rb
82
+ - lib/poller/poller_json.rb
92
83
  homepage: https://github.com/mkrogemann/poller-json
93
84
  licenses:
94
85
  - MIT
86
+ metadata: {}
95
87
  post_install_message:
96
88
  rdoc_options: []
97
89
  require_paths:
98
90
  - lib
99
91
  required_ruby_version: !ruby/object:Gem::Requirement
100
- none: false
101
92
  requirements:
102
93
  - - ! '>='
103
94
  - !ruby/object:Gem::Version
104
95
  version: '0'
105
96
  required_rubygems_version: !ruby/object:Gem::Requirement
106
- none: false
107
97
  requirements:
108
98
  - - ! '>='
109
99
  - !ruby/object:Gem::Version
110
100
  version: '0'
111
101
  requirements: []
112
102
  rubyforge_project:
113
- rubygems_version: 1.8.25
103
+ rubygems_version: 2.0.3
114
104
  signing_key:
115
- specification_version: 3
105
+ specification_version: 4
116
106
  summary: JSON matchers
117
107
  test_files: []