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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1378d5d7cf0504986f6069156fc99ad00495aa48bc050e3f6c472cdd69b3f873
4
- data.tar.gz: a150fc0816566b8e2f97f23b77581749ce293dce85134cbefefd7bfcfb483a81
3
+ metadata.gz: fa8f692ed7fc2de3d5ca552114668315b4acdfbb6c687b6e3f9b7f4060d08369
4
+ data.tar.gz: eec8c71a43c1deaf8f966d49f57d7ec5c343416ac59e63a2cb722cbd615e9195
5
5
  SHA512:
6
- metadata.gz: 368753ba1fee1baf379a0e042a06903448d5dbbf1a3eee3e281abc5c59ad76031fbd3b838f66397a42b42e0323f135e211f6b82f8a2e58f8fd6020ba7fb39c58
7
- data.tar.gz: aeec372ffb15142e854cd18dce78fcbc963a4702de6ffb363ea1df7b96d5563fa5a942a0dd9920a1bdc196781f96daba4d8d5cd00570d705bea4ba53384566ba
6
+ metadata.gz: beb2c4113b482b0fc856fb6c0a05876d3e60c333192ff9169322aed6510ee97c1cc79ed09e7b6400314813fa26b09231fbf65ceded2b0fd026c60b2dc3c62ca7
7
+ data.tar.gz: f87a62e94109658d2b28ff7690836d0d141009c5908c17e428f03a9bb3515053ab622b63089de3b4506c569a8197e43f95675209d0cbdd9a2b251a2fc8048c13
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.8.2 (2024-04-18)
4
+
5
+ * Remove `hash_assoc` and `hash_value` methods
6
+
3
7
  ## 0.8.1 (2024-04-07)
4
8
 
5
9
  * Extend `parse` with different method names
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- syntax_tree_ext (0.8.1)
4
+ syntax_tree_ext (0.8.2)
5
5
  syntax_tree
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SyntaxTreeExt
4
- VERSION = "0.8.1"
4
+ VERSION = "0.8.2"
5
5
  end
@@ -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.1
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-07 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: syntax_tree