synvert 1.6.3 → 1.7.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: 913754d1c4a07f542dfa51107e380d030e0022f1b90b4b566bee11f304b21d03
4
- data.tar.gz: f4aebfa3680b431f634b007b30646814ca73b55e6fc45a84ef7e929caabfdfa9
3
+ metadata.gz: 542711c7842b10428004399e98f74dbfe5d3d1c0fa97a3db810cf3b756021de7
4
+ data.tar.gz: eaa40f94a7bb8ca85cd090b53782caabd540587f225b3903001ed341ee30d6b0
5
5
  SHA512:
6
- metadata.gz: ba1cbf98859757ae3581b7ad5aa25a11d7aae97ecc573ac9f9be96a16c947e140172da1f294a781a6d882306bed10fde667f02a94959b85052778d9183efe625
7
- data.tar.gz: 2b0276214cdedbc1d2230c3e86bccbab06e66c114b4defed4eea58258cdb8fe09edc7480684fac754c1d2b7ac890bc2f0743122e6e58c6e8ccdad3700b61e918
6
+ metadata.gz: 220a744a6f7c04990b3d50e40abf980d23cf0e184579492f13cb8aa2d25ccb4ac7a5d1ff597f79b91e848c48baf17e8f881855844773c334bbfc67459b64e0b0
7
+ data.tar.gz: 79c705a01ca274dab54bf026bca01b4972d05a834db88f8f52c75889c963154d4f2c2dd24f93f68221258c8cccc5adab32ee2d1f7099b01ef2b5c5c120679c71
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,5 +1,14 @@
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
+
8
+ ## 1.6.4 (2024-01-11)
9
+
10
+ * Bypass docker cache
11
+
3
12
  ## 1.6.3 (2024-01-11)
4
13
 
5
14
  * Fix typo
@@ -47,7 +56,7 @@
47
56
 
48
57
  ## 1.4.3 (2023-04-11)
49
58
 
50
- * Uutput backtrace when `ENV['DEBUG']` is true
59
+ * Output backtrace when `ENV['DEBUG']` is true
51
60
  * Update `synvert-core` to 1.22.1
52
61
 
53
62
  ## 1.4.2 (2023-03-29)
@@ -94,7 +103,7 @@
94
103
 
95
104
  ## 1.2.1 (2022-11-13)
96
105
 
97
- * Concat multiple git commands with &&
106
+ * Concatenation multiple git commands with &&
98
107
 
99
108
  ## 1.2.0 (2022-10-11)
100
109
 
@@ -199,7 +208,7 @@
199
208
 
200
209
  ## 0.10.0 (2021-02-07)
201
210
 
202
- * Use new `Core::Confiruation`
211
+ * Use new `Core::Configuration`
203
212
  * Use require instead of eval in order to preserve normal Ruby semantics
204
213
 
205
214
  ## 0.9.0
@@ -239,7 +248,7 @@
239
248
  ## 0.0.16
240
249
 
241
250
  * Add -v, --version cli option.
242
- * Ouput file and line number if there's syntax error.
251
+ * Output file and line number if there's syntax error.
243
252
  * Add check_syntax snippet.
244
253
 
245
254
  ## 0.0.15
@@ -273,7 +282,7 @@
273
282
  ## 0.0.10
274
283
 
275
284
  * Add not ast node operator
276
- * Replace with multipe line code
285
+ * Replace with multiple line code
277
286
  * Add RSpec new syntax snippet
278
287
 
279
288
  ## 0.0.9
data/Dockerfile CHANGED
@@ -2,6 +2,8 @@ FROM ruby:3.3-alpine
2
2
 
3
3
  RUN apk update && apk add --no-cache git
4
4
 
5
+ ADD 'https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h' skipcache
6
+
5
7
  RUN gem install synvert
6
8
 
7
9
  ENTRYPOINT ["synvert-ruby"]
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert (1.6.3)
5
- synvert-core (>= 1.30.2)
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.20.0)
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.2)
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.30.2)
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', '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 '--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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Synvert
4
- VERSION = '1.6.3'
4
+ VERSION = '1.7.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.3
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-10 00:00:00.000000000 Z
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.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