synvert 1.6.4 → 1.7.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 +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +10 -5
- data/Gemfile.lock +5 -5
- data/lib/synvert/cli.rb +6 -1
- data/lib/synvert/version.rb +1 -1
- data/synvert-ruby.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 542711c7842b10428004399e98f74dbfe5d3d1c0fa97a3db810cf3b756021de7
|
|
4
|
+
data.tar.gz: eaa40f94a7bb8ca85cd090b53782caabd540587f225b3903001ed341ee30d6b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 220a744a6f7c04990b3d50e40abf980d23cf0e184579492f13cb8aa2d25ccb4ac7a5d1ff597f79b91e848c48baf17e8f881855844773c334bbfc67459b64e0b0
|
|
7
|
+
data.tar.gz: 79c705a01ca274dab54bf026bca01b4972d05a834db88f8f52c75889c963154d4f2c2dd24f93f68221258c8cccc5adab32ee2d1f7099b01ef2b5c5c120679c71
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOGconfig
|
|
2
2
|
|
|
3
|
+
## 1.7.0 (2024-01-14)
|
|
4
|
+
|
|
5
|
+
* Add `--test-result` flag
|
|
6
|
+
* Update `synvert-core` to 1.31.0
|
|
7
|
+
|
|
3
8
|
## 1.6.4 (2024-01-11)
|
|
4
9
|
|
|
5
10
|
* Bypass docker cache
|
|
@@ -51,7 +56,7 @@
|
|
|
51
56
|
|
|
52
57
|
## 1.4.3 (2023-04-11)
|
|
53
58
|
|
|
54
|
-
*
|
|
59
|
+
* Output backtrace when `ENV['DEBUG']` is true
|
|
55
60
|
* Update `synvert-core` to 1.22.1
|
|
56
61
|
|
|
57
62
|
## 1.4.2 (2023-03-29)
|
|
@@ -98,7 +103,7 @@
|
|
|
98
103
|
|
|
99
104
|
## 1.2.1 (2022-11-13)
|
|
100
105
|
|
|
101
|
-
*
|
|
106
|
+
* Concatenation multiple git commands with &&
|
|
102
107
|
|
|
103
108
|
## 1.2.0 (2022-10-11)
|
|
104
109
|
|
|
@@ -203,7 +208,7 @@
|
|
|
203
208
|
|
|
204
209
|
## 0.10.0 (2021-02-07)
|
|
205
210
|
|
|
206
|
-
* Use new `Core::
|
|
211
|
+
* Use new `Core::Configuration`
|
|
207
212
|
* Use require instead of eval in order to preserve normal Ruby semantics
|
|
208
213
|
|
|
209
214
|
## 0.9.0
|
|
@@ -243,7 +248,7 @@
|
|
|
243
248
|
## 0.0.16
|
|
244
249
|
|
|
245
250
|
* Add -v, --version cli option.
|
|
246
|
-
*
|
|
251
|
+
* Output file and line number if there's syntax error.
|
|
247
252
|
* Add check_syntax snippet.
|
|
248
253
|
|
|
249
254
|
## 0.0.15
|
|
@@ -277,7 +282,7 @@
|
|
|
277
282
|
## 0.0.10
|
|
278
283
|
|
|
279
284
|
* Add not ast node operator
|
|
280
|
-
* Replace with
|
|
285
|
+
* Replace with multiple line code
|
|
281
286
|
* Add RSpec new syntax snippet
|
|
282
287
|
|
|
283
288
|
## 0.0.9
|
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.7.0)
|
|
5
|
+
synvert-core (>= 1.31.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
@@ -40,7 +40,7 @@ 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.
|
|
43
|
+
minitest (5.21.1)
|
|
44
44
|
nenv (0.3.0)
|
|
45
45
|
node_mutation (1.22.2)
|
|
46
46
|
node_query (1.14.1)
|
|
@@ -48,7 +48,7 @@ GEM
|
|
|
48
48
|
nenv (~> 0.1)
|
|
49
49
|
shellany (~> 0.0)
|
|
50
50
|
parallel (1.24.0)
|
|
51
|
-
parser (3.3.0.
|
|
51
|
+
parser (3.3.0.3)
|
|
52
52
|
ast (~> 2.4.1)
|
|
53
53
|
racc
|
|
54
54
|
parser_node_ext (1.2.1)
|
|
@@ -80,7 +80,7 @@ GEM
|
|
|
80
80
|
prettier_print (>= 1.2.0)
|
|
81
81
|
syntax_tree_ext (0.6.4)
|
|
82
82
|
syntax_tree
|
|
83
|
-
synvert-core (1.
|
|
83
|
+
synvert-core (1.31.0)
|
|
84
84
|
activesupport (< 7.0.0)
|
|
85
85
|
node_mutation (>= 1.21.6)
|
|
86
86
|
node_query (>= 1.13.12)
|
data/lib/synvert/cli.rb
CHANGED
|
@@ -143,9 +143,14 @@ 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',
|
|
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 '--test-result TEST_RESULT',
|
|
151
|
+
'result format of test, it can be actions or new_source, action is by default' do |test_result|
|
|
152
|
+
Core::Configuration.test_result = test_result
|
|
153
|
+
end
|
|
149
154
|
opts.on '-v', '--version', 'show this version' do
|
|
150
155
|
puts "#{VERSION} (with synvert-core #{Core::VERSION} and parser #{Parser::VERSION})"
|
|
151
156
|
exit
|
data/lib/synvert/version.rb
CHANGED
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.
|
|
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.
|
|
4
|
+
version: 1.7.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
|
+
date: 2024-01-14 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.
|
|
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.
|
|
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
|