Skip to content

Commit 423035f

Browse files
authored
Merge pull request #629 from petergoldstein/feature/ruby_3_1_ci
Get tests running under Ruby 3.1 and add to CI
2 parents 74c2545 + 138bd2a commit 423035f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest, macos-latest]
12-
ruby-version: [2.1.9, 2.2.10, 2.3.8, 2.4.6, 2.5.8, 2.6.6, 2.7.2, 3.0.1, jruby-9.1.17.0, jruby-9.2.17.0, truffleruby]
12+
ruby-version: [2.1.9, 2.2.10, 2.3.8, 2.4.6, 2.5.8, 2.6.6, 2.7.2, 3.0.1, '3.1', jruby-9.1.17.0, jruby-9.2.17.0, truffleruby]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- uses: actions/checkout@v2

ruby-saml.gemspec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ Gem::Specification.new do |s|
5454
s.add_development_dependency('shoulda', '~> 2.11')
5555
s.add_development_dependency('simplecov')
5656
s.add_development_dependency('systemu', '~> 2')
57-
s.add_development_dependency('timecop', '<= 0.6.0')
57+
58+
if RUBY_VERSION < '2.1'
59+
s.add_development_dependency('timecop', '<= 0.6.0')
60+
else
61+
s.add_development_dependency('timecop', '~> 0.9')
62+
end
5863

5964
if defined?(JRUBY_VERSION)
6065
# All recent versions of JRuby play well with pry

0 commit comments

Comments
 (0)