Skip to content

Commit dd58f1a

Browse files
committed
Remove support for ruby-3.2
1 parent db0023f commit dd58f1a

File tree

6 files changed

+9
-40
lines changed

6 files changed

+9
-40
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
ruby: [ruby-3.2, ruby-3.3, ruby-3.4]
22+
ruby: [ruby-3.3, ruby-3.4]
2323
os: [ubuntu-latest]
2424
steps:
2525
- uses: actions/checkout@v4
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
ruby: [ruby-3.2, ruby-3.3, ruby-3.4]
38+
ruby: [ruby-3.3, ruby-3.4]
3939
os: [ubuntu-latest]
4040
steps:
4141
- uses: actions/checkout@v4
@@ -53,7 +53,7 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
ruby: [ruby-3.2, ruby-3.3, ruby-3.4]
56+
ruby: [ruby-3.3, ruby-3.4]
5757
os: [ubuntu-latest]
5858
steps:
5959
- uses: actions/checkout@v4
@@ -69,7 +69,7 @@ jobs:
6969
strategy:
7070
fail-fast: false
7171
matrix:
72-
ruby: [ruby-3.2, ruby-3.3, ruby-3.4]
72+
ruby: [ruby-3.3, ruby-3.4]
7373
os: [ubuntu-latest]
7474
steps:
7575
- uses: actions/checkout@v4
@@ -85,7 +85,7 @@ jobs:
8585
strategy:
8686
fail-fast: false
8787
matrix:
88-
ruby: [ruby-3.2, ruby-3.3, ruby-3.4]
88+
ruby: [ruby-3.3, ruby-3.4]
8989
os: [ubuntu-latest]
9090
steps:
9191
- uses: actions/checkout@v4

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AllCops:
55
- '**/*.rake'
66
- 'Gemfile'
77
- 'Gemfile.triage'
8-
TargetRubyVersion: 3.1
8+
TargetRubyVersion: 3.3
99
Exclude:
1010
- tmp/**/*
1111
- vendor/**/*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following constraints apply:
1010

1111
* No support for macruby extensions
1212
* Only support for the [modern AST](https://github.com/whitequark/parser/#usage) format
13-
* Only support for Ruby >= 3.2
13+
* Only support for Ruby >= 3.3
1414

1515
Notable Users:
1616

lib/unparser/emitter/primitive.rb

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,8 @@ class Symbol < self
1313

1414
private
1515

16-
# mutant:disable
1716
def dispatch
18-
if inspect_breaks_parsing?
19-
write(":#{value.name.inspect}")
20-
else
21-
write(value.inspect)
22-
end
23-
end
24-
25-
# mutant:disable
26-
def inspect_breaks_parsing?
27-
return false unless RUBY_VERSION < '3.2.'
28-
29-
Unparser.parse(value.inspect)
30-
false
31-
rescue Parser::SyntaxError
32-
true
17+
write(value.inspect)
3318
end
3419
end # Symbol
3520

spec/unit/unparser_spec.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -467,22 +467,6 @@ def foo(bar)
467467
)
468468
end
469469

470-
if RUBY_VERSION < '3.2.'
471-
excludes.concat(
472-
%w[
473-
test/corpus/literal/since/32.rb
474-
]
475-
)
476-
end
477-
478-
if RUBY_VERSION < '3.1.'
479-
excludes.concat(
480-
%w[
481-
test/corpus/literal/since/31.rb
482-
]
483-
)
484-
end
485-
486470
excludes.flat_map { |file| ['--ignore', file] }
487471
end
488472

unparser.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
2323
gem.extra_rdoc_files = %w[README.md]
2424
gem.executables = %w[unparser]
2525

26-
gem.required_ruby_version = '>= 3.1'
26+
gem.required_ruby_version = '>= 3.3'
2727

2828
gem.add_dependency('diff-lcs', '~> 1.6')
2929
gem.add_dependency('parser', '>= 3.3.0')

0 commit comments

Comments
 (0)