synvert 1.6.4 → 1.8.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: 05ab9f1669c8a7360651bf389810fcbddfddec6744811f4edb8b070dd32516c7
4
- data.tar.gz: 82e1a0d2691eebc43c0e20fe0195cf058f5fb2b6b9e785c5a733044d1ba7ac71
3
+ metadata.gz: bbb387a573ce810c21141b9d38b3d0327ed187e349e6ef4bd164fb84c827910b
4
+ data.tar.gz: d2e9a7b9bcb55946208824c57433aa3cbcd96f1522b1be919d24debd44c060a6
5
5
  SHA512:
6
- metadata.gz: 25005ed53d307aebf87dd3651f70063c6ac0645f2a965ac12680322a6b8c47231ecc8743554883b01de87c44753518e03f34b65a98bc68da9b3805a184ea60d5
7
- data.tar.gz: 175d4d6dde8e0711da6926ca2fc0351d070c20fbf6b7a5148ffa28b91fadb3c75242fd68b4ab8c431154affa261483e3d180435227b8ee89f33452cb92f9aba1
6
+ metadata.gz: ed4a33fcdeca950ba1531f298401df13e62b65d98b05a534dcf9cbf2843be06629b4372c3c4197cb62df51d934b005aae06ea269adbfef5869fdfda1c8258f99
7
+ data.tar.gz: f52a2531af36526e8b362c2da4bffe2667137db42a9a6b600ac3cb7b6f75f6b268338e7093885d66aae1aef9b8cd093c8f3b55596d7dbba740ca1038f0610e27
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ test/tmp
15
15
  test/version_tmp
16
16
  tmp
17
17
  _site
18
+ .vscode
data/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
- # CHANGELOGconfig
1
+ # CHANGELOG
2
+
3
+ ## 1.8.0 (2024-02-18)
4
+
5
+ * Add `--dont-respect-gitignore` flag
6
+ * Update `synvert-core` to 1.33.0
7
+
8
+ ## 1.7.0 (2024-01-14)
9
+
10
+ * Add `--test-result` flag
11
+ * Update `synvert-core` to 1.31.0
2
12
 
3
13
  ## 1.6.4 (2024-01-11)
4
14
 
@@ -51,7 +61,7 @@
51
61
 
52
62
  ## 1.4.3 (2023-04-11)
53
63
 
54
- * Uutput backtrace when `ENV['DEBUG']` is true
64
+ * Output backtrace when `ENV['DEBUG']` is true
55
65
  * Update `synvert-core` to 1.22.1
56
66
 
57
67
  ## 1.4.2 (2023-03-29)
@@ -98,7 +108,7 @@
98
108
 
99
109
  ## 1.2.1 (2022-11-13)
100
110
 
101
- * Concat multiple git commands with &&
111
+ * Concatenation multiple git commands with &&
102
112
 
103
113
  ## 1.2.0 (2022-10-11)
104
114
 
@@ -203,7 +213,7 @@
203
213
 
204
214
  ## 0.10.0 (2021-02-07)
205
215
 
206
- * Use new `Core::Confiruation`
216
+ * Use new `Core::Configuration`
207
217
  * Use require instead of eval in order to preserve normal Ruby semantics
208
218
 
209
219
  ## 0.9.0
@@ -243,7 +253,7 @@
243
253
  ## 0.0.16
244
254
 
245
255
  * Add -v, --version cli option.
246
- * Ouput file and line number if there's syntax error.
256
+ * Output file and line number if there's syntax error.
247
257
  * Add check_syntax snippet.
248
258
 
249
259
  ## 0.0.15
@@ -277,7 +287,7 @@
277
287
  ## 0.0.10
278
288
 
279
289
  * Add not ast node operator
280
- * Replace with multipe line code
290
+ * Replace with multiple line code
281
291
  * Add RSpec new syntax snippet
282
292
 
