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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a730b25cf7eca0bd6d027a947247134045862ca80282ed5480a18715c8383ae
4
- data.tar.gz: 70e2168d438071f2ad30532d2d98f0a5f85fee95df1f7feaaf3459c05271eaf1
3
+ metadata.gz: d689ab464879e04de75f905ff5d3481e35848099ecb27d2bce625bec9eb02411
4
+ data.tar.gz: 18efebda12545d89d5c848e6080d7488107d1f086093a4d4773495368841ab24
5
5
  SHA512:
6
- metadata.gz: 75316468628f563b3d68ee0e061dad459d49e2358e44143bfeb861634d55abcfa734c90726293e76b93bbb79b69b72cef8c21567fb4e48fc49206beba324fa73
7
- data.tar.gz: 0064e27e308ac3d63e69ea55e7f38510895a9588f1fb5c9b34fe762fcb255679238147fba040e7aef5bbdebb49315fa0ab2f3d1bc274f58370a35921258dae2b
6
+ metadata.gz: 9f60b313c96b813c21e3a5aee7fc60c083abb9ad368f6605680395687afd0ee7450348abe67b7ad85c9759a65f9910502159a867fe9024392cef33fd6776d126
7
+ data.tar.gz: d02bf032c6ec2fe2f42a1417d3d3c3d98fd13713463e19d1423a4abd90df5b946b57689349b42a99c884d338aa71928db1964ba780b0f91337118234ed853335
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.3.2 (2024-04-18)
4
+
5
+ * Remove `hash_element` and `hash_value` methods
6
+
3
7
  ## 0.3.1 (2024-04-12)
4
8
 
5
9
  * Skip `AssocSplatNode` for hash helper methods
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prism_ext (0.3.1)
4
+ prism_ext (0.3.2)
5
5
  prism
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrismExt
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prism