Skip to content

Commit

Permalink
Add ruby 3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored and mcmire committed Feb 7, 2021
1 parent bf9ca19 commit c81d686
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/super_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,33 @@ jobs:
run: bin/ci/install
- name: Run tests
run: bin/ci/run-tests
test_ruby_3:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby:
- 3.0
rails_appraisal:
- rails_6_0
- no_rails
rspec_appraisal:
- rspec_lt_3_10
- rspec_gte_3_10
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails_appraisal }}_${{ matrix.rspec_appraisal }}.gemfile
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"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
id: set-up-ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: vendor/bundle
key: v1-rubygems-local-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles(format('gemfiles/{0}_{1}.gemfile.lock', matrix.rails_appraisal, matrix.rspec_appraisal)) }}
- name: Install dependencies
run: bin/ci/install
- name: Run tests
run: bin/ci/run-tests
2 changes: 1 addition & 1 deletion super_diff.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |s|
SuperDiff is a gem that hooks into RSpec to intelligently display the
differences between two data structures of any type.
DESC
s.required_ruby_version = "~> 2.4"
s.required_ruby_version = [">= 2.4", "< 4"]

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

0 comments on commit c81d686

Please sign in to comment.