Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
8bf61b6
Merge pull request #64 from xinminlabs/awesomecode-lint-ruby-style-en…
flyerhzm Feb 9, 2021
89118cc
Auto corrected by following Lint Ruby MagicComment
Feb 9, 2021
b15eaf1
Merge pull request #70 from xinminlabs/awesomecode-lint-ruby-magiccom…
flyerhzm Feb 9, 2021
49f72df
Auto corrected by following Format Ruby Code
Feb 9, 2021
c3503f8
Auto corrected by following Lint Ruby Style/ExpandPathArguments
Feb 9, 2021
827b920
Merge pull request #75 from xinminlabs/awesomecode-format-ruby-code-4…
flyerhzm Feb 9, 2021
c0e50b6
Auto corrected by following Lint Ruby UnusedArgument
Feb 9, 2021
e75c721
Auto corrected by following Lint Ruby Performance/RegexpMatch
Feb 9, 2021
490d9b9
Merge pull request #80 from xinminlabs/awesomecode-lint-ruby-unusedar…
flyerhzm Feb 9, 2021
d423ff5
Merge pull request #78 from xinminlabs/awesomecode-lint-ruby-style-ex…
flyerhzm Feb 9, 2021
772d60d
Merge pull request #81 from xinminlabs/awesomecode-lint-ruby-performa…
flyerhzm Feb 9, 2021
61c94c4
Bumping version to 0.10.1
flyerhzm Feb 9, 2021
9ce4411
update synvert-core to 0.20.0
flyerhzm Feb 15, 2021
5c8b043
fetch_core_version is a class method in Synvert::Snippet
flyerhzm Feb 15, 2021
6f10e3c
add --list-all option
flyerhzm Feb 15, 2021
95bdabc
Bumping version to 0.11.0
flyerhzm Feb 15, 2021
8b1f243
use Synvert::VERSION instead of Synvert::Core::VERSION
flyerhzm Feb 20, 2021
c2d5beb
Bumping synvert-core to 0.20.1
flyerhzm Feb 20, 2021
6eb59ea
Bumping version to 0.11.1
flyerhzm Feb 20, 2021
85c73d5
fix test failure
flyerhzm Feb 21, 2021
f4c88d0
display synvert-core and parser version
flyerhzm Mar 1, 2021
5e3b51c
generate a new snippet
flyerhzm Mar 1, 2021
3e4cae7
Bumping version to 0.12.0
flyerhzm Mar 1, 2021
17c8a9c
Auto corrected by following Format Ruby Code
Mar 1, 2021
14b5b66
Merge pull request #82 from xinminlabs/awesomecode-format-ruby-code-4…
flyerhzm Mar 1, 2021
133b23e
display snippet source code for showing a snippet
flyerhzm Mar 1, 2021
5d99f36
Bumping version to 0.12.1
flyerhzm Mar 1, 2021
36f0813
use ENV['SYNVERT_SNIPPETS_HOME'] to change default snippets home
flyerhzm Mar 2, 2021
966dfd7
Bumping version to 0.13.0
flyerhzm Mar 2, 2021
b9397a3
fix generated snippet
flyerhzm Mar 5, 2021
c7b5a45
add option --format
flyerhzm Mar 13, 2021
d1933cd
run one snippet once
flyerhzm Mar 13, 2021
f54c0c4
Bumping version to 0.14.0
flyerhzm Mar 13, 2021
33b3d47
minor refactor
flyerhzm Mar 13, 2021
10d2d1d
Auto corrected by following Format Ruby Code
Mar 13, 2021
f58bd0f
Merge pull request #84 from xinminlabs/awesomecode-format-ruby-code-4…
flyerhzm Mar 13, 2021
b997d71
set reduce default value
flyerhzm Mar 13, 2021
f15da15
Auto corrected by following Lint Ruby Performance/Sum
Mar 13, 2021
0b771cd
Bumping version to 0.14.1
flyerhzm Mar 13, 2021
a775f04
Merge pull request #86 from xinminlabs/awesomecode-lint-ruby-performa…
flyerhzm Mar 13, 2021
23df927
introduce docker usage
flyerhzm Mar 21, 2021
69be6bb
update synvert-core when syncing snippets
flyerhzm Mar 23, 2021
be5c12a
update synvert-core to 0.25.0
flyerhzm Mar 23, 2021
370aa8f
update README
flyerhzm Mar 23, 2021
769e304
Bumping version to 0.15.0
flyerhzm Mar 23, 2021
d749036
update synvert-core to 0.25.1
flyerhzm Mar 24, 2021
6ebec27
add ruby_version and gem_spec to json output
flyerhzm Mar 24, 2021
57ba2bb
Bumping version to 0.16.0
flyerhzm Mar 24, 2021
419887b
update README
flyerhzm Mar 28, 2021
63cf0b3
run git checkout before git pull
flyerhzm Apr 19, 2021
c4c92df
Bumping version to 0.17.0
flyerhzm Apr 19, 2021
4f8165f
execute a snippet
flyerhzm Jul 14, 2021
685ce62
Bumping version to 0.18.0
flyerhzm Jul 14, 2021
b670248
Auto corrected by following Format Ruby Code
Jul 14, 2021
4e09166
Merge pull request #87 from xinminlabs/awesomecode-format-ruby-code-5…
flyerhzm Jul 14, 2021
071d6d8
travis to github action
flyerhzm Jul 19, 2021
d8ea3a4
affected_files are Set
flyerhzm Jul 23, 2021
78621fe
Bumping version to 0.18.1
flyerhzm Jul 23, 2021
3b8b049
update synvert-core to 0.45.2
flyerhzm Jul 24, 2021
0bc547e
http to https
flyerhzm Jul 31, 2021
4aff40a
add logo to README
flyerhzm Jul 31, 2021
b9369a9
update synvert-core to 0.49.1
flyerhzm Aug 4, 2021
d62db8e
require fileutils
flyerhzm Aug 12, 2021
62d4857
Bumping version to 0.18.2
flyerhzm Aug 12, 2021
0289717
update synvert-core to 0.51.0
flyerhzm Aug 12, 2021
dfb3f2d
deprecate synvert, use synvert-ruby instead
flyerhzm Aug 22, 2021
814e131
update synvert-snippets url
flyerhzm Aug 22, 2021
d7dc8db
update synvert-core to 0.53.0
flyerhzm Aug 22, 2021
9d46354
Bumping version to 0.18.3
flyerhzm Aug 22, 2021
d5c09bc
deprecate synvert, use synvert-ruby instead
flyerhzm Aug 22, 2021
e74be64
Bumping version to 0.18.4
flyerhzm Aug 22, 2021
75cc643
update README
flyerhzm Aug 24, 2021
835c29c
rename synvert to synvert-ruby
flyerhzm Aug 24, 2021
11f7279
no need to load rewriters when showing a snippet
flyerhzm Sep 11, 2021
65fd31b
update synvert-core to 0.55.0
flyerhzm Sep 11, 2021
13bd057
add --show-run-process option
flyerhzm Sep 11, 2021
bbba43e
Bumping version to 0.19.0
flyerhzm Sep 11, 2021
8d38a24
make URI.open work in ruby 2.4
flyerhzm Oct 22, 2021
6d23af9
test ruby 2.4 on github actions
flyerhzm Oct 22, 2021
8e21a75
update synvert-core to 0.58.2
flyerhzm Oct 22, 2021
66c2de8
Bumping version to 0.19.1
flyerhzm Oct 22, 2021
1597304
list sub_snippets group and name
flyerhzm Dec 15, 2021
9d63218
update synvert-core to 0.61.1
flyerhzm Dec 15, 2021
fd59fc8
Bumping version to 0.19.2
flyerhzm Dec 15, 2021
f0635cb
update synvert-core to 0.61.2
flyerhzm Dec 21, 2021
2b1be8f
update README
flyerhzm Apr 5, 2022
389d0ce
Auto corrected by following Format Ruby Code
Apr 11, 2022
8c6f76f
Merge pull request #91 from xinminlabs/awesomecode-format-ruby-code-5…
flyerhzm Apr 11, 2022
7eb9dac
add AwesomeCode badge
flyerhzm Apr 11, 2022
3b9373b
require json
flyerhzm Jul 18, 2022
da22250
Bumping version to 0.19.3
flyerhzm Jul 18, 2022
8e8df04
drop ruby 2.4, 2.5 and support ruby 3.1
flyerhzm Jul 18, 2022
4364b3e
rename load_rewriters to read_rewriters
flyerhzm Aug 20, 2022
88bc895
run a snippet from remote url or local file path
flyerhzm Aug 20, 2022
5b86921
Bumping version to 0.20.0
flyerhzm Aug 20, 2022
e8ad959
update logo
flyerhzm Sep 10, 2022
764f2b0
test a snippet
flyerhzm Sep 16, 2022
dc017ef
return both group and name
flyerhzm Sep 16, 2022
1c9d609
require single rewriter instead of loading all rewriters
flyerhzm Sep 16, 2022
7cb0c4f
execute command can be either run or test
flyerhzm Sep 16, 2022
b3df884
remove Gemfile.lock from .gitignore
flyerhzm Sep 17, 2022
6e352a5
skip_paths and only_paths
flyerhzm Sep 17, 2022
4459d61
update README
flyerhzm Sep 17, 2022
e9ee46c
update synvert-core to 1.8.0
flyerhzm Sep 17, 2022
6ac8b7b
Bumping version to 1.0.0
flyerhzm Sep 17, 2022
cc4c96c
execute with EXECUTE_COMMAND
flyerhzm Sep 23, 2022
13e94dc
Bumping version to 1.0.1
flyerhzm Sep 23, 2022
e053907
update README
flyerhzm Oct 1, 2022
7c436f6
master to main
flyerhzm Oct 1, 2022
f186b2a
publish README to gh-pages
flyerhzm Oct 1, 2022
623434f
update README
flyerhzm Oct 1, 2022
4fbb8f7
update synvert-core to 1.9.2
flyerhzm Oct 3, 2022
14db26e
read_writers before process and test a snippt to support sub_snippets
flyerhzm Oct 3, 2022
5507bf9
get test results from sub_snippets
flyerhzm Oct 3, 2022
d3a41e8
Bumping version to 1.1.0
flyerhzm Oct 3, 2022
ef3851c
fix get_last_snippet_name, eval snippet to get rewriter
flyerhzm Oct 5, 2022
cf82196
Bumping version to 1.1.1
flyerhzm Oct 5, 2022
0aa39d0
convert github url to github raw url
flyerhzm Oct 6, 2022
4bf34b4
Bumping versio to 1.1.2
flyerhzm Oct 6, 2022
871a356
update synvert-core to 1.10.1
flyerhzm Oct 9, 2022
2d0c469
no need to read rewriters before run or test a snippet
flyerhzm Oct 9, 2022
7db7104
reuse Synvert::Core::Utils.eval_snippet
flyerhzm Oct 9, 2022
d797f6c
rewriter.test already returns all results
flyerhzm Oct 9, 2022
c67a428
Bumping version to 1.1.3
flyerhzm Oct 9, 2022
eb8f94b
Synvert::Core::RewriterNotFound is already removed
flyerhzm Oct 11, 2022
b81c517
update synvert-core to 1.11.0
flyerhzm Oct 11, 2022
e906c1c
add --number-of-workers option
flyerhzm Oct 11, 2022
dc4d5be
Bumping version to 1.2.0
flyerhzm Oct 11, 2022
41510fe
update synvert-core to 1.12.0
flyerhzm Nov 13, 2022
cb319e8
concat multiple git commands with &&
flyerhzm Nov 13, 2022
200212f
Dir.chdir instead of FileUtils.cd
flyerhzm Nov 13, 2022
36d3b09
Bumping version to 1.2.1
flyerhzm Nov 13, 2022
51dd392
fix default_snippets_home in windows
flyerhzm Nov 13, 2022
218e7f3
Bumping version to 1.2.2
flyerhzm Nov 13, 2022
95d911d
update README
flyerhzm Dec 1, 2022
62c91a2
do not install synvert-core after syncing snippet
flyerhzm Dec 1, 2022
f028edd
update synvert-core to 1.16.0
flyerhzm Dec 29, 2022
2d9798a
Bumping version to 1.2.3
flyerhzm Dec 29, 2022
632651f
update synvert-core to 1.17.0
flyerhzm Jan 21, 2023
090735e
Bumping version to 1.2.4
flyerhzm Jan 21, 2023
ad22743
remove rewriter.todo
flyerhzm Feb 1, 2023
d8ad5a2
update synvert-core to 1.18.0
flyerhzm Feb 1, 2023
2af5030
Bumping version to 1.2.5
flyerhzm Feb 1, 2023
c47fb71
set PLATFORMS as ruby in Gemfile.lock
flyerhzm Feb 1, 2023
b573ec8
output error message
flyerhzm Feb 2, 2023
b3ae074
exit 1 if error raised
flyerhzm Feb 4, 2023
45ab715
Bumping version to 1.2.6
flyerhzm Feb 4, 2023
e2f33f8
update synvert-core to 1.20.0
flyerhzm Feb 8, 2023
0092141
add --double-quote flag
flyerhzm Feb 8, 2023
b038b61
update README
flyerhzm Feb 8, 2023
29c48c4
Bumping version to 1.3.0
flyerhzm Feb 8, 2023
7adb06e
update synvert-core to 1.21.0
flyerhzm Feb 8, 2023
5d4e809
add --tab-width flag
flyerhzm Feb 8, 2023
545fc32
update README
flyerhzm Feb 8, 2023
46b0fe1
Bumping version to 1.4.0
flyerhzm Feb 8, 2023
df6182d
update synvert-core to 1.21.1
flyerhzm Feb 10, 2023
26ef9f6
make sure tab_width is an Integer
flyerhzm Feb 10, 2023
2b8b1df
Bumping version to 1.4.1
flyerhzm Feb 10, 2023
74666fe
Bump activesupport from 6.1.7.2 to 6.1.7.3
dependabot[bot] Mar 17, 2023
5b9986e
Auto corrected by following Format Ruby Code
Mar 17, 2023
9ef67a7
Auto corrected by following Lint Ruby UnusedArgument
Mar 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test & deploy documentation

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake

