node_mutation 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c27aac4f89bdddee8f7298469d2f26ad17f38c8ed6eb4e76bf4d7af0ea729f98
4
- data.tar.gz: da1d0b9a9b830890583d88b0b74cca800eb991c4eb86e9b232eabd75678538b0
3
+ metadata.gz: 16d1f6952b16d815e9cee50df011c99075ffd17bc17531efc8b6a99c39909d4a
4
+ data.tar.gz: 3f558c1b9e171310775fec6ccdb3a1fe0321aa0ce94b23ec8c861e3ae496dd31
5
5
  SHA512:
6
- metadata.gz: 12d58838fec06d87e0ffad8fce9a1879221726fa57cf15e0e3c4d08541d7a7ef0fff0249601814edc9bad95e73cc5eac46a9f91a55816fee8c3773b0e397b74e
7
- data.tar.gz: '02870efef507899a92a021a8532c175c0ba230815f76eba8391421b97cd628697a035b31bd17110564aa1c273f78db795a7f1a9d775742917abce56ee703efee'
6
+ metadata.gz: 7221a70883e380a9f88dda96db69890349dde212580f63fac75d02a71bb558587d4ccf7e6b33547b0b44846ee493fd7ed924e13eb7cc414b27979c3fb354876e
7
+ data.tar.gz: 7d1cc7ab27508b202589d22bd6affc07345d19ad12701b7a3aea2d9bc06125a43e17870f787a539a16faaf1ed7db14a13c28b4b8a46d0afaa3b1d2fe701c4ef8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # NodeMutation
2
2
 
3
+ ## 1.2.1 (2022-07-22)
4
+
5
+ * Fix `child_node_range` for const name
6
+ * Update `parser_node_ext` to 0.4.0
7
+
3
8
  ## 1.2.0 (2022-07-02)
4
9
 
5
10
  * Return new source instead of writing file
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- node_mutation (1.2.0)
4
+ node_mutation (1.2.1)
5
5
  activesupport
6
6
  erubis
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.3)
11
+ activesupport (7.0.3.1)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -34,21 +34,21 @@ GEM
34
34
  guard (~> 2.1)
35
35
  guard-compat (~> 1.1)
36
36
  rspec (>= 2.99.0, < 4.0)
37
- i18n (1.10.0)
37
+ i18n (1.12.0)
38
38
  concurrent-ruby (~> 1.0)
39
39
  listen (3.7.1)
40
40
  rb-fsevent (~> 0.10, >= 0.10.3)
41
41
  rb-inotify (~> 0.9, >= 0.9.10)
42
42
  lumberjack (1.2.8)
43
43
  method_source (1.0.0)
44
- minitest (5.16.1)
44
+ minitest (5.16.2)
45
45
  nenv (0.3.0)
46
46
  notiffany (0.1.3)
47
47
  nenv (~> 0.1)
48
48
  shellany (~> 0.0)
49
49
  parser (3.1.2.0)
50
50
  ast (~> 2.4.1)
51
- parser_node_ext (0.2.0)
51
+ parser_node_ext (0.4.0)
52
52
  parser
53
53
  pp (0.3.0)
54
54
  prettyprint
@@ -75,7 +75,7 @@ GEM
75
75
  rspec-support (3.11.0)
76
76
  shellany (0.0.1)
77
77
  thor (1.2.1)
78
- tzinfo (2.0.4)
78
+ tzinfo (2.0.5)
79
79
  concurrent-ruby (~> 1.0)
80
80
 
81
81
  PLATFORMS
@@ -77,7 +77,7 @@ class NodeMutation::ParserAdapter < NodeMutation::Adapter
77
77
  start: node.arguments.first.loc.expression.begin_pos,
78
78
  end: node.arguments.last.loc.expression.end_pos
79
79
  )
80
- when %i[class name], %i[def name], %i[defs name]
80
+ when %i[class name], %i[const name], %i[def name], %i[defs name]
81
81
  OpenStruct.new(start: node.loc.name.begin_pos, end: node.loc.name.end_pos)
82
82
  when %i[defs dot]
83
83
  OpenStruct.new(start: node.loc.operator.begin_pos, end: node.loc.operator.end_pos) if node.loc.operator
@@ -171,4 +171,4 @@ class NodeMutation::ParserAdapter < NodeMutation::Adapter
171
171
  return child_node
172
172
  end
173
173
  end
174
- end
174
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class NodeMutation
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.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.2.0
4
+ version: 1.2.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: 2022-07-02 00:00:00.000000000 Z
11
+ date: 2022-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport