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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 036a5a2a642e96b611185e400b4f458be77f2622c3ef996bdac4bc0cbda1df70
4
- data.tar.gz: 51ec847622d9018176f4dceb51a2a9ac623c1129abea3012d6e2faab650ee7f2
3
+ metadata.gz: 8a431b26d98c476c389746269aade183f241a3c1cb2fabab27b87b2b0689510f
4
+ data.tar.gz: 61b1907dbadbef95ca5d8869b6c27f65e43f72dccd0f64ead4ad3cf15a5f9c01
5
5
  SHA512:
6
- metadata.gz: 6c739ddf2691480f5d53fe0033eb24a5c0e784116fec98eff71a58d1d1745a853790121a89979b32624fcb65ea104b837a744b9353fde8ef74ef227433e9be7f
7
- data.tar.gz: 95ad1ab6a96a33f0299aa012f7731915a7af3794b805b5e5743ddd2d11c48e29dc34019773a3948b96db94aea814d928558c0ee0409a750dae3e85c6d503ec67
6
+ metadata.gz: e3ee5356583c8450635e8296657860e7016a8dfe0214fb2518da72aa2631e7511672802e326553bd44b3de1dea7e683a0784ff58770c641dae76ab9bca86e317
7
+ data.tar.gz: d7426a0450fbfaf871c8083aa4d06b1a1bf439436ed964cfb8e2325e832a05b479b1f81ae71c2b3b103c614a02b7eb23ddfc4ac6311f14b7e161a54893bb040b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.19.0 (2023-02-06)
4
+
5
+ * Remove `Instance#query_adapter`
6
+
3
7
  ## 1.18.1 (2023-02-05)
4
8
 
5
9
  * Fix glob with only paths
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert-core (1.18.1)
4
+ synvert-core (1.19.0)
5
5
  activesupport (< 7.0.0)
6
6
  erubis
7
7
  node_mutation (>= 1.8.2)
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, :query_adapter, :mutation_adapter
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Synvert
4
4
  module Core
5
- VERSION = '1.18.1'
5
+ VERSION = '1.19.0'
6
6
  end
7
7
  end
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.18.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-05 00:00:00.000000000 Z
11
+ date: 2023-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport