synvert-core 1.14.0 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +7 -7
- data/lib/synvert/core/rewriter/instance.rb +2 -2
- data/lib/synvert/core/rewriter.rb +0 -2
- data/lib/synvert/core/version.rb +1 -1
- data/spec/synvert/core/rewriter/instance_spec.rb +4 -0
- data/synvert-core-ruby.gemspec +3 -3
- metadata +8 -9
- data/lib/synvert/core/rewriter/any_value.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf73847a243ca7bed5a7838e67f7ca4841818d6fa71645e5d6e5ab752be5c2e0
|
4
|
+
data.tar.gz: 6b1acefc43253e642ea3ce012665a8288b9064927590e7b7a5a7410c43db14d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 808cebc5d15d61324aa00407e8932857ea93928cc2bf6948a253870f6cb5bc9e7a59e09e8172d01fdce61f01ee28667d4eae92ac09993a33bb769e34e2d31b8a
|
7
|
+
data.tar.gz: 30c5e89a55fd489948e8aa7e3867fb9188b9b12abb8eb81ed5c106c6ae277f954fab9b7bca2a332a5a323c4e8508510c1b178a307e3fa3056581c1845fd00a71
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.14.2 (2022-11-19)
|
4
|
+
|
5
|
+
* Specify `node_query`, `node_mutation` and `parser_node_ext` versions
|
6
|
+
|
7
|
+
## 1.14.1 (2022-10-26)
|
8
|
+
|
9
|
+
* Abstract `AnyValue` to NodeQuery
|
10
|
+
|
3
11
|
## 1.14.0 (2022-10-25)
|
4
12
|
|
5
13
|
* `insert_after` and `insert_before` accepts `to` option
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
synvert-core (1.14.
|
4
|
+
synvert-core (1.14.2)
|
5
5
|
activesupport (< 7.0.0)
|
6
6
|
erubis
|
7
|
-
node_mutation
|
8
|
-
node_query
|
7
|
+
node_mutation (>= 1.7.1)
|
8
|
+
node_query (>= 1.10.0)
|
9
9
|
parallel
|
10
10
|
parser
|
11
|
-
parser_node_ext
|
11
|
+
parser_node_ext (>= 0.4.1)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
@@ -50,10 +50,10 @@ GEM
|
|
50
50
|
method_source (1.0.0)
|
51
51
|
minitest (5.16.3)
|
52
52
|
nenv (0.3.0)
|
53
|
-
node_mutation (1.7.
|
53
|
+
node_mutation (1.7.1)
|
54
54
|
activesupport (< 7.0.0)
|
55
55
|
erubis
|
56
|
-
node_query (1.
|
56
|
+
node_query (1.10.0)
|
57
57
|
activesupport (< 7.0.0)
|
58
58
|
notiffany (0.1.3)
|
59
59
|
nenv (~> 0.1)
|
@@ -87,7 +87,7 @@ GEM
|
|
87
87
|
thor (1.2.1)
|
88
88
|
tzinfo (2.0.5)
|
89
89
|
concurrent-ruby (~> 1.0)
|
90
|
-
zeitwerk (2.6.
|
90
|
+
zeitwerk (2.6.6)
|
91
91
|
|
92
92
|
PLATFORMS
|
93
93
|
ruby
|
@@ -356,9 +356,9 @@ module Synvert::Core
|
|
356
356
|
# Match any value but nil.
|
357
357
|
# @example
|
358
358
|
# type: 'hash', nothing_value: 'true', status_value: any_value
|
359
|
-
# @return [
|
359
|
+
# @return [NodeQuery::AnyValue]
|
360
360
|
def any_value
|
361
|
-
|
361
|
+
NodeQuery::AnyValue.new
|
362
362
|
end
|
363
363
|
|
364
364
|
private
|
@@ -30,8 +30,6 @@ module Synvert::Core
|
|
30
30
|
autoload :RubyVersion, 'synvert/core/rewriter/ruby_version'
|
31
31
|
autoload :GemSpec, 'synvert/core/rewriter/gem_spec'
|
32
32
|
|
33
|
-
autoload :AnyValue, 'synvert/core/rewriter/any_value'
|
34
|
-
|
35
33
|
class << self
|
36
34
|
# Register a rewriter with its group and name.
|
37
35
|
#
|
data/lib/synvert/core/version.rb
CHANGED
@@ -197,6 +197,10 @@ module Synvert::Core
|
|
197
197
|
instance.warn 'foobar'
|
198
198
|
end
|
199
199
|
|
200
|
+
it 'parses any_value' do
|
201
|
+
expect(instance.any_value).to be_instance_of NodeQuery::AnyValue
|
202
|
+
end
|
203
|
+
|
200
204
|
describe '#process' do
|
201
205
|
let(:rewriter) { Rewriter.new('foo', 'bar') }
|
202
206
|
|
data/synvert-core-ruby.gemspec
CHANGED
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_runtime_dependency "activesupport", "< 7.0.0"
|
23
23
|
spec.add_runtime_dependency "erubis"
|
24
|
-
spec.add_runtime_dependency "node_query"
|
25
|
-
spec.add_runtime_dependency "node_mutation"
|
24
|
+
spec.add_runtime_dependency "node_query", ">= 1.10.0"
|
25
|
+
spec.add_runtime_dependency "node_mutation", ">= 1.7.1"
|
26
26
|
spec.add_runtime_dependency "parser"
|
27
|
-
spec.add_runtime_dependency "parser_node_ext"
|
27
|
+
spec.add_runtime_dependency "parser_node_ext", ">= 0.4.1"
|
28
28
|
spec.add_runtime_dependency "parallel"
|
29
29
|
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.14.
|
4
|
+
version: 1.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.10.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.10.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: node_mutation
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.7.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.7.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: parser
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.4.1
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 0.4.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: parallel
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,7 +133,6 @@ files:
|
|
133
133
|
- lib/synvert/core/node_ext.rb
|
134
134
|
- lib/synvert/core/rewriter.rb
|
135
135
|
- lib/synvert/core/rewriter/action/replace_erb_stmt_with_expr_action.rb
|
136
|
-
- lib/synvert/core/rewriter/any_value.rb
|
137
136
|
- lib/synvert/core/rewriter/condition.rb
|
138
137
|
- lib/synvert/core/rewriter/condition/if_exist_condition.rb
|
139
138
|
- lib/synvert/core/rewriter/condition/if_only_exist_condition.rb
|