node_mutation 1.7.0 → 1.7.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: eb6a1cb69d0fdb6691831450fae1c126d25ae38495f5b68725b7500708534671
4
- data.tar.gz: 643999af6c57ea3553668945af32e49074605940c7372c6292272c34271672a7
3
+ metadata.gz: 9dffabe82f3653964c889ce43ccf443348973e9868c1c7565327ae253d0be08d
4
+ data.tar.gz: 1b72a6361aea2795c06881754bb8822caf069d8f0b54e9f9e0e8685f70de4b21
5
5
  SHA512:
6
- metadata.gz: 8088d0b9d08569fe3653a99c6a19ac7c5701b42a8e2d90668a5d1ea8cff354f5fe2f197ef319825f56ba0eeaef74380999a54fe84169818bc35bcc0263d11688
7
- data.tar.gz: 55725a4fb619d3679531e4af3bbb098994b472b84b6aedecd5d88e9310959eda1c7ea261c76654b73963eb388cd786523bc1d58e561196b6a75cd024b912fcb4
6
+ metadata.gz: bc5969cdfdf5654fe4c6886b5d177e356d2072b1369bd0eb7c75b59d60d3388b1dfaf69a435e13e5d1e46006ec9368e1aedeca4b82af29e61bb1525d19a2c428
7
+ data.tar.gz: 6db8711936e7f6772bf44afefda33c8969ea9ffdd3db05a80fcc414958efb2b22b24ce373d1c45950f8118b13de72fdc091b6b2d6213d3912ab7a34704078de1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # NodeMutation
2
2
 
3
+ ## 1.7.1 (2022-10-26)
4
+
5
+ * Return empty string for `NilClass` in `ParserAdapter#rewritten_source`
6
+
3
7
  ## 1.7.0 (2022-10-25)
4
8
 
5
9
  * Add a new strategy `ALLOW_INSERT_AT_SAME_POSITION`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- node_mutation (1.7.0)
4
+ node_mutation (1.7.1)
5
5
  activesupport (< 7.0.0)
6
6
  erubis
7
7
 
@@ -41,6 +41,8 @@ class NodeMutation::ParserAdapter < NodeMutation::Adapter
41
41
  end
42
42
  when String, Symbol, Integer, Float
43
43
  evaluated
44
+ when NilClass
45
+ ''
44
46
  else
45
47
  raise "can not parse \"#{code}\""
46
48
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class NodeMutation
4
- VERSION = "1.7.0"
4
+ VERSION = "1.7.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.7.0
4
+ version: 1.7.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-10-25 00:00:00.000000000 Z
11
+ date: 2022-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport