synvert 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +1 -1
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +16 -14
- data/lib/synvert/cli.rb +6 -3
- data/lib/synvert/command.rb +1 -1
- data/lib/synvert/version.rb +1 -1
- data/synvert-ruby.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 844839d591effeed2d6cbeef69febfaff95c309433169d5b723d1b2ebb09c8d8
|
4
|
+
data.tar.gz: 754ce33af6aeae4bde2d5d3915e1d55a7b1cd239d3ea4bd3882985d64ffb52e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ba4fdb309bd1841ca750bdb094aad23243253296db56586bcf096efe2e3738b463ce73261492a2703c4d952cd02f8c8adc93d349f7a25ff8171768a9aeb259
|
7
|
+
data.tar.gz: 6f278c1d8bc6c403fad992ee44e8f12af4f062c65b45a530e8f1598acead6960dd365293c9ecb7d8d1f12b01db58e1685cc60dbd0c61fdbd96e088edf5f618be
|
data/.github/workflows/main.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
synvert (1.
|
5
|
-
synvert-core (>= 1.
|
4
|
+
synvert (1.6.0)
|
5
|
+
synvert-core (>= 1.30.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.1.7.
|
10
|
+
activesupport (6.1.7.6)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
@@ -33,29 +33,31 @@ GEM
|
|
33
33
|
guard (~> 2.1)
|
34
34
|
guard-compat (~> 1.1)
|
35
35
|
rspec (>= 2.99.0, < 4.0)
|
36
|
-
i18n (1.
|
36
|
+
i18n (1.14.1)
|
37
37
|
concurrent-ruby (~> 1.0)
|
38
38
|
listen (3.8.0)
|
39
39
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
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.20.0)
|
44
44
|
nenv (0.3.0)
|
45
|
-
node_mutation (1.
|
46
|
-
node_query (1.
|
45
|
+
node_mutation (1.22.2)
|
46
|
+
node_query (1.14.1)
|
47
47
|
notiffany (0.1.3)
|
48
48
|
nenv (~> 0.1)
|
49
49
|
shellany (~> 0.0)
|
50
|
-
parallel (1.
|
51
|
-
parser (3.
|
50
|
+
parallel (1.24.0)
|
51
|
+
parser (3.3.0.2)
|
52
52
|
ast (~> 2.4.1)
|
53
|
+
racc
|
53
54
|
parser_node_ext (1.2.1)
|
54
55
|
parser
|
55
56
|
prettier_print (1.2.1)
|
56
57
|
pry (0.14.2)
|
57
58
|
coderay (~> 1.1)
|
58
59
|
method_source (~> 1.0)
|
60
|
+
racc (1.7.3)
|
59
61
|
rake (13.0.6)
|
60
62
|
rb-fsevent (0.11.2)
|
61
63
|
rb-inotify (0.10.1)
|
@@ -74,13 +76,13 @@ GEM
|
|
74
76
|
rspec-support (~> 3.10.0)
|
75
77
|
rspec-support (3.10.2)
|
76
78
|
shellany (0.0.1)
|
77
|
-
syntax_tree (6.
|
79
|
+
syntax_tree (6.2.0)
|
78
80
|
prettier_print (>= 1.2.0)
|
79
81
|
syntax_tree_ext (0.6.4)
|
80
82
|
syntax_tree
|
81
|
-
synvert-core (1.
|
83
|
+
synvert-core (1.30.2)
|
82
84
|
activesupport (< 7.0.0)
|
83
|
-
node_mutation (>= 1.21.
|
85
|
+
node_mutation (>= 1.21.6)
|
84
86
|
node_query (>= 1.13.12)
|
85
87
|
parallel
|
86
88
|
parser
|
@@ -90,7 +92,7 @@ GEM
|
|
90
92
|
thor (1.3.0)
|
91
93
|
tzinfo (2.0.6)
|
92
94
|
concurrent-ruby (~> 1.0)
|
93
|
-
zeitwerk (2.6.
|
95
|
+
zeitwerk (2.6.12)
|
94
96
|
|
95
97
|
PLATFORMS
|
96
98
|
ruby
|
@@ -103,4 +105,4 @@ DEPENDENCIES
|
|
103
105
|
synvert!
|
104
106
|
|
105
107
|
BUNDLED WITH
|
106
|
-
2.
|
108
|
+
2.3.7
|
data/lib/synvert/cli.rb
CHANGED
@@ -40,14 +40,14 @@ module Synvert
|
|
40
40
|
when 'sync'
|
41
41
|
Command.sync_snippets
|
42
42
|
when 'generate'
|
43
|
-
|
43
|
+
Command.generate_snippet(@options[:snippet_name])
|
44
44
|
when 'execute'
|
45
45
|
Command.read_helpers
|
46
46
|
rewriter = eval_snippet_name_by_input(STDIN.read)
|
47
47
|
if @options[:execute_command] == 'test'
|
48
|
-
|
48
|
+
Command.test_snippet(rewriter)
|
49
49
|
else
|
50
|
-
|
50
|
+
Command.run_snippet(rewriter, @options[:format])
|
51
51
|
end
|
52
52
|
when 'test'
|
53
53
|
Command.read_helpers
|
@@ -143,6 +143,9 @@ 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|
|
147
|
+
Core::Configuration.strict = false
|
148
|
+
end
|
146
149
|
opts.on '-v', '--version', 'show this version' do
|
147
150
|
puts "#{VERSION} (with synvert-core #{Core::VERSION} and parser #{Parser::VERSION})"
|
148
151
|
exit
|
data/lib/synvert/command.rb
CHANGED
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.30.2'
|
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.6.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:
|
11
|
+
date: 2024-01-09 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.30.2
|
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.30.2
|
27
27
|
description: synvert is used to convert ruby code to better syntax.
|
28
28
|
email:
|
29
29
|
- flyerhzm@gmail.com
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.5.3
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: synvert = syntax + convert.
|