deploy:
runs-on: ubuntu-latest
needs: test
name: Update gh-pages to docs
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- name: Install required npm dependencies
run: npm install -g markdown-to-html
- name: Create docs
run: mkdir docs
- name: Generate docs
run: github-markdown README.md -s https://cdn.simplecss.org/simple-v1.css > docs/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
Expand Down
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

142 changes: 142 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,147 @@
# CHANGELOG

## 1.4.1 (2023-02-10)

* Make sure `tab_width` is an Integer
* Update `synvert-core` to 1.21.1

## 1.4.0 (2023-02-08)

* Add `--tab-width` flag
* Update `synvert-core` to 1.21.0

## 1.3.0 (2023-02-08)

* Add `--double-quote` flag
* Update `synvert-core` to 1.20.0

## 1.2.6 (2023-02-02)

* Output error message

## 1.2.5 (2023-02-01)

* Remove `rewriter.todo`
* Update ``synvert-core`` to 1.18.0

## 1.2.4 (2023-01-21)

* Update ``synvert-core`` to 1.17.0

## 1.2.3 (2022-12-29)

* Do not install synvert-core after syncing snippet
* Update `synvert-core` to 1.16.0

## 1.2.2 (2022-11-13)

* Fix `default_snippets_home` in windows

## 1.2.1 (2022-11-13)

