node_mutation 1.4.1 → 1.4.2

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: c039ce434de2c9f04450657464f649b1005851b3beaacc83be674833a0756ffa
4
- data.tar.gz: e2e64db507b3099dc2f8709b0c6eb5f0cfb990ad1f5c2061eab8666212306a3a
3
+ metadata.gz: 976a6458a2d0fec8c240abf9c2be1d19aa7e95fe696df882df88136b71d5508c
4
+ data.tar.gz: 508d7c2b4cf4e64b4cf5d258af62037b33222af4e25faf1f5fae8fb18e35d6cc
5
5
  SHA512:
6
- metadata.gz: ff18089505355b7527c220ce0ed22ba84f7bef3e4789deb656a9dfe49b962c984e313bc1ade369bcf6ba01006ff2dd102f38e319a06b77a38522fecc5b2dba22
7
- data.tar.gz: 8feb7df10f01fffa63af2b913f129a95c55ba81af0446aaeea6a1282e1c1f1ee6648f812acce635b09cf2905def86227c42dbc92bc0b8e80fa7f54cc5e04530b
6
+ metadata.gz: a00c2bad64ac0f931423bb4ee0ea5dcb0893d6dec2784902b2cee30a2a6723a5cace395133056b3703c213f2283eb4dec0946b2cafea9e5372e3bf8cad077aa3
7
+ data.tar.gz: 3a3b59553a9261f211b5ab9b9378efbc47dca750e26d9d75914b3951a4a24634ac9ac8ac325589fe6a4d3bc56e8f3932d4ec3cdb95caa2cc28605d2c10e8ceec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # NodeMutation
2
2
 
3
+ ## 1.4.2 (2022-09-23)
4
+
5
+ * Add `NodeMutation#to_json`
6
+
3
7
  ## 1.4.1 (2022-09-23)
4
8
 
5
9
  * Add `NodeMutation#noop`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- node_mutation (1.4.1)
4
+ node_mutation (1.4.2)
5
5
  activesupport (< 7.0.0)
6
6
  erubis
7
7
 
@@ -23,6 +23,10 @@ class NodeMutation::Result
23
23
  @options[:new_source]
24
24
  end
25
25
 
26
+ def to_json(*args)
27
+ to_hash.to_json(*args)
28
+ end
29
+
26
30
  def to_hash
27
31
  hash = { file_path: file_path }
28
32
  @options.each do |key, value|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class NodeMutation
4
- VERSION = "1.4.1"
4
+ VERSION = "1.4.2"
5
5
  end
@@ -10,4 +10,6 @@ class NodeMutation::Result
10
10
  def new_source: () -> String
11
11
 
12
12
  def actions: () -> Array[Hash]
13
+
14
+ def to_json: (*args) -> String
13
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: node_mutation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang