Skip to content

Commit 6b0c596

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

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/super_diff.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,32 @@ 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: 3.0
44+
rails_appraisal:
45+
- rails_6_0
46+
- no_rails
47+
rspec_appraisal:
48+
- rspec_lt_3_10
49+
- rspec_gte_3_10
50+
env:
51+
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails_appraisal }}_${{ matrix.rspec_appraisal }}.gemfile
52+
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"
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: Set up Ruby
56+
id: set-up-ruby
57+
uses: ruby/setup-ruby@v1
58+
with:
59+
ruby-version: ${{ matrix.ruby }}
60+
- uses: actions/cache@v2
61+
with:
62+
path: vendor/bundle
63+
key: v1-rubygems-local-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles(format('gemfiles/{0}_{1}.gemfile.lock', matrix.rails_appraisal, matrix.rspec_appraisal)) }}
64+
- name: Install dependencies
65+
run: bin/ci/install
66+
- name: Run tests
67+
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)