From 984c2c66621e13177fe89b1041d05db96acdeb1a Mon Sep 17 00:00:00 2001 From: Javier Aranda Date: Tue, 1 Oct 2024 13:39:34 +0200 Subject: [PATCH] Add support for Rails 8.0 --- .github/workflows/ci.yml | 5 ++++- gemfiles/Gemfile.rails-8.0 | 7 +++++++ page_title_helper.gemspec | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 gemfiles/Gemfile.rails-8.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aba602a..925027d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - rails-8 pull_request: schedule: - cron: '15 3 * * 1' @@ -28,7 +29,7 @@ jobs: run: | bundle exec rubocop Gemfile \ gemfiles/Gemfile.rails-6.1 gemfiles/Gemfile.rails-7.0 gemfiles/Gemfile.rails-7.1 gemfiles/Gemfile.rails-7.2 \ - lib/ test/ Rakefile + gemfiles/Gemfile.rails-8.0 lib/ test/ Rakefile test: name: "Tests: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}" @@ -67,3 +68,5 @@ jobs: - { 'rails': '7.2', 'ruby': '3.1.6' } - { 'rails': '7.2', 'ruby': '3.2.5' } - { 'rails': '7.2', 'ruby': '3.3.5' } + - { 'rails': '8.0', 'ruby': '3.2.5' } + - { 'rails': '8.0', 'ruby': '3.3.5' } diff --git a/gemfiles/Gemfile.rails-8.0 b/gemfiles/Gemfile.rails-8.0 new file mode 100644 index 0000000..5e4694f --- /dev/null +++ b/gemfiles/Gemfile.rails-8.0 @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' + +gem 'rails', '~> 8.0.0.beta1' + +gemspec path: '../' diff --git a/page_title_helper.gemspec b/page_title_helper.gemspec index 026e465..5930f93 100644 --- a/page_title_helper.gemspec +++ b/page_title_helper.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |s| s.license = 'MIT' - s.add_dependency 'rails', '>= 6.1.0', '< 7.3' + s.add_dependency 'rails', '>= 6.1.0', '< 8.1' s.add_development_dependency 'rake', '~> 13.2.1' s.add_development_dependency 'rubocop', '~> 1.65.1'