syntax_tree_ext 0.8.1 → 0.9.0

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: 1652ff82c38eae093e5149cee9890481a7785cd02f3abb6b9b96d413afd9c770
4
+ data.tar.gz: c20755aeddb8801aa87966642b342f085c25d444fb65d77298681a84393590ef
5
5
  SHA512:
6
- metadata.gz: 368753ba1fee1baf379a0e042a06903448d5dbbf1a3eee3e281abc5c59ad76031fbd3b838f66397a42b42e0323f135e211f6b82f8a2e58f8fd6020ba7fb39c58
7
- data.tar.gz: aeec372ffb15142e854cd18dce78fcbc963a4702de6ffb363ea1df7b96d5563fa5a942a0dd9920a1bdc196781f96daba4d8d5cd00570d705bea4ba53384566ba
6
+ metadata.gz: 7546c74ea30c030c3f51a47b98e6446e3bca4e5e55575329eed52090e3151d43f5305e3190208d9fdaeb5d605a9a2abee37e0690d4aaf5525fffd8b1e33a4165
7
+ data.tar.gz: a8a4b6837c0c2a4770e6e1a6b51d72dd13c80e52339be8a5aa91a93a0af5c13c5b1d12650d2bdb2e30f586a10603deb0b7c5dbede845167d8c14ddf24d40fdb9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.9.0 (2024-07-16)
4
+
5
+ * require `syntax_tree_ext/parent_node_ext` back
6
+
7
+ ## 0.8.2 (2024-04-18)
8
+
9
+ * Remove `hash_assoc` and `hash_value` methods
10
+
3
11
  ## 0.8.1 (2024-04-07)
4
12
 
5
13
  * 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.9.0)
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.9.0"
5
5
  end
@@ -4,6 +4,7 @@ require_relative "syntax_tree_ext/version"
4
4
 
5
5
  require 'syntax_tree'
6
6
  require_relative "syntax_tree_ext/source_ext"
7
+ require_relative "syntax_tree_ext/parent_node_ext"
7
8
 
8
9
  module SyntaxTreeExt
9
10
  class Error < StandardError; end
@@ -20,14 +21,6 @@ module SyntaxTree
20
21
  assocs.map(&:value)
21
22
  end
22
23
 
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
24
  # Respond key value and source for hash node
32
25
  def method_missing(method_name, *args, &block)
33
26
  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.9.0
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-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: syntax_tree
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.5.3
66
+ rubygems_version: 3.5.14
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: extend syntax_tree