synvert 1.3.0 → 1.4.1

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: b027ed84abc77affd2b0e62c61bbdee527297588384654e126feef986ca52268
4
- data.tar.gz: eaa31a0227ddd3c5f1d0cf13a80bb13cd60b87304446883c1a3282c6f56b28ab
3
+ metadata.gz: a14ed41203f26cda5ffb3aa6d341e81a8e3753c371085c9ba2cfc050ca38c6eb
4
+ data.tar.gz: 7007836bdb7304c79c87e21a4a2659f1b95b75e60c4eed89be3f7162014f3f21
5
5
  SHA512:
6
- metadata.gz: 868a5ed598a7b81add0e4055b0911da95d19afff555cfd6c668a2967f8ee328c7a781792f5f61a1f2faecf486e3d269dead9696d78835f4d9ed531413e5d6b59
7
- data.tar.gz: 3a8e9f1244604d9dab4a8ffacd9dc99432e9be531d41b3dd907daa21c4f8259947f2177450b193be13aa981d97f72e0f76758dba43968ab19d5a650ee00c0d54
6
+ metadata.gz: 114c39e16894ab30e91f1d28e8fb6bf50fa3490b88e0141f809b9e7d8939d505d1fff45e39cb1b985df70b5666e6ace570a34bb2aa7449031751ad796b069dda
7
+ data.tar.gz: f2f7adfc50200ee78b87d3955a53ae1f664d86f50bc74869aca0128aeb0387dbca2e78d1fdbf3923831d5260be0d7509c41af8d348e3634b9f8c8b605a4ca986
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.4.1 (2023-02-10)
4
+
5
+ * Make sure `tab_width` is an Integer
6
+ * Update `synvert-core` to 1.21.1
7
+
8
+ ## 1.4.0 (2023-02-08)
9
+
10
+ * Add `--tab-width` flag
11
+ * Update `synvert-core` to 1.21.0
12
+
3
13
  ## 1.3.0 (2023-02-08)
4
14
 
5
15
  * Add `--double-quote` flag
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert (1.3.0)
5
- synvert-core (>= 1.20.0)
4
+ synvert (1.4.1)
5
+ synvert-core (>= 1.21.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -33,11 +33,11 @@ GEM
33
33
  concurrent-ruby (~> 1.0)
34
34
  json (2.5.1)
35
35
  minitest (5.17.0)
36
- node_mutation (1.8.2)
36
+ node_mutation (1.9.1)
37
37
  erubis
38
38
  node_query (1.12.0)
39
39
  parallel (1.22.1)
40
- parser (3.2.0.0)
40
+ parser (3.2.1.0)
41
41
  ast (~> 2.4.1)
42
42
  parser_node_ext (0.10.0)
43
43
  parser
@@ -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.20.0)
66
+ synvert-core (1.21.1)
67
67
  activesupport (< 7.0.0)
68
68
  erubis
69
- node_mutation (>= 1.8.2)
69
+ node_mutation (>= 1.9.0)
70
70
  node_query (>= 1.12.0)
71
71
  parallel
72
72
  parser
@@ -82,7 +82,7 @@ GEM
82
82
  addressable (>= 2.8.0)
83
83
  crack (>= 0.3.2)
84
84
  hashdiff (>= 0.4.0, < 2.0.0)
85
- zeitwerk (2.6.6)
85
+ zeitwerk (2.6.7)
86
86
 
87
87
  PLATFORMS
88
88
  ruby
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.to_i
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Synvert
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.1'
5
5
  end
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.20.0'
23
+ spec.add_runtime_dependency 'synvert-core', '>= 1.21.1'
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.3.0
4
+ version: 1.4.1
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-08 00:00:00.000000000 Z
11
+ date: 2023-02-10 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.20.0
19
+ version: 1.21.1
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.20.0
26
+ version: 1.21.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement