Skip to content

Commit

Permalink
Add Rails 7.1.0 and Ruby 3.1 and 3.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
KoenSengers authored and LuukvH committed Oct 25, 2023
1 parent a15a545 commit 477a748
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
ruby-version: 3.2
bundler-cache: true

- name: Setup reviewdog
Expand All @@ -25,11 +25,13 @@ jobs:
fail-fast: false
matrix:
ruby:
- 2.7
- '3.0'
- '3.1'
- '3.2'
gemfile:
- rails_6
- rails_7
- rails_6_1
- rails_7_0
- rails_7_1
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
12 changes: 8 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# frozen_string_literal: true

appraise 'rails-6' do
gem 'rails', '~> 6.1'
appraise 'rails-6-1' do
gem 'rails', '~> 6.1.0'
end

appraise 'rails-7' do
gem 'rails', '~> 7.0'
appraise 'rails-7-0' do
gem 'rails', '~> 7.0.0'
end

appraise 'rails-7-1' do
gem 'rails', '~> 7.1.0'
end
2 changes: 1 addition & 1 deletion gemfiles/rails_6.gemfile → gemfiles/rails_6_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 6.1"
gem "rails", "~> 6.1.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_7.gemfile → gemfiles/rails_7_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

source "https://rubygems.org"

gem "rails", "~> 7.0"
gem "rails", "~> 7.0.0"

gemspec path: "../"
7 changes: 7 additions & 0 deletions gemfiles/rails_7_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 7.1.0"

gemspec path: "../"
4 changes: 2 additions & 2 deletions keypairs.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Gem::Specification.new do |spec|

spec.files = Dir['{app,db,lib}/**/*', 'LICENSE', 'README.md']

spec.add_dependency 'actionpack', '>= 6.0' # Depend on actionpack to share public keys
spec.add_dependency 'activerecord', '>= 6.0' # Depend on activerecord as ORM
spec.add_dependency 'actionpack', '>= 6.0', '< 8' # Depend on actionpack to share public keys
spec.add_dependency 'activerecord', '>= 6.0', '< 8' # Depend on activerecord as ORM
spec.add_dependency 'jwt', '~> 2.5' # Working with JSON Web Tokens
spec.add_dependency 'lockbox', '~> 1.3' # Encrypt and decrypt attributes

Expand Down

0 comments on commit 477a748

Please sign in to comment.