283
293
  ## 0.0.9
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert (1.6.4)
5
- synvert-core (>= 1.30.2)
4
+ synvert (1.8.0)
5
+ synvert-core (>= 1.31.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -15,7 +15,7 @@ GEM
15
15
  zeitwerk (~> 2.3)
16
16
  ast (2.4.2)
17
17
  coderay (1.1.3)
18
- concurrent-ruby (1.2.2)
18
+ concurrent-ruby (1.2.3)
19
19
  diff-lcs (1.4.4)
20
20
  ffi (1.16.3)
21
21
  formatador (1.1.0)
@@ -40,20 +40,23 @@ GEM
40
40
  rb-inotify (~> 0.9, >= 0.9.10)
41
41
  lumberjack (1.2.9)
42
42
  method_source (1.0.0)
43
- minitest (5.20.0)
43
+ minitest (5.22.2)
44
44
  nenv (0.3.0)
45
- node_mutation (1.22.2)
46
- node_query (1.14.1)
45
+ node_mutation (1.23.2)
46
+ node_query (1.15.1)
47
47
  notiffany (0.1.3)
48
48
  nenv (~> 0.1)
49
49
  shellany (~> 0.0)
50
50
  parallel (1.24.0)
51
- parser (3.3.0.2)
51
+ parser (3.3.0.5)
52
52
  ast (~> 2.4.1)
53
53
  racc
54
- parser_node_ext (1.2.1)
54
+ parser_node_ext (1.2.2)
55
55
  parser
56
56
  prettier_print (1.2.1)
57
+ prism (0.24.0)
58
+ prism_ext (0.2.3)
59
+ prism
57
60
  pry (0.14.2)
58
61
  coderay (~> 1.1)
59
62
  method_source (~> 1.0)
@@ -78,21 +81,23 @@ GEM
78
81
  shellany (0.0.1)
79
82
  syntax_tree (6.2.0)
80
83
  prettier_print (>= 1.2.0)
81
- syntax_tree_ext (0.6.4)
84
+ syntax_tree_ext (0.7.2)
82
85
  syntax_tree
83
- synvert-core (1.30.2)
86
+ synvert-core (1.33.0)
84
87
  activesupport (< 7.0.0)
85
- node_mutation (>= 1.21.6)
86
- node_query (>= 1.13.12)
88
+ node_mutation (>= 1.23.2)
89
+ node_query (>= 1.15.1)
87
90
  parallel
88
91
  parser
89
- parser_node_ext (>= 1.2.1)
92
+ parser_node_ext (>= 1.2.2)
93
+ prism
94
+ prism_ext (>= 0.2.3)
90
95
  syntax_tree
91
- syntax_tree_ext (>= 0.6.4)
96
+ syntax_tree_ext (>= 0.7.2)
92
97
  thor (1.3.0)
93
98
  tzinfo (2.0.6)
94
99
  concurrent-ruby (~> 1.0)
95
- zeitwerk (2.6.12)
100
+ zeitwerk (2.6.13)
96
101
 
97
102
  PLATFORMS
98
103
  ruby
data/lib/synvert/cli.rb CHANGED
@@ -143,9 +143,18 @@ module Synvert
143
143
  opts.on '--tab-width TAB_WIDTH', 'prefer tab width, it uses 2 by default' do |tab_width|
144
144
  Core::Configuration.tab_width = tab_width.to_i
145
145
  end
146
- opts.on '--loose', 'loose mode, it ignores ruby version and gem version check, it uses strict mode by default' do |_loose|
146
+ opts.on '--loose',
147
+ 'loose mode, it ignores ruby version and gem version check, it uses strict mode by default' do |_loose|
147
148
  Core::Configuration.strict = false
148
149
  end
150
+ opts.on '--dont-respect-gitignore',
151
+ 'do not respect .gitignore, by default it ignores files and directories in .gitignore' do |_dont_respect_gitignore|
152
+ Core::Configuration.respect_gitignore = false
153
+ end
154
+ opts.on '--test-result TEST_RESULT',
155
+ 'result format of test, it can be actions or new_source, action is by default' do |test_result|
156
+ Core::Configuration.test_result = test_result
157
+ end
149
158
  opts.on '-v', '--version', 'show this version' do
150
159
  puts "#{VERSION} (with synvert-core #{Core::VERSION} and parser #{Parser::VERSION})"
151
160
  exit
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Synvert
4
- VERSION = '1.6.4'
4
+ VERSION = '1.8.0'
5
5
  end
data/synvert-ruby.gemspec CHANGED
@@ -20,5 +20,5 @@ 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.30.2'
23
+ spec.add_runtime_dependency 'synvert-core', '>= 1.31.0'
24
24
  end
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.6.4
4
+ version: 1.8.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: 2024-01-11 00:00:00.000000000 Z
11
+ date: 2024-02-18 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.30.2
19
+ version: 1.31.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.30.2
26
+ version: 1.31.0
27
27
  description: synvert is used to convert ruby code to better syntax.
28
28
  email:
29
29
  - flyerhzm@gmail.com