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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb98493ff7aecaa86ba53bc2682def821a6a4e759ca0a2b7dcf62a244b8622a4
4
- data.tar.gz: 11641712c8a7b30f57bc0d0f438572ab44d3e6eee17e26dc4ef2b9b29fe6a9db
3
+ metadata.gz: da7a8523b3fb626bd1c859fce413fdf621016029691177e52a70c581b55634bf
4
+ data.tar.gz: ae188a8718ae6d0a5f32e6732c9b10d9019133b31bfec5cb826b2a1b6d47475b
5
5
  SHA512:
6
- metadata.gz: 1d5e9ead5479d67313ce9d26770ab286a81106498e37c96b6610b842e894ca5e432eb3c639a1186512a6ebb431f7bb6d6505f45ad3a7939a234a66f4bdae3977
7
- data.tar.gz: f95d092a0bd7aa2cfe86771c87ddf7719bfa2d3eb7ca44bb7f841d91d1514379df10f7a13b8ca8809efd48b21c289a9a109f3430621eb5e29178eba64ad5e516
6
+ metadata.gz: a020b6c87f1e9de3256ac0a91dfe594c26240b2bbd5b32d268d08ce003edd0e0a0c45a18cc50bd6530db37a4c7477942d8b7be0a74f6a2e3137b46ec8b13a9ae
7
+ data.tar.gz: 631e11e62c4f3da937368fc8766b624fd8d923ba13738e180a9bcd9b2e79eac4725734229caf4cef143373d4b8d86fbd10e0246f70ae368ea41cee665c8e246d
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.4
4
+ * Include missing fixes for Ruby 2.7.0 deprecations
5
+
3
6
  ## 1.5.3
4
7
  * Fix Ruby 2.7.0 deprecation warnings
5
8
  * Bump Rspec version in Gemfile
@@ -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
 
@@ -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? && !n_token =~ /|and|or|not|\(/
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.3
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-08-10 00:00:00.000000000 Z
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.1.0.pre2
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