synvert 1.2.6 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5ee0b74a9d8854edde22295b9f79006d68313dc38b17ded67fb6ea655f965f6
4
- data.tar.gz: 930c8f0143270b79b1a240c71760d064ee8c3cd0d2397636326f16277440333a
3
+ metadata.gz: b027ed84abc77affd2b0e62c61bbdee527297588384654e126feef986ca52268
4
+ data.tar.gz: eaa31a0227ddd3c5f1d0cf13a80bb13cd60b87304446883c1a3282c6f56b28ab
5
5
  SHA512:
6
- metadata.gz: f361cc57a7ac244bc0df0d14c4d0cbdd12f744eb61eb2638373027b7170a386ee556ee73dbe1da3115521742e7c17ee2731a38b37fdca13916c83b2f9e1a7043
7
- data.tar.gz: 4d326720a1f23de23b4d46dbd2738a572a2eec2dbe62e4fb060812f8d749b687b26b9ede09ff44e9f106e0312b8ddc05646ae52100c5ee26dee0e0f8d7533168
6
+ metadata.gz: 868a5ed598a7b81add0e4055b0911da95d19afff555cfd6c668a2967f8ee328c7a781792f5f61a1f2faecf486e3d269dead9696d78835f4d9ed531413e5d6b59
7
+ data.tar.gz: 3a8e9f1244604d9dab4a8ffacd9dc99432e9be531d41b3dd907daa21c4f8259947f2177450b193be13aa981d97f72e0f76758dba43968ab19d5a650ee00c0d54
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.3.0 (2023-02-08)
4
+
5
+ * Add `--double-quote` flag
6
+ * Update `synvert-core` to 1.20.0
7
+
3
8
  ## 1.2.6 (2023-02-02)
4
9
 
5
10
  * Output error message
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert (1.2.6)
5
- synvert-core (>= 1.18.0)
4
+ synvert (1.3.0)
5
+ synvert-core (>= 1.20.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -63,7 +63,7 @@ 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.18.0)
66
+ synvert-core (1.20.0)
67
67
  activesupport (< 7.0.0)
68
68
  erubis
69
69
  node_mutation (>= 1.8.2)
data/README.md CHANGED
@@ -47,13 +47,16 @@ 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 execute snippet
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
57
60
  -v, --version show this version
58
61
  ```
59
62
 
data/lib/synvert/cli.rb CHANGED
@@ -124,6 +124,9 @@ 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
127
130
  opts.on '-v', '--version', 'show this version' do
128
131
  puts "#{VERSION} (with synvert-core #{Core::VERSION} and parser #{Parser::VERSION})"
129
132
  exit
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Synvert
4
- VERSION = '1.2.6'
4
+ VERSION = '1.3.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.18.0'
23
+ spec.add_runtime_dependency 'synvert-core', '>= 1.20.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.2.6
4
+ version: 1.3.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-04 00:00:00.000000000 Z
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.18.0
19
+ version: 1.20.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.18.0
26
+ version: 1.20.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement