node_mutation 1.22.0 → 1.22.1

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: d1ced556aff645a4d23e98bc7d544ac8d48d89909112fbd875132a97417a7e2b
4
- data.tar.gz: 9efd16a9ff97cb146b0b3750a53a57721700377d98a9e8c310a9435d6c42d279
3
+ metadata.gz: 1039c5eaf805a6938a0470e3dbafd304b9b7c2a84c3f321fc040f030e0314dea
4
+ data.tar.gz: fd7895425980b04494de197902a84bef9dcdb6153255654ccc2a5c28b31badb7
5
5
  SHA512:
6
- metadata.gz: 0337aee07465f0c897bf23180b6f114a3e1aa08b580040ab787e7df36f69947d8f68b644235fce64b1ea78db44aae8d2e58d5e9349b783c02a8d1499f7514507
7
- data.tar.gz: c8fdcf2857e1dfddcf36653dddcf48e6d19a10d7d9f99994a7551c9e146dd034e80576e0bf1b58d3b8aad784a11e1edd858ad9e9dae3b9122723c8242122f768
6
+ metadata.gz: 0ebb7d1aaf7ffd54e8f99bc1064caaa23c3f76e131260acf58dc43eb23de49a3d3d09482e19754b43ab19c699b313370fdd17ae5dfd02c1e3964470df002ffa8
7
+ data.tar.gz: 674438f94176b2ed7e77283e7238ab96edefc49a4423f9bb967904137a964d2d72228fd7f815fdb102b3ed0823820ef4e99fe54a0863b2144a98d3a240a2ccdb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # NodeMutation
2
2
 
3
+ ## 1.22.1 (2023-12-04)
4
+
5
+ * `child_node_range` supports int/float/str/sym `value`
6
+
3
7
  ## 1.22.0 (2023-11-27)
4
8
 
5
9
  * Add `adapter` parameter to `NodeMutation`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- node_mutation (1.22.0)
4
+ node_mutation (1.22.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -185,6 +185,8 @@ class NodeMutation::ParserAdapter < NodeMutation::Adapter
185
185
  NodeMutation::Struct::Range.new(node.loc.operator.begin_pos, node.loc.operator.end_pos) if node.loc.operator
186
186
  when %i[defs self]
187
187
  NodeMutation::Struct::Range.new(node.loc.operator.begin_pos - 'self'.length, node.loc.operator.begin_pos)
188
+ when %i[float value], %i[int value], %i[rational value], %i[str value], %i[sym value]
189
+ NodeMutation::Struct::Range.new(node.loc.expression.begin_pos, node.loc.expression.end_pos)
188
190
  when %i[lvasgn variable], %i[ivasgn variable], %i[cvasgn variable], %i[gvasgn variable]
189
191
  NodeMutation::Struct::Range.new(node.loc.name.begin_pos, node.loc.name.end_pos)
190
192
  when %i[send dot], %i[csend dot]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class NodeMutation
4
- VERSION = "1.22.0"
4
+ VERSION = "1.22.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: node_mutation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-27 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ast node mutation apis
14
14
  email: