tailwindcss-rails 2.4.0-x64-mingw32 → 2.5.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fd886520468547e55ca3d52aa20d36ee1624a6787708500ab72e8b53e6846f7
4
- data.tar.gz: 930405245e6e50b245c6bfd791c3826265a9ad0edd9f953038d7f97a0e81d93f
3
+ metadata.gz: 02cdc1fa59f7251aaed9801aec6ccb78c182ca865ddaef107cb48ee64c5c23b4
4
+ data.tar.gz: 05425a5d19dedc930e8bdc4e3c41f5f515d5267cfd4d2bf4cd92e5b5656152d3
5
5
  SHA512:
6
- metadata.gz: 0d25cbfa80547e1f4e2af872302081b673de3db790b2550bd782a9f59c2bc7f3876fd6c20682e15c5adb4a6c73dd48f0603e145cb1be8568fd2d483a2a6da8d8
7
- data.tar.gz: 9b70a236cbe1b062e9c818b92ff58fb09d22b175fce1e71cdefdb1798952c3cafabf433b725a0acb9a9e630eaacef9c2029ee9b11525a0265698e154d4b752c6
6
+ metadata.gz: f0fc060a0c974429c71e20822eaea398a31cc519e98007f36b4628dc350a16260bd49cec3ff03e4ff845334005692af684b16e09793c09c533240ce6c44d09e3
7
+ data.tar.gz: 94de63ccfcada1768d6c2742389354eb7d2c6e98cb56ac1a365502b7c853a6a423d77b486ccfb9968aa86aa763474be9141bf3740eaa3ea3a34b994bd14ea721
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.
@@ -16,7 +16,6 @@ module.exports = {
16
16
  },
17
17
  plugins: [
18
18
  require('@tailwindcss/forms'),
19
- require('@tailwindcss/aspect-ratio'),
20
19
  require('@tailwindcss/typography'),
21
20
  require('@tailwindcss/container-queries'),
22
21
  ]
@@ -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
- system(*Tailwindcss::Commands.watch_command)
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 }
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.4.0"
2
+ VERSION = "2.5.0"
3
3
  end
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.0
4
+ version: 2.5.0
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2024-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: 3.2.0
106
106
  requirements: []
107
- rubygems_version: 3.4.19
107
+ rubygems_version: 3.5.9
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.