syntax_tree_ext 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/syntax_tree_ext/version.rb +1 -1
- data/lib/syntax_tree_ext.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f40ff3f6ebf13f9a2c731adf95152e393d3e4f968593533567ce174450ed044
|
|
4
|
+
data.tar.gz: c39d53ff02f7e2945dab26da88ff677d26e54d72b955cb55031d818d9a933232
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 140e0500d7f4efbc1b1574785aa26899aa39966a573fa3bd18ec95826cd540b65f04ae20750b4143a1a052ce03aedbb37417825a322ad4d635b589ea31270310
|
|
7
|
+
data.tar.gz: c53492d01cbcf64c327932f5dd52ff059c5bcd3a36610f7c03935abe5d68dca35c9fc6c2f1fb381a146f01bf95d61556efb64db9aab70aa11c91bf6366008576
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/syntax_tree_ext.rb
CHANGED
|
@@ -12,10 +12,10 @@ module SyntaxTreeExt
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
module SyntaxTree
|
|
15
|
-
module
|
|
16
|
-
def
|
|
17
|
-
if parent_node&.parent_node&.parent_node&.respond_to?(:
|
|
18
|
-
"#{parent_node.parent_node.parent_node.
|
|
15
|
+
module FullNameExt
|
|
16
|
+
def full_name
|
|
17
|
+
if parent_node&.parent_node&.parent_node&.respond_to?(:full_name)
|
|
18
|
+
"#{parent_node.parent_node.parent_node.full_name}::#{constant.to_source}"
|
|
19
19
|
else
|
|
20
20
|
constant.to_source
|
|
21
21
|
end
|
|
@@ -79,11 +79,11 @@ module SyntaxTree
|
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
class ClassDeclaration
|
|
82
|
-
include
|
|
82
|
+
include FullNameExt
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
class ModuleDeclaration
|
|
86
|
-
include
|
|
86
|
+
include FullNameExt
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
class Node
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: syntax_tree_ext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Huang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-07-
|
|
11
|
+
date: 2024-07-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: syntax_tree
|