Skip to content

Commit

Permalink
Remove support for ruby-3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Jun 10, 2024
1 parent 0b60ecf commit 17b4376
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 23 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ruby-3.0, ruby-3.1, ruby-3.2, ruby-3.3]
ruby: [ruby-3.1, ruby-3.2, ruby-3.3]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand All @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ruby-3.0, ruby-3.1, ruby-3.2, ruby-3.3]
ruby: [ruby-3.1, ruby-3.2, ruby-3.3]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand All @@ -53,7 +53,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ruby-3.0, ruby-3.1, ruby-3.2, ruby-3.3]
ruby: [ruby-3.1, ruby-3.2, ruby-3.3]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand All @@ -69,7 +69,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ruby-3.0, ruby-3.1, ruby-3.2, ruby-3.3]
ruby: [ruby-3.1, ruby-3.2, ruby-3.3]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand All @@ -85,7 +85,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ruby-3.0, ruby-3.1, ruby-3.2, ruby-3.3]
ruby: [ruby-3.1, ruby-3.2, ruby-3.3]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.6.14 2024-06-10

* Remove support for ruby-3.0

# v0.6.13 2024-02-01

[#361](https://github.com/mbj/unparser/pull/361)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following constraints apply:

* No support for macruby extensions
* Only support for the [modern AST](https://github.com/whitequark/parser/#usage) format
* Only support for Ruby >= 3.0
* Only support for Ruby >= 3.1

Notable Users:

Expand Down
2 changes: 1 addition & 1 deletion scripts/devloop.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
while inotifywait lib/**/*.rb test/**/*.rb spec/**/*.rb Gemfile unparser.gemspec; do
bundle exec rspec spec/unit -fd --fail-fast --order default \
bundle exec rspec spec/unit -fd --fail-fast --order defined \
&& bundle exec ./bin/parser-round-trip-test \
&& bundle exec mutant run --zombie --since HEAD~1 --fail-fast -- 'Unparser*' \
&& bundle exec rubocop
Expand Down
8 changes: 0 additions & 8 deletions spec/unit/unparser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,6 @@ def noop
)
end

if RUBY_VERSION < '3.0.'
excludes.concat(
%w[
test/corpus/literal/since/30.rb
]
)
end

excludes.flat_map { |file| ['--ignore', file] }
end

Expand Down
3 changes: 3 additions & 0 deletions test/corpus/literal/lambda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@
}
->(a, b; c) {
}
-> {
_1 + _2
}
4 changes: 4 additions & 0 deletions test/corpus/literal/pattern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@
else
end
1 in [a]
1 => [a]
1 => [*]
1 in [*, 42, *]
1 in [*, a, *foo]
1 change: 1 addition & 0 deletions test/corpus/literal/range.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
1..2
(1...)
1...2
(..1)
4 changes: 0 additions & 4 deletions test/corpus/literal/since/27.rb

This file was deleted.

4 changes: 0 additions & 4 deletions test/corpus/literal/since/30.rb

This file was deleted.

0 comments on commit 17b4376

Please sign in to comment.