* Concat multiple git commands with &&

## 1.2.0 (2022-10-11)

* Add `--number-of-workers` option

## 1.1.3 (2022-10-09)

* No need to read rewriters before run or test a snippet
* Reuse `Synvert::Core::Utils.eval_snippet`
* `rewriter.test` already returns all results

## 1.1.2 (2022-10-06)

* Convert github url to github raw url

## 1.1.1 (2022-10-05)

* Fix get_last_snippet_name, eval snippet to get rewriter

## 1.1.0 (2022-10-03))

* Fix sub snippet not found
* Support sub snippets in `test`

## 1.0.1 (2022-09-23)

* Execute with EXECUTE_COMMAND

## 1.0.0 (2022-09-17)

* Test a snippet
* Require single rewriter instead of loading all rewriters
* Execute command can be either run or test
* Add `skip_path` and `only_paths` options

## 0.20.0 (2022-08-20)

* Rename `load_rewriters` to `read_rewriters`
* Run a snippet from remote url or local file path

## 0.19.3 (2022-07-18)

* Require json
* Update `synvert-core` to 1.5.0

## 0.19.2 (2021-12-15)

* List sub_snippets group and name

## 0.19.1 (2021-10-23)

* Make URI.open work in ruby 2.4

## 0.19.0 (2021-09-10)

