synvert 1.3.0 → 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 +5 -0
- data/Gemfile.lock +5 -5
- data/README.md +1 -0
- data/lib/synvert/cli.rb +3 -0
- data/lib/synvert/version.rb +1 -1
- data/synvert-ruby.gemspec +1 -1
- metadata +3 -3
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
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
@@ -57,6 +57,7 @@ Usage: synvert-ruby [project_path]
|
|
57
57
|
--number-of-workers NUMBER_OF_WORKERS
|
58
58
|
set the number of workers, if it is greater than 1, it tests snippet in parallel
|
59
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
|
60
61
|
-v, --version show this version
|
61
62
|
```
|
62
63
|
|
data/lib/synvert/cli.rb
CHANGED
@@ -127,6 +127,9 @@ module Synvert
|
|
127
127
|
opts.on '--double-quote', 'prefer double quote, it uses single quote by default' do |double_quote|
|
128
128
|
Core::Configuration.single_quote = false
|
129
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
|
130
133
|
opts.on '-v', '--version', 'show this version' do
|
131
134
|
puts "#{VERSION} (with synvert-core #{Core::VERSION} and parser #{Parser::VERSION})"
|
132
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,7 +1,7 @@
|
|
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
|
@@ -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
|