From 333b51e381d720324eeff66fc788482cfb879076 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 22 Jan 2025 21:47:50 -0500 Subject: [PATCH 1/8] doc: update v4.x readme with the appropriate tailwind version --- Gemfile.lock | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 8cb6e56..fe4c7b1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - tailwindcss-ruby (4.0.0.beta.10) + tailwindcss-ruby (4.0.0) GEM remote: https://rubygems.org/ diff --git a/README.md b/README.md index 79d4761..ff407a8 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ If you're looking to leverage tailwindcss in your Rails project, please see http ## Installation -This gem wraps [the standalone executable version](https://tailwindcss.com/blog/standalone-cli) of the Tailwind CSS v3 framework. These executables are platform specific, so there are actually separate underlying gems per platform, but the correct gem will automatically be picked for your platform. +This gem wraps [the standalone executable version](https://tailwindcss.com/blog/standalone-cli) of the Tailwind CSS v4 framework. These executables are platform specific, so there are actually separate underlying gems per platform, but the correct gem will automatically be picked for your platform. Supported platforms are: From 5472dad74bdcb827f39c487084adae89ab8f0ae4 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 22 Jan 2025 21:52:28 -0500 Subject: [PATCH 2/8] ci: update remaining workflows with v4.x branch --- .github/workflows/downstream.yml | 2 +- .github/workflows/gem-install.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index 6d647f9..6e7fe12 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -9,7 +9,7 @@ on: push: branches: - main - - v4-prerelease + - v4.x tags: - v*.*.* pull_request: diff --git a/.github/workflows/gem-install.yml b/.github/workflows/gem-install.yml index 7bc2ed9..981194c 100644 --- a/.github/workflows/gem-install.yml +++ b/.github/workflows/gem-install.yml @@ -7,7 +7,7 @@ on: push: branches: - main - - v4-prerelease + - v4.x tags: - v*.*.* pull_request: From 1db8571cb58ba3d635ccc2ba453e0be14758d267 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 22 Jan 2025 21:59:51 -0500 Subject: [PATCH 3/8] doc: add an upgrade note to the README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index ff407a8..65a256b 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,20 @@ A self-contained `tailwindcss` executable, wrapped up in a ruby gem. That's it. If you're looking to leverage tailwindcss in your Rails project, please see https://github.com/rails/tailwindcss-rails for integration that is supported by the Rails team. +## ⚠ Upgrade note ⚠ + +To upgrade an existing application from v3 to v4, I strongly urge you to read the upstream upgrade guide: https://tailwindcss.com/docs/upgrade-guide. + +For Rails users, if you want to upgrade you may want to check out [TailwindCSS v4 - upgrade experience report · rails/tailwindcss-rails · Discussion #450](https://github.com/rails/tailwindcss-rails/discussions/450). + +In any case, if you're not ready to upgrade to v4, then pin your project to the 3.x releases: + +```ruby +# If you're not ready to upgrade yet! +gem "tailwindcss-ruby", "~> 3.4" +``` + + ## Installation This gem wraps [the standalone executable version](https://tailwindcss.com/blog/standalone-cli) of the Tailwind CSS v4 framework. These executables are platform specific, so there are actually separate underlying gems per platform, but the correct gem will automatically be picked for your platform. From 6e0675715aceee26792b7d283fc9593caa6b203d Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 24 Jan 2025 10:03:27 -0500 Subject: [PATCH 4/8] ci: add a downstream integration test with rails for upgrades and also fix the integration test for installation. --- .github/workflows/downstream.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index 6e7fe12..853598e 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -29,8 +29,12 @@ jobs: command: "bin/test" ruby: "3.3" - url: https://github.com/rails/tailwindcss-rails - name: rails-integration - command: "env TAILWINDCSSOPTS=--path=../../.. test/integration/user_journey_test.sh" + name: rails-install + command: "env TAILWINDCSSOPTS=--path=../../.. test/integration/user_install_test.sh" + ruby: "3.3" + - url: https://github.com/rails/tailwindcss-rails + name: rails-upgrade + command: "env TAILWINDCSSOPTS=--path=../../.. test/integration/user_upgrade_test.sh" ruby: "3.3" runs-on: ubuntu-latest steps: From 0e7041e1a1eff3649a6c76fa5519e3873a4a29e2 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 29 Jan 2025 15:43:24 -0500 Subject: [PATCH 5/8] dep: update to Tailwind CSS v4.0.1 https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.1 --- CHANGELOG.md | 7 +++++++ lib/tailwindcss/ruby/upstream.rb | 2 +- lib/tailwindcss/ruby/version.rb | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbaeca4..f0b4de4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # tailwindcss-ruby changelog +## v4.0.1 + +* Update to [Tailwind CSS v4.0.1](https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.1) @flavorjones + + Upgrade guide at https://tailwindcss.com/docs/upgrade-guide + + ## v4.0.0 * Update to [Tailwind CSS v4.0.0](https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.0) @flavorjones diff --git a/lib/tailwindcss/ruby/upstream.rb b/lib/tailwindcss/ruby/upstream.rb index 3fd008e..90f64f6 100644 --- a/lib/tailwindcss/ruby/upstream.rb +++ b/lib/tailwindcss/ruby/upstream.rb @@ -1,7 +1,7 @@ module Tailwindcss module Ruby module Upstream - VERSION = "v4.0.0" + VERSION = "v4.0.1" # rubygems platform name => upstream release filename NATIVE_PLATFORMS = { diff --git a/lib/tailwindcss/ruby/version.rb b/lib/tailwindcss/ruby/version.rb index 25738b5..a766fd7 100644 --- a/lib/tailwindcss/ruby/version.rb +++ b/lib/tailwindcss/ruby/version.rb @@ -2,6 +2,6 @@ module Tailwindcss module Ruby - VERSION = "4.0.0" + VERSION = "4.0.1" end end From 3cdc208fee9a829a89b19b0733b11e5b07452a93 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 31 Jan 2025 14:28:27 -0500 Subject: [PATCH 6/8] dep: update to Tailwind CSS v4.0.2 https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.2 --- CHANGELOG.md | 7 +++++++ lib/tailwindcss/ruby/upstream.rb | 2 +- lib/tailwindcss/ruby/version.rb | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0b4de4..0d054d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # tailwindcss-ruby changelog +## v4.0.2 + +* Update to [Tailwind CSS v4.0.2](https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.2) @flavorjones + + Upgrade guide at https://tailwindcss.com/docs/upgrade-guide + + ## v4.0.1 * Update to [Tailwind CSS v4.0.1](https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.1) @flavorjones diff --git a/lib/tailwindcss/ruby/upstream.rb b/lib/tailwindcss/ruby/upstream.rb index 90f64f6..3f22258 100644 --- a/lib/tailwindcss/ruby/upstream.rb +++ b/lib/tailwindcss/ruby/upstream.rb @@ -1,7 +1,7 @@ module Tailwindcss module Ruby module Upstream - VERSION = "v4.0.1" + VERSION = "v4.0.2" # rubygems platform name => upstream release filename NATIVE_PLATFORMS = { diff --git a/lib/tailwindcss/ruby/version.rb b/lib/tailwindcss/ruby/version.rb index a766fd7..6b2ea13 100644 --- a/lib/tailwindcss/ruby/version.rb +++ b/lib/tailwindcss/ruby/version.rb @@ -2,6 +2,6 @@ module Tailwindcss module Ruby - VERSION = "4.0.1" + VERSION = "4.0.2" end end From c8366f3aec206887afedafaaa4d0e15aa9a3729a Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 31 Jan 2025 14:36:20 -0500 Subject: [PATCH 7/8] dep: update Gemfile.lock --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index fe4c7b1..480e83b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - tailwindcss-ruby (4.0.0) + tailwindcss-ruby (4.0.2) GEM remote: https://rubygems.org/ From 2c170e43131b1e8046839c765c1b976312efc261 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Sat, 1 Feb 2025 11:45:55 -0500 Subject: [PATCH 8/8] dep: update to Tailwind CSS v4.0.3 https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.3 --- CHANGELOG.md | 7 +++++++ Gemfile.lock | 2 +- lib/tailwindcss/ruby/upstream.rb | 2 +- lib/tailwindcss/ruby/version.rb | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d054d1..98b1d43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # tailwindcss-ruby changelog +## v4.0.3 + +* Update to [Tailwind CSS v4.0.3](https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.3) @flavorjones + + Upgrade guide at https://tailwindcss.com/docs/upgrade-guide + + ## v4.0.2 * Update to [Tailwind CSS v4.0.2](https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.2) @flavorjones diff --git a/Gemfile.lock b/Gemfile.lock index 480e83b..38de47d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - tailwindcss-ruby (4.0.2) + tailwindcss-ruby (4.0.3) GEM remote: https://rubygems.org/ diff --git a/lib/tailwindcss/ruby/upstream.rb b/lib/tailwindcss/ruby/upstream.rb index 3f22258..833ccdf 100644 --- a/lib/tailwindcss/ruby/upstream.rb +++ b/lib/tailwindcss/ruby/upstream.rb @@ -1,7 +1,7 @@ module Tailwindcss module Ruby module Upstream - VERSION = "v4.0.2" + VERSION = "v4.0.3" # rubygems platform name => upstream release filename NATIVE_PLATFORMS = { diff --git a/lib/tailwindcss/ruby/version.rb b/lib/tailwindcss/ruby/version.rb index 6b2ea13..42aba37 100644 --- a/lib/tailwindcss/ruby/version.rb +++ b/lib/tailwindcss/ruby/version.rb @@ -2,6 +2,6 @@ module Tailwindcss module Ruby - VERSION = "4.0.2" + VERSION = "4.0.3" end end