jpt 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/jpt.gemspec +1 -1
  3. data/lib/jpt.rb +8 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5cd5e1be60d226440d14670f9fc40383d68ce388e9e7cef676912959024a58d
4
- data.tar.gz: 774cd3d70e96d9bc57cf1b55549a71cba3f3cebd084e90c8ccc28cb89562e620
3
+ metadata.gz: 0cab20722404e3bcdbd98ef81536008cb4ea9bb6787c863fb0c47226efb9648f
4
+ data.tar.gz: 4c0945333dba2f1a076dfd564a883bf6dd89fb1aceea6f3507269516516fd41b
5
5
  SHA512:
6
- metadata.gz: 0a304a2b0562e0ccb5553fc28d3dea48714bed50c5c6bdaae37ebf2577d5eae9b5c55937b91fba3dc9571146e7371aba7850f97ae00727b9ff5d9e1db77f0eb1
7
- data.tar.gz: 718acc8d15e8a56fb23f3147adf8c68ab6ef40710df1bda90e29c4ed323d29d810a8cebfa20f1197078d56e04351f49194e3614e42139cd16b646517544aa758
6
+ metadata.gz: 041252f53901e46c0bc1ab299e1d086fb84340331b2d6e7810a3e9d2cce444e52cc7debf4a29ad08639c224dea8449fc212f9430d2c5062f6a2b8efd65d2ed38
7
+ data.tar.gz: f7b823647ac4685aecc95d91d39753c31958a90119766d79bc19d7f33140037992ba42eb396b46df716138c353734eb1554660a7e0c6e02def8a56a970c58273
data/jpt.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "jpt"
3
- s.version = "0.1.2"
3
+ s.version = "0.1.3"
4
4
  s.summary = "JSONPath tools"
5
5
  s.description = %q{jpt implements converters and miscellaneous tools for JSONPath}
6
6
  s.author = "Carsten Bormann"
data/lib/jpt.rb CHANGED
@@ -28,6 +28,14 @@ module JPTType
28
28
  :value
29
29
  in ["@", *] | ["$", *]
30
30
  :nodes
31
+ in ["not", ast1]
32
+ declared_as(ast1, :logical, " in #{ast}")
33
+ :logical
34
+ in ["and" | "or", *ast1]
35
+ ast1.each do |astx|
36
+ declared_as(astx, :logical, " in #{ast}")
37
+ end
38
+ :logical
31
39
  in ["func", funcname, *funcargs]
32
40
  ret, *parms = FUNCTABLE[funcname]
33
41
  if parms.length != funcargs.length
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-24 00:00:00.000000000 Z
11
+ date: 2023-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler