Skip to content

Commit 976ddab

Browse files
committed
doc: emit a post-install message with a pointer to upgrade docs
1 parent e37ed78 commit 976ddab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tailwindcss-rails.gemspec

+14
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,18 @@ Gem::Specification.new do |spec|
2020

2121
spec.add_dependency "railties", ">= 7.0.0"
2222
spec.add_dependency "tailwindcss-ruby", "~> 4.0"
23+
24+
# TODO: remove this after a suitable period of time after the v4.0.0 release.
25+
spec.post_install_message = <<~TEXT
26+
== Upgrading to Tailwind CSS v4 ==
27+
28+
If you are upgrading to tailwindcss-rails 4.x, please read the upgrade guide at:
29+
30+
https://github.com/rails/tailwindcss-rails/blob/main/README.md#upgrading-your-application-from-tailwind-v3-to-v4
31+
32+
If you're not ready to upgrade yet, please pin to version 3 in your Gemfile:
33+
34+
gem "tailwindcss-rails", "~> 3.3.1"
35+
36+
TEXT
2337
end

0 commit comments

Comments
 (0)