Skip to content

Commit 2ad8fe8

Browse files
authored
Drop support for EOL Ruby 2.7 (#2204)
1 parent 800adbd commit 2ad8fe8

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Ruby
2525
uses: ruby/setup-ruby@v1
2626
with:
27-
ruby-version: "4.0"
27+
ruby-version: "3.0"
2828
bundler-cache: true
2929
- name: Run RuboCop
3030
run: bundle exec rake check:style
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
strategy:
3636
matrix:
37-
ruby-version: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0", "head"]
37+
ruby-version: ["3.0", "3.1", "3.2", "3.3", "3.4", "4.0", "head"]
3838
steps:
3939
- uses: actions/checkout@v6
4040
- name: Set up Ruby

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
inherit_from: .rubocop_todo.yml
22

33
AllCops:
4-
TargetRubyVersion: 2.7
4+
TargetRubyVersion: 3.0
55
DisplayCopNames: true
66
Exclude:
77
- "tasks/**/*"

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ group :development do
3232
# for visual tests
3333
gem 'sinatra'
3434

35-
# Ruby 3 no longer ships with a web server
36-
gem 'puma' if RUBY_VERSION >= '3'
35+
gem 'puma'
3736
gem 'shotgun'
3837

3938
gem "mutex_m" if RUBY_VERSION >= '3.4'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Rouge's documentation is available at [rouge-ruby.github.io/docs/][docs].
212212

213213
### Ruby
214214

215-
Rouge is compatible with all versions of Ruby from 2.0.0 onwards. It has no
215+
Rouge is compatible with all versions of Ruby from 3.0 onwards. It has no
216216
external dependencies.
217217

218218
### Encodings

rouge.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
1616
s.files = Dir['Gemfile', 'LICENSE', 'rouge.gemspec', 'lib/**/*.rb', 'lib/**/*.yml', 'bin/rougify', 'lib/rouge/demos/*']
1717
s.executables = %w(rougify)
1818
s.licenses = ['MIT', 'BSD-2-Clause']
19-
s.required_ruby_version = '>= 2.7'
19+
s.required_ruby_version = '>= 3.0'
2020
s.metadata = {
2121
"bug_tracker_uri" => "https://github.com/rouge-ruby/rouge/issues",
2222
"changelog_uri" => "https://github.com/rouge-ruby/rouge/blob/master/CHANGELOG.md",

0 commit comments

Comments
 (0)