node_query 1.13.0 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/node_query/adapter/parser.rb +3 -0
- data/lib/node_query/adapter/syntax_tree.rb +4 -1
- data/lib/node_query/version.rb +1 -1
- data/lib/node_query.rb +1 -1
- data/lib/node_query_lexer.rex +1 -1
- data/lib/node_query_lexer.rex.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: 9f0ea7e92fbee3e2c0c28554dd021b1e2a07fd4c64b9dd7f1a6b5acbc7d8385f
|
4
|
+
data.tar.gz: cc317efc39dd07bc30c1cd54cd03eded67c82a92a37b809340add4c8372e77ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7bb08d7bacc6da4232f7e16a9397e565ae4b4523b8d177068672441aecdcaa49a01be8b3e614aeef138e365ad210bd1e121857690061324f889e8486105c79a
|
7
|
+
data.tar.gz: 2736927c6b34ee327b02e4230bc4b8879f8582f8a9840740c99bd122a9d53eecd5c099dc2e3b2407629047a88e3477e253d878fe56e835264e38a405ede78bc2
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'syntax_tree'
|
4
|
+
require 'syntax_tree_ext'
|
5
|
+
|
3
6
|
class NodeQuery::SyntaxTreeAdapter
|
4
7
|
def is_node?(node)
|
5
8
|
node.is_a?(SyntaxTree::Node)
|
6
9
|
end
|
7
10
|
|
8
11
|
def get_node_type(node)
|
9
|
-
node.class.name.split('::').last
|
12
|
+
node.class.name.split('::').last.to_sym
|
10
13
|
end
|
11
14
|
|
12
15
|
def get_source(node)
|
data/lib/node_query/version.rb
CHANGED
data/lib/node_query.rb
CHANGED
data/lib/node_query_lexer.rex
CHANGED
data/lib/node_query_lexer.rex.rb
CHANGED