synvert 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +5 -3
- data/lib/synvert/cli.rb +3 -3
- data/lib/synvert/version.rb +1 -1
- data/synvert-ruby.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21d219aaf7db59c0b63d0e4ef6458168e13b76ace165b8990e82efd34097ea2f
|
4
|
+
data.tar.gz: 938601896e1bbf2651ac78cf348af5edec9370c39d69e5a2129c47f01745bc33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fa0c007a3d150cf2508bd30049b8fe527154b5847211dce2fc3f08ebbcd9a26e031162a875390900117c2b6cc03667a67f9dab2a4a3507a58fbdd27c9c6bb8d
|
7
|
+
data.tar.gz: 2027f1f6daa49fbd78d3d47667148811b14d182d215f8c47ea41e4c2d50782cea4fa2e8515fb2678991508a48df6cbb606ed41bf1c516dc8ac825ddd2116ce03
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
synvert (1.
|
5
|
-
synvert-core (>= 1.
|
4
|
+
synvert (1.2.0)
|
5
|
+
synvert-core (>= 1.11.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -38,6 +38,7 @@ GEM
|
|
38
38
|
erubis
|
39
39
|
node_query (1.7.0)
|
40
40
|
activesupport (< 7.0.0)
|
41
|
+
parallel (1.22.1)
|
41
42
|
parser (3.1.2.1)
|
42
43
|
ast (~> 2.4.1)
|
43
44
|
parser_node_ext (0.4.0)
|
@@ -64,11 +65,12 @@ GEM
|
|
64
65
|
simplecov-html (~> 0.10.0)
|
65
66
|
simplecov-html (0.10.2)
|
66
67
|
sync (0.5.0)
|
67
|
-
synvert-core (1.
|
68
|
+
synvert-core (1.11.0)
|
68
69
|
activesupport (< 7.0.0)
|
69
70
|
erubis
|
70
71
|
node_mutation
|
71
72
|
node_query
|
73
|
+
parallel
|
72
74
|
parser
|
73
75
|
parser_node_ext
|
74
76
|
term-ansicolor (1.7.1)
|
data/lib/synvert/cli.rb
CHANGED
@@ -61,9 +61,6 @@ module Synvert
|
|
61
61
|
puts "file #{e.diagnostic.location.source_buffer.name}"
|
62
62
|
puts "line #{e.diagnostic.location.line}"
|
63
63
|
false
|
64
|
-
rescue Synvert::Core::RewriterNotFound => e
|
65
|
-
puts e.message
|
66
|
-
false
|
67
64
|
end
|
68
65
|
|
69
66
|
private
|
@@ -123,6 +120,9 @@ module Synvert
|
|
123
120
|
opts.on '-f', '--format FORMAT', 'output format' do |format|
|
124
121
|
@options[:format] = format
|
125
122
|
end
|
123
|
+
opts.on '--number-of-workers NUMBER_OF_WORKERS', 'set the number of workers, if it is greater than 1, it tests snippet in parallel' do |number_of_workers|
|
124
|
+
Core::Configuration.number_of_workers = number_of_workers.to_i
|
125
|
+
end
|
126
126
|
opts.on '-v', '--version', 'show this version' do
|
127
127
|
puts "#{VERSION} (with synvert-core #{Core::VERSION} and parser #{Parser::VERSION})"
|
128
128
|
exit
|
data/lib/synvert/version.rb
CHANGED
data/synvert-ruby.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
spec.post_install_message = 'Please run `synvert-ruby --sync` first to sync snippets remotely.'
|
22
22
|
|
23
|
-
spec.add_runtime_dependency 'synvert-core', '>= 1.
|
23
|
+
spec.add_runtime_dependency 'synvert-core', '>= 1.11.0'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler'
|
26
26
|
spec.add_development_dependency 'rake'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synvert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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: 2022-10-
|
11
|
+
date: 2022-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: synvert-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.11.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|