Skip to content

Commit

Permalink
Rails 7.1 support (#151)
Browse files Browse the repository at this point in the history
* Rails 7.1 support

* Update Appraisals

* Update main.yml

* Create rails_7.1_vc_2.0.gemfile

* Create rails_7.1_vc_3.0.gemfile

* Update view_component-form.gemspec

Co-authored-by: Hans Lemuet <[email protected]>

* Update .github/workflows/main.yml

Co-authored-by: Hans Lemuet <[email protected]>

* Update rails_7.1_vc_3.0.gemfile

* Update rails_7.1_vc_2.0.gemfile

* Add changelog entry

---------

Co-authored-by: Hans Lemuet <[email protected]>
Co-authored-by: Hans Lemuet <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2023
1 parent 53d7cb8 commit 29d2e47
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
- { ruby: "3.0", rails: "7.0", rubygems: "default" }
- { ruby: "3.1", rails: "7.0", rubygems: "default" }
- { ruby: "3.2", rails: "7.0", rubygems: "default" }
- { ruby: "2.7", rails: "7.1", rubygems: "default" }
- { ruby: "3.0", rails: "7.1", rubygems: "default" }
- { ruby: "3.1", rails: "7.1", rubygems: "default" }
- { ruby: "3.2", rails: "7.1", rubygems: "default" }
- { ruby: "3.0", rails: "head", rubygems: "latest" }
- { ruby: "3.1", rails: "head", rubygems: "latest" }
- { ruby: "3.2", rails: "head", rubygems: "latest" }
Expand All @@ -34,7 +38,7 @@ jobs:
- name: Update gemspec to test in head version
if: matrix.versions.rails == 'head'
run: |
sed -i -e 's/, "< 7.1"//g' view_component-form.gemspec
sed -i -e 's/, "< 7.2"//g' view_component-form.gemspec
- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
9 changes: 9 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ appraise "rails-7.0_vc-3.0" do
gem "view_component", ">= 3.0.0", "< 4.0"
end

appraise "rails-7.1_vc-2.0" do
gem "rails", "~> 7.1.0"
end

appraise "rails-7.1_vc-3.0" do
gem "rails", "~> 7.1.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
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ 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]
- Support for Rails 7.1 (#151)
- Add `element_proc` option to `CollectionCheckBoxesComponent` and `CollectionRadioButtonsComponent` to customize the way the elements will be shown (#142)

## [0.2.5] - 2023-05-01
Expand Down
20 changes: 20 additions & 0 deletions gemfiles/rails_7.1_vc_2.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 "appraisal", require: false
gem "capybara", require: false
gem "combustion", "~> 1.3.7"
gem "generator_spec"
gem "rails", "~> 7.1.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", require: false, group: :test

gemspec path: "../"
21 changes: 21 additions & 0 deletions gemfiles/rails_7.1_vc_3.0.gemfile
Original file line number Diff line number Diff line change
@@ -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.1.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", require: false, group: :test
gem "view_component", ">= 3.0.0", "< 4.0"

gemspec path: "../"
4 changes: 2 additions & 2 deletions view_component-form.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")

spec.add_dependency "actionview", [">= 6.0.0", "< 7.1"]
spec.add_dependency "activesupport", [">= 6.0.0", "< 7.1"]
spec.add_dependency "actionview", [">= 6.0.0", "< 7.2"]
spec.add_dependency "activesupport", [">= 6.0.0", "< 7.2"]
spec.add_dependency "view_component", [">= 2.34.0", "< 4.0"]
spec.add_dependency "zeitwerk", ["~> 2.5"]
end

0 comments on commit 29d2e47

Please sign in to comment.