Skip to content

Commit

Permalink
Support Ruby 3.1 and Rails 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
khiav reoy committed Jan 21, 2022
1 parent a05df91 commit 4dc7558
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 16 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- 2.6
- 2.7
- 3.0
- 3.1
gemfile:
- 3.2.gemfile
- 4.2.gemfile
Expand All @@ -39,35 +40,47 @@ jobs:
ruby: 2.7
- gemfile: 3.2.gemfile
ruby: 3.0
- gemfile: 3.2.gemfile
ruby: 3.1
- gemfile: 4.2.gemfile
ruby: 2.7
- gemfile: 4.2.gemfile
ruby: 3.0
- gemfile: 4.2.gemfile
ruby: 3.1
- gemfile: 5.0.gemfile
ruby: 3.0
- gemfile: 5.0.gemfile
ruby: 3.1
- gemfile: 5.1.gemfile
ruby: 3.0
- gemfile: 5.1.gemfile
ruby: 3.1
- gemfile: 5.2.gemfile
ruby: 3.0
- gemfile: 5.2.gemfile
ruby: 3.1
- gemfile: 6.0.gemfile
ruby: 2.2
- gemfile: 6.1.gemfile
ruby: 2.2
- gemfile: 7.0.gemfile
ruby: 2.2
env:
BUNDLE_GEMFILE: "gemfiles/${{ matrix.gemfile }}"

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
- name: Publish code coverage
if: ${{ success() && github.event.pull_request.head.repo.full_name == github.repository }}
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
- name: Publish code coverage
if: ${{ success() }}
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
Allow you to pluck deeply into nested associations without loading a bunch of records.

## Supports
- Ruby 2.2 ~ 2.7, 3.0
- Rails 3.2, 4.2, 5.0, 5.1, 5.2, 6.0
- Ruby 2.2 ~ 2.7, 3.0 ~ 3.1
- Rails 3.2, 4.2, 5.0, 5.1, 5.2, 6.0, 7.0

## Installation

Expand Down
13 changes: 13 additions & 0 deletions gemfiles/7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
source 'https://rubygems.org'

gem 'activerecord', '~> 7.0.0'
gem 'pluck_all', '~> 2.3.2'

gem 'globalize'

group :test do
gem 'simplecov', '< 0.18'
gem 'sqlite3', '~> 1.4.1'
end

gemspec path: '../'

0 comments on commit 4dc7558

Please sign in to comment.