node_mutation 1.13.1 → 1.13.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: fe41a31b811d16da282f8945f61004449dee3aedead1b7e8daabc864918d8a68
4
- data.tar.gz: 5a7940724edbb66def2ec4bc0c355bbbeaa87a12eadeddf0c9647bab2efb3b3b
3
+ metadata.gz: dc332fd8345dc642414853ebc7f92ddf3f4d364c2bd5f5076d5de3a17368ce50
4
+ data.tar.gz: 4a5018954b0094f1dea13c4b4f7ce0237e368564b892a57cd680ec88fb062eb1
5
5
  SHA512:
6
- metadata.gz: 8b1fdbce0a2a34d0135199937e619b14e51b0b5e75ceaa2e8adb0fe3b044aa7f70abe0d8b954cd112437d7e52437727e4967f1b01b62b67aeff7c2711a66b8f3
7
- data.tar.gz: be6a5cc15c2206ae661e33c47228610637bb0d2ee4db8a2e87606e3f9d34ca5fcaf4c83e7a94c9a5380915034a7d9d52a6c4a5b4a9cc93a1ea7040c09cbb8733
6
+ metadata.gz: f2329f07950c9a97b1cb2729ffc9b617e146a56607476f03c8cb78e3047ebc52358e59ff4e80916e8bf521f4d8ff9e7e5801e2452b414f81ac447590e39ac9e6
7
+ data.tar.gz: b97de612f89f6d7e23a20e2bfaed7aa1c0ead95ba868c3535e9575161feb18a35b13a0a75623a814855ce149d7f56676ad1fc76836235ce5e4d8a503dc0147bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # NodeMutation
2
2
 
3
+ ## 1.13.2 (2023-04-01)
4
+
5
+ * Support `cvar`, `gvar`, `ivar`, and `lvar` name in `child_node_range`
6
+
3
7
  ## 1.13.1 (2023-03-31)
4
8
 
5
9
  * Remove both whitespaces only when next char is nil
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- node_mutation (1.13.1)
4
+ node_mutation (1.13.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -88,7 +88,7 @@ class NodeMutation::ParserAdapter < NodeMutation::Adapter
88
88
  node.arguments.first.loc.expression.begin_pos,
89
89
  node.arguments.last.loc.expression.end_pos
90
90
  )
91
- when %i[class name], %i[const name], %i[def name], %i[defs name]
91
+ when %i[class name], %i[const name], %i[cvar name], %i[def name], %i[defs name], %i[gvar name], %i[ivar name], %i[lvar name]
92
92
  NodeMutation::Struct::Range.new(node.loc.name.begin_pos, node.loc.name.end_pos)
93
93
  when %i[defs dot]
94
94
  NodeMutation::Struct::Range.new(node.loc.operator.begin_pos, node.loc.operator.end_pos) if node.loc.operator
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class NodeMutation
4
- VERSION = "1.13.1"
4
+ VERSION = "1.13.2"
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.13.1
4
+ version: 1.13.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: 2023-03-31 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ast node mutation apis
14
14
  email: