Skip to content

Commit 68f550c

Browse files
committed
Modernize code + drop support for Ruby v3.1.
1 parent 30d95cc commit 68f550c

File tree

7 files changed

+8
-15
lines changed

7 files changed

+8
-15
lines changed

.github/workflows/test-external.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- macos
2121

2222
ruby:
23-
- "3.1"
2423
- "3.2"
2524
- "3.3"
2625
- "3.4"

.github/workflows/test.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ env:
1010

1111
jobs:
1212
test:
13-
name: ${{matrix.ruby}} on ${{matrix.os}} ${{matrix.gemfile}}
13+
name: ${{matrix.ruby}} on ${{matrix.os}}
1414
runs-on: ${{matrix.os}}-latest
1515
continue-on-error: ${{matrix.experimental}}
16-
env:
17-
BUNDLE_GEMFILE: ${{matrix.gemfile}}
1816

1917
strategy:
2018
matrix:
@@ -23,17 +21,10 @@ jobs:
2321
- macos
2422

2523
ruby:
26-
- "3.1"
2724
- "3.2"
2825
- "3.3"
2926
- "3.4"
3027

31-
gemfile:
32-
- gems/rack-v1.rb
33-
- gems/rack-v2.rb
34-
- gems/rack-v30.rb
35-
- gems/rack-v31.rb
36-
3728
experimental: [false]
3829

3930
include:

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Layout/EmptyLinesAroundClassBody:
4545
Layout/EmptyLinesAroundModuleBody:
4646
Enabled: true
4747

48+
Layout/EmptyLineAfterMagicComment:
49+
Enabled: true
50+
4851
Style/FrozenStringLiteralComment:
4952
Enabled: true
5053

bake.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
def after_gem_release_version_increment(version)
1010
context["releases:update"].call(version)
1111
context["utopia:project:readme:update"].call
12-
end
12+
end

gems.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022-2024, by Samuel Williams.
4+
# Copyright, 2022-2025, by Samuel Williams.
55

66
source "https://rubygems.org"
77

lib/protocol/rack/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022-2024, by Samuel Williams.
4+
# Copyright, 2022-2025, by Samuel Williams.
55

66
module Protocol
77
module Rack

protocol-rack.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
2222

2323
spec.files = Dir.glob(["{lib}/**/*", "*.md"], File::FNM_DOTMATCH, base: __dir__)
2424

25-
spec.required_ruby_version = ">= 3.1"
25+
spec.required_ruby_version = ">= 3.2"
2626

2727
spec.add_dependency "protocol-http", "~> 0.43"
2828
spec.add_dependency "rack", ">= 1.0"

0 commit comments

Comments
 (0)