jgrep 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +3 -0
- data/lib/jgrep.rb +1 -1
- data/lib/parser/parser.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da7a8523b3fb626bd1c859fce413fdf621016029691177e52a70c581b55634bf
|
4
|
+
data.tar.gz: ae188a8718ae6d0a5f32e6732c9b10d9019133b31bfec5cb826b2a1b6d47475b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a020b6c87f1e9de3256ac0a91dfe594c26240b2bbd5b32d268d08ce003edd0e0a0c45a18cc50bd6530db37a4c7477942d8b7be0a74f6a2e3137b46ec8b13a9ae
|
7
|
+
data.tar.gz: 631e11e62c4f3da937368fc8766b624fd8d923ba13738e180a9bcd9b2e79eac4725734229caf4cef143373d4b8d86fbd10e0246f70ae368ea41cee665c8e246d
|
data/CHANGELOG.markdown
CHANGED
data/lib/jgrep.rb
CHANGED
@@ -177,7 +177,7 @@ module JGrep
|
|
177
177
|
return true if tmp == false && value == "false"
|
178
178
|
|
179
179
|
# Deal with regex matching
|
180
|
-
if !tmp.nil? && value =~ /^\/.*\/$/
|
180
|
+
if !tmp.nil? && tmp.is_a?(String) && value =~ /^\/.*\/$/
|
181
181
|
tmp.match(Regexp.new(value.delete("/"))) ? (return true) : (return false)
|
182
182
|
end
|
183
183
|
|
data/lib/parser/parser.rb
CHANGED
@@ -61,7 +61,7 @@ module JGrep
|
|
61
61
|
parse(c_token_value, 0)
|
62
62
|
end
|
63
63
|
|
64
|
-
if c_token_value =~ /!=/
|
64
|
+
if c_token_value.is_a?(String) && c_token_value =~ /!=/
|
65
65
|
c_token_value = c_token_value.gsub("!=", "=")
|
66
66
|
@execution_stack << {"not" => "not"}
|
67
67
|
end
|
@@ -81,7 +81,7 @@ module JGrep
|
|
81
81
|
end
|
82
82
|
|
83
83
|
when ")"
|
84
|
-
if !n_token.nil? &&
|
84
|
+
if !n_token.nil? && n_token !~ /|and|or|not|\(/
|
85
85
|
raise "Error at column #{scanner.token_index}. \nExpected 'and', 'or', 'not' or '('. Found '#{n_token_value}'"
|
86
86
|
end
|
87
87
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jgrep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- P Loubser
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Compare a list of json documents to a simple logical language and returns
|
16
16
|
matches as output
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
|
-
rubygems_version: 3.
|
60
|
+
rubygems_version: 3.0.3
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: Filter JSON documents with a simple logical language
|