From fddf3f37a30787cfda5b807f59a157b27f997169 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 17 Dec 2021 16:54:36 +0100 Subject: [PATCH] [FEATURE] Add support for Rails 7.0 --- .github/workflows/ci.yml | 20 ++++++++++++-------- CHANGELOG.md | 1 + gemfiles/Gemfile.rails-7.0 | 7 +++++++ page_title_helper.gemspec | 2 +- 4 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 gemfiles/Gemfile.rails-7.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc32f58..c8c6ae1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,11 +60,15 @@ jobs: strategy: fail-fast: false matrix: - ruby: - - '2.6.8' - - '2.7.4' - - '3.0.2' - rails: - - '5.2' - - '6.0' - - '6.1' + include: + - { 'rails': '5.2', 'ruby': '2.6.9' } + - { 'rails': '5.2', 'ruby': '2.7.5' } + - { 'rails': '5.2', 'ruby': '3.0.3' } + - { 'rails': '6.0', 'ruby': '2.6.9' } + - { 'rails': '6.0', 'ruby': '2.7.5' } + - { 'rails': '6.0', 'ruby': '3.0.3' } + - { 'rails': '6.1', 'ruby': '2.6.9' } + - { 'rails': '6.1', 'ruby': '2.7.5' } + - { 'rails': '6.1', 'ruby': '3.0.3' } + - { 'rails': '7.0', 'ruby': '2.7.5' } + - { 'rails': '7.0', 'ruby': '3.0.3' } diff --git a/CHANGELOG.md b/CHANGELOG.md index a314945..ec8c33b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ about why a change log is important. ## x.y.z ### Added +- Add support for Rails 7.0 (#131) ### Changed diff --git a/gemfiles/Gemfile.rails-7.0 b/gemfiles/Gemfile.rails-7.0 new file mode 100644 index 0000000..84cf2c9 --- /dev/null +++ b/gemfiles/Gemfile.rails-7.0 @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' + +gem 'rails', '~> 7.0.0' + +gemspec path: '../' diff --git a/page_title_helper.gemspec b/page_title_helper.gemspec index b14b8fd..84ca344 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', '>= 5.2.0', '< 6.2' + s.add_runtime_dependency 'actionview', '>= 5.2.0', '< 7.1' s.add_development_dependency 'rake', '>= 10.3.2' s.add_development_dependency 'shoulda'