synvert 1.5.1 → 1.6.1
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 -2
- data/.github/workflows/publish_docker_image.yml +31 -0
- data/CHANGELOG.md +10 -0
- data/Dockerfile +5 -0
- data/Gemfile.lock +16 -14
- data/lib/synvert/cli.rb +3 -0
- data/lib/synvert/version.rb +1 -1
- data/synvert-ruby.gemspec +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '013369fe45b0c15dc1298e1e30b2ff5d590db39d12466f85f7033d2a5174b838'
|
4
|
+
data.tar.gz: bef9660a67e33f43e0bd9478a537d823b811bac55c1a3b435e18cb00fdf7a244
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0660bfead366036630b23cab7120e65378ffc8aaf1111b96ec5e9661c372bd2f20b2bb278bf06dc1fd030240f3f24d6c285c716f4c2592aa952acaa2c9eb794a
|
7
|
+
data.tar.gz: 9c49f28e48fe0edfc27898a7c39e24fc647a19d0b9af77b8a535d2cc69507b54fb7bfa39189b5d2e0e31a098f9af0681ca0dca4da0cff665b0f0eff1fc73b3a0
|
data/.github/workflows/main.yml
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
name: Publish Docker Image
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- '*'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build-and-publish:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- name: Check out the repository
|
13
|
+
uses: actions/checkout@v3
|
14
|
+
|
15
|
+
- name: Extract tag name
|
16
|
+
id: get_tag
|
17
|
+
run: echo "::set-output name=TAG_NAME::${GITHUB_REF#refs/tags/v}"
|
18
|
+
|
19
|
+
- name: Log in to Docker Hub
|
20
|
+
uses: docker/login-action@v2
|
21
|
+
with:
|
22
|
+
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
23
|
+
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
24
|
+
|
25
|
+
- name: Build and push Docker image
|
26
|
+
uses: docker/build-push-action@v3
|
27
|
+
with:
|
28
|
+
context: .
|
29
|
+
push: true
|
30
|
+
tags: xinminlabs/synvert-ruby:${{ steps.get_tag.outputs.TAG_NAME }}
|
31
|
+
|
data/CHANGELOG.md
CHANGED
data/Dockerfile
ADDED
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.1)
|
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
@@ -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/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.1
|
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-10 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
|
@@ -33,9 +33,11 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
35
|
- ".github/workflows/main.yml"
|
36
|
+
- ".github/workflows/publish_docker_image.yml"
|
36
37
|
- ".gitignore"
|
37
38
|
- ".rspec"
|
38
39
|
- CHANGELOG.md
|
40
|
+
- Dockerfile
|
39
41
|
- Gemfile
|
40
42
|
- Gemfile.lock
|
41
43
|
- Guardfile
|
@@ -69,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
71
|
- !ruby/object:Gem::Version
|
70
72
|
version: '0'
|
71
73
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
74
|
+
rubygems_version: 3.5.3
|
73
75
|
signing_key:
|
74
76
|
specification_version: 4
|
75
77
|
summary: synvert = syntax + convert.
|