* Add `--show-run-process` option
* Deprecate `synvert`, use `synvert-ruby` instead
* Update `synvert-snippets` url
* Fix `affected_files` is Set

## 0.18.0 (2021-07-14)

* Execute a snippet

## 0.17.0 (2021-04-19)

* Run `git checkout .` before `git pull --rebase`

## 0.16.0 (2021-03-24)

* Add `ruby_version` and `gem_spec` to json output

## 0.15.0 (2021-03-23)

* Fix reduce on empty array
* Update synvert-core when syncing snippets

## 0.14.0 (2021-03-13)

* Add CLI option `--format`
* Run one snippet once

## 0.13.0 (2021-03-02)

* Use `ENV['SYNVERT_SNIPPETS_HOME']` to change default snippets home
* Display snippet source code for showing a snippet

## 0.12.0 (2021-03-01)

* Display `synvert-core` and `parser` version
* Generate a new snippet

## 0.11.1 (2021-02-20)

* Use `Synvert::VERSION` instead of `Synvert::Core::VERSION`

## 0.11.0 (2021-02-15)

* Add `--list-all` option
* Add post install message
* Fix `Synvert::Snippet.fetch_core_version`

## 0.10.0 (2021-02-07)

* Use new `Core::Confiruation`
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Specify your gem's dependencies in synvert.gemspec
Expand Down
99 changes: 99 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
PATH
remote: .
specs:
synvert (1.4.1)
synvert-core (>= 1.21.1)

GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.7.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
ast (2.4.2)
concurrent-ruby (1.2.2)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
term-ansicolor (~> 1.3)
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
crack (0.4.5)
rexml
diff-lcs (1.4.4)
docile (1.4.0)
erubis (2.7.0)
hashdiff (1.0.1)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
json (2.5.1)
minitest (5.18.0)
node_mutation (1.9.1)
erubis
node_query (1.12.0)
parallel (1.22.1)
parser (3.2.1.0)
ast (~> 2.4.1)
parser_node_ext (0.10.0)
parser
public_suffix (4.0.6)
rake (13.0.6)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
sync (0.5.0)
synvert-core (1.21.1)
activesupport (< 7.0.0)
erubis
node_mutation (>= 1.9.0)
node_query (>= 1.12.0)
parallel
parser
parser_node_ext (>= 0.9.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
thor (1.1.0)
tins (1.29.1)
sync
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
webmock (3.14.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zeitwerk (2.6.7)

PLATFORMS
ruby

DEPENDENCIES
bundler
coveralls
rake
rspec
synvert!
webmock

BUNDLED WITH
2.3.7
Loading