Skip to content

Commit 1723eb3

Browse files
committed
Add ruby 3 support
1 parent 6f1f896 commit 1723eb3

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/super_diff.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,33 @@ jobs:
3636
run: bin/ci/install
3737
- name: Run tests
3838
run: bin/ci/run-tests
39+
test_ruby_3:
40+
runs-on: ubuntu-20.04
41+
strategy:
42+
matrix:
43+
ruby:
44+
- 3.0
45+
rails_appraisal:
46+
- rails_6_0
47+
- no_rails
48+
rspec_appraisal:
49+
- rspec_lt_3_10
50+
- rspec_gte_3_10
51+
env:
52+
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails_appraisal }}_${{ matrix.rspec_appraisal }}.gemfile
53+
JAVA_OPTS: "--add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.security.cert=ALL-UNNAMED --add-opens=java.base/java.util.zip=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util.regex=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/javax.crypto=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=java.base/java.io=org.jruby.dist"
54+
steps:
55+
- uses: actions/checkout@v2
56+
- name: Set up Ruby
57+
id: set-up-ruby
58+
uses: ruby/setup-ruby@v1
59+
with:
60+
ruby-version: ${{ matrix.ruby }}
61+
- uses: actions/cache@v2
62+
with:
63+
path: vendor/bundle
64+
key: v1-rubygems-local-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles(format('gemfiles/{0}_{1}.gemfile.lock', matrix.rails_appraisal, matrix.rspec_appraisal)) }}
65+
- name: Install dependencies
66+
run: bin/ci/install
67+
- name: Run tests
68+
run: bin/ci/run-tests

super_diff.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
1212
SuperDiff is a gem that hooks into RSpec to intelligently display the
1313
differences between two data structures of any type.
1414
DESC
15-
s.required_ruby_version = "~> 2.4"
15+
s.required_ruby_version = [">= 2.4", "< 4"]
1616

1717
s.files = ["README.md", "super_diff.gemspec"] + Dir["lib/**/*"]
1818
s.test_files = Dir["spec/**/*"]

0 commit comments

Comments
 (0)