File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ nav_order: 5
10
10
11
11
## main
12
12
13
+ * Warn if using Ruby < 3.1 or Rails < 7.0, which will not be supported by ViewComponent v4.
14
+
15
+ * Joel Hawksley*
16
+
13
17
* Add Kicksite to list of companies using ViewComponent.
14
18
15
- * Adil Lari*
19
+ * Adil Lari*
16
20
17
21
* Allow overridden slot methods to use ` super ` .
18
22
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ module ViewComponent
21
21
autoload :TestCase
22
22
autoload :SystemTestCase
23
23
autoload :Translatable
24
+
25
+ if defined? ( Rails ) && Rails . version < "7.0"
26
+ Kernel . warn ( "ViewComponent v4 will drop support for Rails < 7.0 in 2025." )
27
+ end
24
28
end
25
29
26
30
require "view_component/engine" if defined? ( Rails ::Engine )
Original file line number Diff line number Diff line change @@ -64,5 +64,7 @@ Gem::Specification.new do |spec|
64
64
spec . add_development_dependency "net-imap"
65
65
spec . add_development_dependency "net-pop"
66
66
spec . add_development_dependency "net-smtp"
67
+ else
68
+ spec . post_install_message = "ViewComponent v4 will drop support for Ruby < 3.1 in 2025."
67
69
end
68
70
end
You can’t perform that action at this time.
0 commit comments