syntax_tree_ext 0.8.1 → 0.8.2
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 +1 -1
- data/lib/syntax_tree_ext/version.rb +1 -1
- data/lib/syntax_tree_ext.rb +0 -8
- 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: fa8f692ed7fc2de3d5ca552114668315b4acdfbb6c687b6e3f9b7f4060d08369
|
4
|
+
data.tar.gz: eec8c71a43c1deaf8f966d49f57d7ec5c343416ac59e63a2cb722cbd615e9195
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beb2c4113b482b0fc856fb6c0a05876d3e60c333192ff9169322aed6510ee97c1cc79ed09e7b6400314813fa26b09231fbf65ceded2b0fd026c60b2dc3c62ca7
|
7
|
+
data.tar.gz: f87a62e94109658d2b28ff7690836d0d141009c5908c17e428f03a9bb3515053ab622b63089de3b4506c569a8197e43f95675209d0cbdd9a2b251a2fc8048c13
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/syntax_tree_ext.rb
CHANGED
@@ -20,14 +20,6 @@ module SyntaxTree
|
|
20
20
|
assocs.map(&:value)
|
21
21
|
end
|
22
22
|
|
23
|
-
def hash_assoc(key)
|
24
|
-
assocs.find { |assoc_node| assoc_node.key.to_value == key }
|
25
|
-
end
|
26
|
-
|
27
|
-
def hash_value(key)
|
28
|
-
assocs.find { |assoc_node| assoc_node.key.to_value == key }&.value
|
29
|
-
end
|
30
|
-
|
31
23
|
# Respond key value and source for hash node
|
32
24
|
def method_missing(method_name, *args, &block)
|
33
25
|
if method_name.to_s.end_with?('_assoc')
|
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.8.
|
4
|
+
version: 0.8.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-04-
|
11
|
+
date: 2024-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: syntax_tree
|