Skip to content

Commit 5abc74b

Browse files
authored
DEV: Require ruby >= 2.5 (#46)
And update the CI workflow
1 parent 357a8c9 commit 5abc74b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
87
- main
98

109
jobs:
1110
build:
1211
runs-on: ubuntu-latest
1312
name: "Ruby ${{ matrix.ruby }} / Failure allowed: ${{ matrix.experimental }}"
1413
continue-on-error: ${{ matrix.experimental }}
14+
timeout-minutes: 5
15+
1516
strategy:
1617
fail-fast: false
1718
matrix:
18-
ruby: ["2.4", "2.5", "2.6", "2.7", "3.0"]
19+
ruby: ["2.5", "2.6", "2.7", "3.0", "3.1"]
1920
experimental: [false]
2021
include:
2122
- ruby: "ruby-head"
@@ -24,9 +25,9 @@ jobs:
2425
experimental: true
2526
- ruby: "jruby-head"
2627
experimental: true
27-
- ruby: "jruby-9.1.17.0"
28+
- ruby: "jruby-9.2.20.1"
2829
experimental: true
29-
- ruby: "jruby-9.2.13.0"
30+
- ruby: "jruby-9.3.2.0"
3031
experimental: true
3132
steps:
3233
- uses: actions/checkout@v2

mini_mime.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.bindir = "exe"
2222
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2323
spec.require_paths = ["lib"]
24+
spec.required_ruby_version = ">= 2.5.0"
2425

2526
spec.add_development_dependency "bundler"
2627
spec.add_development_dependency "rake"

0 commit comments

Comments
 (0)