synvert 1.3.0 → 1.4.0

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: ceff5dd8ef092b08e7ae9d1c02f18d631d32673c44decf2c154d3ff9cfee63a5
4
+ data.tar.gz: 5d1ee4dc536803776ce4856e9ecd5dd95de2a2a76b7a6e181dafbb4e8be0eb54
5
5
  SHA512:
6
- metadata.gz: 868a5ed598a7b81add0e4055b0911da95d19afff555cfd6c668a2967f8ee328c7a781792f5f61a1f2faecf486e3d269dead9696d78835f4d9ed531413e5d6b59
7
- data.tar.gz: 3a8e9f1244604d9dab4a8ffacd9dc99432e9be531d41b3dd907daa21c4f8259947f2177450b193be13aa981d97f72e0f76758dba43968ab19d5a650ee00c0d54
6
+ metadata.gz: 83be6d6862079f7bb917cd0992700061dbc3d0660972687023fae38e53fb3e18e27326574cf91a3c4aacd34e6e282fe010f2284d35c02f0fb5da5b341e6ecca0
7
+ data.tar.gz: b3b50e28d11c4cc219057b4bab38bedee708de4c0a169b118fb6bc270da76a1f3d3d78a002896bcb2470c39075823664653d211e242619b3dade82d1e2a49413
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ## 1.3.0 (2023-02-08)
4
9
 
5
10
  * 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.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.8.2)
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.20.0)
66
+ synvert-core (1.21.0)
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
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
@@ -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.0'
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.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.3.0
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.20.0
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.20.0
26
+ version: 1.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement