diff --git a/Gemfile.lock b/Gemfile.lock index e6552f0f7..d1180265d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,6 +3,7 @@ PATH specs: view_component (4.1.0) activesupport (>= 7.1.0, < 8.2) + actionview (>= 7.1.0, < 8.2) concurrent-ruby (~> 1) GEM diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 94c775693..2029fa4f3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -28,6 +28,10 @@ nav_order: 6 *Tom Lord* +* Declare `actionview` as a `view_component` gem dependency. + + *Michal Cichra* + ## 4.0.2 * Share the view context in tests to prevent out-of-order rendering issues for certain advanced use-cases, eg. testing instances of Rails' `FormBuilder`. diff --git a/gemfiles/rails_7.1.gemfile.lock b/gemfiles/rails_7.1.gemfile.lock index 783c26cc0..2b4b5762a 100644 --- a/gemfiles/rails_7.1.gemfile.lock +++ b/gemfiles/rails_7.1.gemfile.lock @@ -2,6 +2,7 @@ PATH remote: .. specs: view_component (4.1.0) + actionview (>= 7.1.0, < 8.2) activesupport (>= 7.1.0, < 8.2) concurrent-ruby (~> 1) diff --git a/gemfiles/rails_7.2.gemfile.lock b/gemfiles/rails_7.2.gemfile.lock index 1cdd2541f..a21c39901 100644 --- a/gemfiles/rails_7.2.gemfile.lock +++ b/gemfiles/rails_7.2.gemfile.lock @@ -2,6 +2,7 @@ PATH remote: .. specs: view_component (4.1.0) + actionview (>= 7.1.0, < 8.2) activesupport (>= 7.1.0, < 8.2) concurrent-ruby (~> 1) diff --git a/gemfiles/rails_8.0.gemfile.lock b/gemfiles/rails_8.0.gemfile.lock index b98731090..03d65eece 100644 --- a/gemfiles/rails_8.0.gemfile.lock +++ b/gemfiles/rails_8.0.gemfile.lock @@ -2,6 +2,7 @@ PATH remote: .. specs: view_component (4.1.0) + actionview (>= 7.1.0, < 8.2) activesupport (>= 7.1.0, < 8.2) concurrent-ruby (~> 1) diff --git a/gemfiles/rails_8.1.gemfile.lock b/gemfiles/rails_8.1.gemfile.lock index 90b2bb3d1..2de01169b 100644 --- a/gemfiles/rails_8.1.gemfile.lock +++ b/gemfiles/rails_8.1.gemfile.lock @@ -2,6 +2,7 @@ PATH remote: .. specs: view_component (4.1.0) + actionview (>= 7.1.0, < 8.2) activesupport (>= 7.1.0, < 8.2) concurrent-ruby (~> 1) diff --git a/gemfiles/rails_main.gemfile.lock b/gemfiles/rails_main.gemfile.lock index 2cd3228fd..cf88b1240 100644 --- a/gemfiles/rails_main.gemfile.lock +++ b/gemfiles/rails_main.gemfile.lock @@ -110,6 +110,7 @@ PATH remote: .. specs: view_component (4.1.0) + actionview (>= 7.1.0, < 8.2) activesupport (>= 7.1.0, < 8.2) concurrent-ruby (~> 1) diff --git a/view_component.gemspec b/view_component.gemspec index 2daf692cd..d8eb51271 100644 --- a/view_component.gemspec +++ b/view_component.gemspec @@ -32,6 +32,8 @@ Gem::Specification.new do |spec| spec.required_ruby_version = ">= 3.2.0" - spec.add_runtime_dependency "activesupport", [">= 7.1.0", "< 8.2"] + supported_rails_version = [">= 7.1.0", "< 8.2"] + spec.add_runtime_dependency "activesupport", supported_rails_version + spec.add_runtime_dependency "actionview", supported_rails_version spec.add_runtime_dependency "concurrent-ruby", "~> 1" end