Skip to content

Commit

Permalink
Merge pull request #477 from harshalbhakta/rails_7_1_0
Browse files Browse the repository at this point in the history
Add support for Rails 7.1.0
  • Loading branch information
danielmorrison authored Oct 5, 2023
2 parents da27054 + 034ab03 commit 239ea9f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- rails_6_0
- rails_6_1
- rails_7_0
- rails_7_1
- rails_main
exclude:
- ruby: '3.2'
Expand All @@ -40,6 +41,9 @@ jobs:

- ruby: '2.6'
gemfile: rails_7_0

- ruby: '2.6'
gemfile: rails_7_1
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
BUNDLE_PATH_RELATIVE_TO_CWD: true
Expand Down Expand Up @@ -70,6 +74,7 @@ jobs:
- rails_6_0
- rails_6_1
- rails_7_0
- rails_7_1
- rails_main
exclude:
- ruby: '3.2'
Expand All @@ -90,6 +95,9 @@ jobs:

- ruby: '2.6'
gemfile: rails_7_0

- ruby: '2.6'
gemfile: rails_7_1
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
BUNDLE_PATH_RELATIVE_TO_CWD: true
Expand Down Expand Up @@ -135,6 +143,7 @@ jobs:
- rails_6_0
- rails_6_1
- rails_7_0
- rails_7_1
- rails_main
exclude:
- ruby: '3.2'
Expand All @@ -152,6 +161,9 @@ jobs:
# Rails 7 requires Ruby 2.7 or higher
- ruby: '2.6'
gemfile: rails_7_0

- ruby: '2.6'
gemfile: rails_7_1

- ruby: '2.6'
gemfile: rails_main
Expand Down
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ '5_2' => '5.2.0', '6_0' => '6.0.0', '6_1' => '6.1.0', '7_0' => '7.0.0' }.each do |rails, version|
{ '5_2' => '5.2.0', '6_0' => '6.0.0', '6_1' => '6.1.0', '7_0' => '7.0.0', '7_1' => '7.1.0' }.each do |rails, version|
appraise "rails-#{rails}" do
gem "rails", "~> #{version}"
end
Expand Down
4 changes: 2 additions & 2 deletions awesome_nested_set.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 2.0.0'

s.add_runtime_dependency 'activerecord', '>= 4.0.0', '< 7.1'
s.add_runtime_dependency 'activerecord', '>= 4.0.0', '< 7.2'

s.add_development_dependency 'appraisal'
s.add_development_dependency 'database_cleaner'
s.add_development_dependency 'pry'
s.add_development_dependency 'pry-nav'
s.add_development_dependency 'rake', '~> 12'
s.add_development_dependency 'rake', '~> 13'
s.add_development_dependency 'rspec-rails', '~> 4.0.0'

s.cert_chain = [File.expand_path('certs/parndt.pem', __dir__)]
Expand Down
13 changes: 13 additions & 0 deletions gemfiles/rails_7_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 7.1.0"

platforms :ruby do
gem "sqlite3"
gem "mysql2", "< 1.0.0"
gem "pg", "< 2.0.0"
end

gemspec path: "../"

0 comments on commit 239ea9f

Please sign in to comment.