synvert-core 1.18.1 → 1.19.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +0 -1
- data/lib/synvert/core/rewriter/instance.rb +1 -5
- data/lib/synvert/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a431b26d98c476c389746269aade183f241a3c1cb2fabab27b87b2b0689510f
|
|
4
|
+
data.tar.gz: 61b1907dbadbef95ca5d8869b6c27f65e43f72dccd0f64ead4ad3cf15a5f9c01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3ee5356583c8450635e8296657860e7016a8dfe0214fb2518da72aa2631e7511672802e326553bd44b3de1dea7e683a0784ff58770c641dae76ab9bca86e317
|
|
7
|
+
data.tar.gz: d7426a0450fbfaf871c8083aa4d06b1a1bf439436ed964cfb8e2325e832a05b479b1f81ae71c2b3b103c614a02b7eb23ddfc4ac6311f14b7e161a54893bb040b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -105,5 +105,4 @@ Attributes:
|
|
|
105
105
|
|
|
106
106
|
* [file_path](https://xinminlabs.github.io/synvert-core-ruby/Synvert/Core/Rewriter/Instance.html#file_path-instance_method) - current file path
|
|
107
107
|
* [node](https://xinminlabs.github.io/synvert-core-ruby/Synvert/Core/Rewriter/Instance.html#node-instance_method) - current ast node
|
|
108
|
-
* [query_adapter](https://xinminlabs.github.io/synvert-core-ruby/Synvert/Core/Rewriter/Instance.html#query_adapter-instance_method) - [query adapter](https://xinminlabs.github.io/node-query-ruby/NodeQuery/Adapter.html) to get some helper methods
|
|
109
108
|
* [mutation_adapter](https://xinminlabs.github.io/synvert-core-ruby/Synvert/Core/Rewriter/Instance.html#mutation_adapter-instance_method) - [mutation adapter](https://xinminlabs.github.io/node-mutation-ruby/NodeMutation/Adapter.html) to get some helper methods
|
|
@@ -30,11 +30,9 @@ module Synvert::Core
|
|
|
30
30
|
# @return file path
|
|
31
31
|
# @!attribute [rw] current_node
|
|
32
32
|
# @return current ast node
|
|
33
|
-
# @!attribute [r] query_adapter
|
|
34
|
-
# @return NodeQuery Adapter
|
|
35
33
|
# @!attribute [r] mutation_adapter
|
|
36
34
|
# @return NodeMutation Adapter
|
|
37
|
-
attr_reader :file_path, :current_node, :
|
|
35
|
+
attr_reader :file_path, :current_node, :mutation_adapter
|
|
38
36
|
attr_accessor :current_node
|
|
39
37
|
|
|
40
38
|
# Process the instance.
|
|
@@ -48,7 +46,6 @@ module Synvert::Core
|
|
|
48
46
|
source = read_source(absolute_file_path)
|
|
49
47
|
@current_mutation = NodeMutation.new(source)
|
|
50
48
|
@mutation_adapter = NodeMutation.adapter
|
|
51
|
-
@query_adapter = NodeQuery.adapter
|
|
52
49
|
begin
|
|
53
50
|
node = parse_code(@file_path, source)
|
|
54
51
|
|
|
@@ -85,7 +82,6 @@ module Synvert::Core
|
|
|
85
82
|
source = read_source(absolute_file_path)
|
|
86
83
|
@current_mutation = NodeMutation.new(source)
|
|
87
84
|
@mutation_adapter = NodeMutation.adapter
|
|
88
|
-
@query_adapter = NodeQuery.adapter
|
|
89
85
|
begin
|
|
90
86
|
node = parse_code(file_path, source)
|
|
91
87
|
|
data/lib/synvert/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: synvert-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Huang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-02-
|
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|