tailwindcss-rails 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/install/tailwind.config.js +0 -1
- data/lib/puma/plugin/tailwindcss.rb +6 -1
- data/lib/tailwindcss/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68c91fe5805f3751363874acd27395c4a3f80e39dafc000ecbf7aadfd5d76207
|
4
|
+
data.tar.gz: 8619be54f9b78d85b8eba2b67dadc7db6d035ce3f5f52beae2d65f199e3b6090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a7b91c685c61de4e23c31af076abba22705b7c685d444ab35ba8d6f9d73c6607e1f7ab99c89d236f63c8dfa61aa952b7816dd665e4d18290d3412e31c643727
|
7
|
+
data.tar.gz: 6f98a224b3c88afdaaaf90f83bbd083750cf029d5a15afe8d4c33df949dd0a05508bbddabf5d76d90151cbf19a2e2fc5c02c31015e70cda001920847912da035
|
data/README.md
CHANGED
@@ -17,6 +17,7 @@
|
|
17
17
|
* [Using with PostCSS](#using-with-postcss)
|
18
18
|
* [Custom inputs or outputs](#custom-inputs-or-outputs)
|
19
19
|
- [Troubleshooting](#troubleshooting)
|
20
|
+
* [Lost keystrokes or hanging when using `ruby/debug` with the Puma plugin](#lost-keystrokes-or-hanging-when-using-rubydebug-with-the-puma-plugin)
|
20
21
|
* [Running in a docker container exits prematurely](#running-in-a-docker-container-exits-prematurely)
|
21
22
|
* [Conflict with sassc-rails](#conflict-with-sassc-rails)
|
22
23
|
* [Class names must be spelled out](#class-names-must-be-spelled-out)
|
@@ -185,6 +186,10 @@ If you need to use a custom input or output file, you can run `bundle exec tailw
|
|
185
186
|
|
186
187
|
Some common problems experienced by users ...
|
187
188
|
|
189
|
+
### Lost keystrokes or hanging when using terminal-based debugging tools (e.g. IRB, Pry, `ruby/debug`...etc.) with the Puma plugin
|
190
|
+
|
191
|
+
We've addressed the issue and you can avoid the problem by upgrading `tailwindcss-rails` to [v2.4.1](https://github.com/rails/tailwindcss-rails/releases/tag/v2.4.1) or later versions.
|
192
|
+
|
188
193
|
### Running in a docker container exits prematurely
|
189
194
|
|
190
195
|
If you are running `rails tailwindcss:watch` as a process in a Docker container, set `tty: true` in `docker-compose.yml` for the appropriate container to keep the watch process running.
|
@@ -8,7 +8,12 @@ Puma::Plugin.create do
|
|
8
8
|
@puma_pid = $$
|
9
9
|
@tailwind_pid = fork do
|
10
10
|
Thread.new { monitor_puma }
|
11
|
-
|
11
|
+
# Using IO.popen(command, 'r+') will avoid watch_command read from $stdin.
|
12
|
+
# If we use system(*command) instead, IRB and Debug can't read from $stdin
|
13
|
+
# correctly bacause some keystrokes will be taken by watch_command.
|
14
|
+
IO.popen(Tailwindcss::Commands.watch_command, 'r+') do |io|
|
15
|
+
IO.copy_stream(io, $stdout)
|
16
|
+
end
|
12
17
|
end
|
13
18
|
|
14
19
|
launcher.events.on_stopped { stop_tailwind }
|
data/lib/tailwindcss/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tailwindcss-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 3.2.0
|
104
104
|
requirements: []
|
105
|
-
rubygems_version: 3.
|
105
|
+
rubygems_version: 3.5.9
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Integrate Tailwind CSS with the asset pipeline in Rails.
|