node_query 1.13.7 → 1.13.8

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: 9d3c978851b309269c480384d94e9df4d8f217c3c277cb26992fda3d52c29a9c
4
- data.tar.gz: 88aff1c87c8b0383176b9821baae9997314ceee2993fecba4470614e4b2b48d6
3
+ metadata.gz: cebf13af77b1b91af393dbf741b12ef1804de496d85f243b336decdb05ee5c8a
4
+ data.tar.gz: e4815863dc1b57e92f2e1bbc1858b8e35668e4a22d9392bc565af4f3993dcdc9
5
5
  SHA512:
6
- metadata.gz: 90be84a8b0200d32b5996251a657474053fa95bb265c3b9403334c161a374ba54fd8ac4e64c77d15bccae65a9651539522300ba8a9c0c92fb9fde7d51696625f
7
- data.tar.gz: 9fa294dfc8e0f1ab399aa21e6dfffdd3b2356e37674d287ba21d3e4c38ffc52727fd48a2edbcce4ca9b03016df322ac52d46b80518dbffb2022b01bdd0c163a3
6
+ metadata.gz: e9fd0443d795e0dccef4c74ea9ff9fc242f96c4b2790b9f56ae5a03d4fc235ed7d950c1f9d7391961ca8450f0de075a103d9ba02db402199957de3d84ea153d6
7
+ data.tar.gz: 8aafbc1a54eea3af5fd5dcadced6ce5cf66d51ca0f76128bca1643401aab3c0b3c5673a11ed4cbca7955aa62698053c57525b2f57b03a3af6daf9b96b04554a9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.13.8 (2023-06-28)
4
+
5
+ * Check `.to_value` instead of `.type`
6
+
3
7
  ## 1.13.7 (2023-06-26)
4
8
 
5
9
  * Revert "Flatten syntax_tree children"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- node_query (1.13.7)
4
+ node_query (1.13.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -121,7 +121,7 @@ class NodeQuery::NodeRules
121
121
  actual.zip(expected).all? { |a, e| match_value?(a, e) }
122
122
  when NilClass
123
123
  if NodeQuery.adapter.is_node?(actual)
124
- :nil == actual.type
124
+ actual.to_value.nil?
125
125
  else
126
126
  actual.nil?
127
127
  end
@@ -132,9 +132,9 @@ class NodeQuery::NodeRules
132
132
  actual == expected
133
133
  end
134
134
  when TrueClass
135
- :true == actual&.type
135
+ true == actual&.to_value
136
136
  when FalseClass
137
- :false == actual&.type
137
+ false == actual&.to_value
138
138
  else
139
139
  if NodeQuery.adapter.is_node?(expected)
140
140
  actual == expected
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class NodeQuery
4
- VERSION = "1.13.7"
4
+ VERSION = "1.13.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: node_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.7
4
+ version: 1.13.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-26 00:00:00.000000000 Z
11
+ date: 2023-06-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ast node query language
14
14
  email: