synvert 1.2.6 → 1.4.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 +10 -0
- data/Gemfile.lock +5 -5
- data/README.md +5 -1
- data/lib/synvert/cli.rb +6 -0
- 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: ceff5dd8ef092b08e7ae9d1c02f18d631d32673c44decf2c154d3ff9cfee63a5
|
4
|
+
data.tar.gz: 5d1ee4dc536803776ce4856e9ecd5dd95de2a2a76b7a6e181dafbb4e8be0eb54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83be6d6862079f7bb917cd0992700061dbc3d0660972687023fae38e53fb3e18e27326574cf91a3c4aacd34e6e282fe010f2284d35c02f0fb5da5b341e6ecca0
|
7
|
+
data.tar.gz: b3b50e28d11c4cc219057b4bab38bedee708de4c0a169b118fb6bc270da76a1f3d3d78a002896bcb2470c39075823664653d211e242619b3dade82d1e2a49413
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 1.4.0 (2023-02-08)
|
4
|
+
|
5
|
+
* Add `--tab-width` flag
|
6
|
+
* Update `synvert-core` to 1.21.0
|
7
|
+
|
8
|
+
## 1.3.0 (2023-02-08)
|
9
|
+
|
10
|
+
* Add `--double-quote` flag
|
11
|
+
* Update `synvert-core` to 1.20.0
|
12
|
+
|
3
13
|
## 1.2.6 (2023-02-02)
|
4
14
|
|
5
15
|
* Output error message
|
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.4.0)
|
5
|
+
synvert-core (>= 1.21.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -33,7 +33,7 @@ GEM
|
|
33
33
|
concurrent-ruby (~> 1.0)
|
34
34
|
json (2.5.1)
|
35
35
|
minitest (5.17.0)
|
36
|
-
node_mutation (1.
|
36
|
+
node_mutation (1.9.0)
|
37
37
|
erubis
|
38
38
|
node_query (1.12.0)
|
39
39
|
parallel (1.22.1)
|
@@ -63,10 +63,10 @@ GEM
|
|
63
63
|
simplecov-html (~> 0.10.0)
|
64
64
|
simplecov-html (0.10.2)
|
65
65
|
sync (0.5.0)
|
66
|
-
synvert-core (1.
|
66
|
+
synvert-core (1.21.0)
|
67
67
|
activesupport (< 7.0.0)
|
68
68
|
erubis
|
69
|
-
node_mutation (>= 1.
|
69
|
+
node_mutation (>= 1.9.0)
|
70
70
|
node_query (>= 1.12.0)
|
71
71
|
parallel
|
72
72
|
parser
|
data/README.md
CHANGED
@@ -47,13 +47,17 @@ Usage: synvert-ruby [project_path]
|
|
47
47
|
-o, --open SNIPPET_NAME Open a snippet
|
48
48
|
-g, --generate NEW_SNIPPET_NAME generate a new snippet
|
49
49
|
--sync sync snippets
|
50
|
-
--execute
|
50
|
+
--execute EXECUTE_COMMAND execute snippet
|
51
51
|
-r, --run SNIPPET_NAME run a snippet with snippet name, e.g. ruby/new_hash_syntax, or remote url, or local file path
|
52
52
|
-t, --test SNIPPET_NAME test a snippet with snippet name, e.g. ruby/new_hash_syntax, or remote url, or local file path
|
53
53
|
--show-run-process show processing files when running a snippet
|
54
54
|
--only-paths DIRECTORIES only specified files or directories, separated by comma, e.g. app/models,app/controllers
|
55
55
|
--skip-paths FILE_PATTERNS skip specified files or directories, separated by comma, e.g. vendor/,lib/**/*.rb
|
56
56
|
-f, --format FORMAT output format
|
57
|
+
--number-of-workers NUMBER_OF_WORKERS
|
58
|
+
set the number of workers, if it is greater than 1, it tests snippet in parallel
|
59
|
+
--double-quote prefer double quote, it uses single quote by default
|
60
|
+
--tab-width TAB_WIDTH prefer tab width, it uses 2 by default
|
57
61
|
-v, --version show this version
|
58
62
|
```
|
59
63
|
|
data/lib/synvert/cli.rb
CHANGED
@@ -124,6 +124,12 @@ module Synvert
|
|
124
124
|
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|
|
125
125
|
Core::Configuration.number_of_workers = number_of_workers.to_i
|
126
126
|
end
|
127
|
+
opts.on '--double-quote', 'prefer double quote, it uses single quote by default' do |double_quote|
|
128
|
+
Core::Configuration.single_quote = false
|
129
|
+
end
|
130
|
+
opts.on '--tab-width TAB_WIDTH', 'prefer tab width, it uses 2 by default' do |tab_width|
|
131
|
+
Core::Configuration.tab_width = tab_width
|
132
|
+
end
|
127
133
|
opts.on '-v', '--version', 'show this version' do
|
128
134
|
puts "#{VERSION} (with synvert-core #{Core::VERSION} and parser #{Parser::VERSION})"
|
129
135
|
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.21.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.4.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-08 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.21.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.21.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|