node_query 1.13.6 → 1.13.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/lib/node_query/adapter/syntax_tree.rb +1 -1
- data/lib/node_query/compiler/selector.rb +5 -1
- data/lib/node_query/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d3c978851b309269c480384d94e9df4d8f217c3c277cb26992fda3d52c29a9c
|
4
|
+
data.tar.gz: 88aff1c87c8b0383176b9821baae9997314ceee2993fecba4470614e4b2b48d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90be84a8b0200d32b5996251a657474053fa95bb265c3b9403334c161a374ba54fd8ac4e64c77d15bccae65a9651539522300ba8a9c0c92fb9fde7d51696625f
|
7
|
+
data.tar.gz: 9fa294dfc8e0f1ab399aa21e6dfffdd3b2356e37674d287ba21d3e4c38ffc52727fd48a2edbcce4ca9b03016df322ac52d46b80518dbffb2022b01bdd0c163a3
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
node_query (1.13.
|
4
|
+
node_query (1.13.7)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
shellany (0.0.1)
|
68
68
|
syntax_tree (6.1.1)
|
69
69
|
prettier_print (>= 1.2.0)
|
70
|
-
syntax_tree_ext (0.6.
|
70
|
+
syntax_tree_ext (0.6.2)
|
71
71
|
syntax_tree
|
72
72
|
thor (1.2.1)
|
73
73
|
|
@@ -154,7 +154,11 @@ module NodeQuery::Compiler
|
|
154
154
|
end
|
155
155
|
else
|
156
156
|
NodeQuery.adapter.get_children(node).each do |child_node|
|
157
|
-
if
|
157
|
+
if child_node.is_a?(Array) # SyntaxTree may return an array in child node.
|
158
|
+
child_node.each do |child_child_node|
|
159
|
+
nodes << child_child_node if @rest.match?(child_child_node, child_child_node)
|
160
|
+
end
|
161
|
+
elsif NodeQuery.adapter.is_node?(child_node) && :begin == NodeQuery.adapter.get_node_type(child_node)
|
158
162
|
NodeQuery.adapter.get_children(child_node).each do |child_child_node|
|
159
163
|
nodes << child_child_node if @rest.match?(child_child_node, child_child_node)
|
160
164
|
end
|
data/lib/node_query/version.rb
CHANGED