Skip to content

Commit f76831e

Browse files
authored
Merge pull request #2461 from mikz/patch-1
Declare actionview as explicit gem dependency
2 parents e733e40 + aa10013 commit f76831e

File tree

8 files changed

+13
-1
lines changed

8 files changed

+13
-1
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PATH
33
specs:
44
view_component (4.1.0)
55
activesupport (>= 7.1.0, < 8.2)
6+
actionview (>= 7.1.0, < 8.2)
67
concurrent-ruby (~> 1)
78

89
GEM

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ nav_order: 6
2828

2929
*Tom Lord*
3030

31+
* Declare `actionview` as a `view_component` gem dependency.
32+
33+
*Michal Cichra*
34+
3135
## 4.0.2
3236

3337
* Share the view context in tests to prevent out-of-order rendering issues for certain advanced use-cases, eg. testing instances of Rails' `FormBuilder`.

gemfiles/rails_7.1.gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ PATH
22
remote: ..
33
specs:
44
view_component (4.1.0)
5+
actionview (>= 7.1.0, < 8.2)
56
activesupport (>= 7.1.0, < 8.2)
67
concurrent-ruby (~> 1)
78

gemfiles/rails_7.2.gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ PATH
22
remote: ..
33
specs:
44
view_component (4.1.0)
5+
actionview (>= 7.1.0, < 8.2)
56
activesupport (>= 7.1.0, < 8.2)
67
concurrent-ruby (~> 1)
78

gemfiles/rails_8.0.gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ PATH
22
remote: ..
33
specs:
44
view_component (4.1.0)
5+
actionview (>= 7.1.0, < 8.2)
56
activesupport (>= 7.1.0, < 8.2)
67
concurrent-ruby (~> 1)
78

gemfiles/rails_8.1.gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ PATH
22
remote: ..
33
specs:
44
view_component (4.1.0)
5+
actionview (>= 7.1.0, < 8.2)
56
activesupport (>= 7.1.0, < 8.2)
67
concurrent-ruby (~> 1)
78

gemfiles/rails_main.gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ PATH
110110
remote: ..
111111
specs:
112112
view_component (4.1.0)
113+
actionview (>= 7.1.0, < 8.2)
113114
activesupport (>= 7.1.0, < 8.2)
114115
concurrent-ruby (~> 1)
115116

view_component.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Gem::Specification.new do |spec|
3232

3333
spec.required_ruby_version = ">= 3.2.0"
3434

35-
spec.add_runtime_dependency "activesupport", [">= 7.1.0", "< 8.2"]
35+
supported_rails_version = [">= 7.1.0", "< 8.2"]
36+
spec.add_runtime_dependency "activesupport", supported_rails_version
37+
spec.add_runtime_dependency "actionview", supported_rails_version
3638
spec.add_runtime_dependency "concurrent-ruby", "~> 1"
3739
end

0 commit comments

Comments
 (0)