Skip to content

Commit

Permalink
Support Rails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
erikaxel committed Dec 16, 2021
1 parent 5ad9ac5 commit 646b52d
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ jobs:
strategy:
matrix:
ruby: ['2.5', '2.7']
gemfile: [ 'activerecord_5.0',
'activerecord_5.1',
'activerecord_5.2',
'activerecord_6.0',
'activerecord_6.1',
'activerecord_7.0'
]
exclude:
- { ruby: '2.5', gemfile: 'rails_7_0' }
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v1
with:
Expand All @@ -46,5 +57,4 @@ jobs:
sudo apt-get -yqq install libpq-dev libmysqlclient-dev
gem install bundler
bundle install
bundle exec appraisal install
bundle exec appraisal rspec
bundle exec rake spec
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ appraise "activerecord-6.1" do
gem "sqlite3", "~> 1.4.0"
end

appraise "activerecord-7.0" do
gem "activerecord", "~> 7.0.0"
gem "mysql2", "~> 0.5"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.4.0"
end

appraise "activerecord-edge" do
gem "arel", github: "rails/arel"
gem "activerecord", github: "rails/rails", :branch => "main"
Expand Down
20 changes: 20 additions & 0 deletions gemfiles/activerecord_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "~> 7.0.0"
gem "mysql2", "~> 0.5"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.4.0"

group :development do
gem "appraisal"
gem "byebug"
end

group :test do
gem "rake", "~> 12.3.3"
gem "rspec", "~> 2.14.0"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion hairtrigger.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|

s.files = %w(LICENSE.txt Rakefile README.md) + Dir['lib/**/*.rb'] + Dir['lib/**/*.rake']

s.add_dependency 'activerecord', '>= 5.0', '< 7'
s.add_dependency 'activerecord', '>= 5.0', '< 8'
s.add_dependency 'ruby_parser', '~> 3.10'
s.add_dependency 'ruby2ruby', '~> 2.4'
end

0 comments on commit 646b52d

Please sign in to comment.