prism_ext 0.3.1 → 0.3.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/prism_ext/version.rb +1 -1
- data/lib/prism_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: d689ab464879e04de75f905ff5d3481e35848099ecb27d2bce625bec9eb02411
|
4
|
+
data.tar.gz: 18efebda12545d89d5c848e6080d7488107d1f086093a4d4773495368841ab24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f60b313c96b813c21e3a5aee7fc60c083abb9ad368f6605680395687afd0ee7450348abe67b7ad85c9759a65f9910502159a867fe9024392cef33fd6776d126
|
7
|
+
data.tar.gz: d02bf032c6ec2fe2f42a1417d3d3c3d98fd13713463e19d1423a4abd90df5b946b57689349b42a99c884d338aa71928db1964ba780b0f91337118234ed853335
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/prism_ext/version.rb
CHANGED
data/lib/prism_ext.rb
CHANGED
@@ -19,14 +19,6 @@ module Prism
|
|
19
19
|
elements.select { |element| element.type == :assoc_node }.map(&:value)
|
20
20
|
end
|
21
21
|
|
22
|
-
def hash_element(key)
|
23
|
-
elements.find { |element| element.type == :assoc_node && element.key.to_value == key }
|
24
|
-
end
|
25
|
-
|
26
|
-
def hash_value(key)
|
27
|
-
elements.find { |element| element.type == :assoc_node && element.key.to_value == key }&.value
|
28
|
-
end
|
29
|
-
|
30
22
|
# Respond key value and source for hash node
|
31
23
|
def method_missing(method_name, *args, &block)
|
32
24
|
if method_name.to_s.end_with?('_element')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prism_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.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: prism
|