From 4d30c2716222e5cb09e037097d365bd1b57a4e6f Mon Sep 17 00:00:00 2001 From: Dmytro Shteflyuk Date: Sat, 10 Aug 2024 09:58:39 +0100 Subject: [PATCH] Added support for Rails 7.2 --- .github/workflows/main.yml | 5 ++++- Appraisals | 9 +++++++++ CHANGELOG.md | 3 ++- Gemfile.lock | 4 ++-- gemfiles/rails_7.2_vc_2.0.gemfile | 20 ++++++++++++++++++++ gemfiles/rails_7.2_vc_3.0.gemfile | 21 +++++++++++++++++++++ view_component-form.gemspec | 4 ++-- 7 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 gemfiles/rails_7.2_vc_2.0.gemfile create mode 100644 gemfiles/rails_7.2_vc_3.0.gemfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c3b979..8d319cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,9 @@ jobs: - { ruby: "3.1", rails: "7.1", rubygems: "default" } - { ruby: "3.2", rails: "7.1", rubygems: "default" } - { ruby: "3.3", rails: "7.1", rubygems: "default" } + - { ruby: "3.1", rails: "7.2", rubygems: "default" } + - { ruby: "3.2", rails: "7.2", rubygems: "default" } + - { ruby: "3.3", rails: "7.2", rubygems: "default" } - { ruby: "3.1", rails: "head", rubygems: "latest" } - { ruby: "3.2", rails: "head", rubygems: "latest" } - { ruby: "3.3", rails: "head", rubygems: "latest" } @@ -37,7 +40,7 @@ jobs: - name: Update gemspec to test in head version if: matrix.versions.rails == 'head' run: | - sed -i -e 's/, "< 7.2"//g' view_component-form.gemspec + sed -i -e 's/, "< 8.0"//g' view_component-form.gemspec - name: Set up Ruby uses: ruby/setup-ruby@v1 diff --git a/Appraisals b/Appraisals index bdf9ea9..8215ce9 100644 --- a/Appraisals +++ b/Appraisals @@ -27,6 +27,15 @@ appraise "rails-7.1_vc-3.0" do gem "view_component", ">= 3.0.0", "< 4.0" end +appraise "rails-7.2_vc-2.0" do + gem "rails", "~> 7.2.0" +end + +appraise "rails-7.2_vc-3.0" do + gem "rails", "~> 7.2.0" + gem "view_component", ">= 3.0.0", "< 4.0" +end + appraise "rails-head_vc-2.0" do gem "rails", github: "rails/rails", branch: "main" end diff --git a/CHANGELOG.md b/CHANGELOG.md index 386bbdf..be9c707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] -Nothing yet +### Added +- Support for Rails 7.2 (#168) ## [0.2.7] - 2024-07-18 ### Added diff --git a/Gemfile.lock b/Gemfile.lock index caa12d3..62c959c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,8 +2,8 @@ PATH remote: . specs: view_component-form (0.2.7) - actionview (>= 6.1.0, < 7.2) - activesupport (>= 6.1.0, < 7.2) + actionview (>= 6.1.0, < 8.0) + activesupport (>= 6.1.0, < 8.0) view_component (>= 2.34.0, < 4.0) zeitwerk (~> 2.5) diff --git a/gemfiles/rails_7.2_vc_2.0.gemfile b/gemfiles/rails_7.2_vc_2.0.gemfile new file mode 100644 index 0000000..1215485 --- /dev/null +++ b/gemfiles/rails_7.2_vc_2.0.gemfile @@ -0,0 +1,20 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", require: false +gem "capybara", require: false +gem "combustion", "~> 1.3.7" +gem "generator_spec" +gem "rails", "~> 7.2.0" +gem "rake", "~> 13.0" +gem "rspec", "~> 3.0", require: false +gem "rspec-html-matchers" +gem "rspec-rails", require: false +gem "rubocop", require: false +gem "rubocop-performance", require: false +gem "rubocop-rspec", require: false +gem "simplecov", require: false, group: :test +gem "sqlite3", "~> 1.4", group: :test + +gemspec path: "../" diff --git a/gemfiles/rails_7.2_vc_3.0.gemfile b/gemfiles/rails_7.2_vc_3.0.gemfile new file mode 100644 index 0000000..e6d6b3e --- /dev/null +++ b/gemfiles/rails_7.2_vc_3.0.gemfile @@ -0,0 +1,21 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", require: false +gem "capybara", require: false +gem "combustion", "~> 1.3.7" +gem "generator_spec" +gem "rails", "~> 7.2.0" +gem "rake", "~> 13.0" +gem "rspec", "~> 3.0", require: false +gem "rspec-html-matchers" +gem "rspec-rails", require: false +gem "rubocop", require: false +gem "rubocop-performance", require: false +gem "rubocop-rspec", require: false +gem "simplecov", require: false, group: :test +gem "sqlite3", "~> 1.4", group: :test +gem "view_component", ">= 3.0.0", "< 4.0" + +gemspec path: "../" diff --git a/view_component-form.gemspec b/view_component-form.gemspec index 417f530..4e98023 100644 --- a/view_component-form.gemspec +++ b/view_component-form.gemspec @@ -26,8 +26,8 @@ Gem::Specification.new do |spec| spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0") - spec.add_dependency "actionview", [">= 6.1.0", "< 7.2"] - spec.add_dependency "activesupport", [">= 6.1.0", "< 7.2"] + spec.add_dependency "actionview", [">= 6.1.0", "< 8.0"] + spec.add_dependency "activesupport", [">= 6.1.0", "< 8.0"] spec.add_dependency "view_component", [">= 2.34.0", "< 4.0"] spec.add_dependency "zeitwerk", ["~> 2.5"] end