Skip to content

Commit

Permalink
Relax rails version constraint to include 7, add appraisals
Browse files Browse the repository at this point in the history
  • Loading branch information
maiwald committed Mar 27, 2024
1 parent 4db0479 commit 466bfb3
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ jobs:
- 2.7.8
- 3.0.6
- 3.1.4
- 3.2.3
appraisal:
- rails-5.2
- rails-6.0
- rails-6.1
- rails-7.0
- rails-7.1
exclude:
- ruby: 3.0.6
appraisal: rails-5.2
- ruby: 3.1.4
appraisal: rails-5.2
- ruby: 3.2.3
appraisal: rails-5.2
steps:
- name: Install system dependencies
run: sudo apt-get install -y libsqlite3-dev
Expand Down
8 changes: 8 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ end
appraise 'rails-6.1' do
gem 'rails', '6.1.7.7'
end

appraise 'rails-7.0' do
gem 'rails', '7.0.8.1'
end

appraise 'rails-7.1' do
gem 'rails', '7.1.3.2'
end
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PermanentRecords (Rails 5.2, 6.0, 6.1)
# PermanentRecords

[http://github.com/JackDanger/permanent_records/](http://github.com/JackDanger/permanent_records/)

Expand Down
17 changes: 17 additions & 0 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "database_cleaner", ">= 1.5.1"
gem "pry-byebug"
gem "rake"
gem "rspec", ">= 3.5.0"
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rake"
gem "rubocop-rspec"
gem "sqlite3"
gem "rails", "7.0.8.1"

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

source "https://rubygems.org"

gem "appraisal"
gem "database_cleaner", ">= 1.5.1"
gem "pry-byebug"
gem "rake"
gem "rspec", ">= 3.5.0"
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rake"
gem "rubocop-rspec"
gem "sqlite3"
gem "rails", "7.1.3.2"

gemspec path: "../"
4 changes: 2 additions & 2 deletions permanent_records.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 2.7.8'

s.add_runtime_dependency 'activerecord', ['>= 5.2', '< 7']
s.add_runtime_dependency 'activesupport', ['>= 5.2', '< 7']
s.add_runtime_dependency 'activerecord', '>= 5.2'
s.add_runtime_dependency 'activesupport', '>= 5.2'
end

0 comments on commit 466bfb3

Please sign in to comment.