tailwindcss-rails 2.0.27-arm-linux → 2.0.28-arm-linux

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: b1c81632d3f1b29f6e91a4b3af25cac4147e2fe544ef3dfb3a98a51132b2b7be
4
- data.tar.gz: 4c6be3f992d873092a6336f397c644e47abe63584a33d232b040ca163a54f46b
3
+ metadata.gz: f99b02780826ac1f9a7646458f5ce27ab710375e4a93a6c2796455c1675718eb
4
+ data.tar.gz: 235a4575e027897f62afc9ddb5a8d278cb97979acd98f713fe972a7510b24805
5
5
  SHA512:
6
- metadata.gz: 80f9b7547418eab8bfff0983c9d0f7358a57319a292b990132f85d65102965ab08a7e85a8f26df88c2ceb6349954a1cd2696f6d8bb4986baafe7a5cf34924f80
7
- data.tar.gz: 554387ee03957fdb908f7a52dbb8d6d0910bc57b7dbda88cd1956fe044261c5b9ae093ce95e2e5c86865e1551d6cb4ba89afe0da00ac33a06d0e0e9fcf853452
6
+ metadata.gz: 28bdd87c2fe49a19d6d52be891f698b05f68b79a1f11702c694c67478cd6a756b9ecdc190feedf9e751578ad2e5c7de1b96363b7f4eff41141cd78bd9a60de9d
7
+ data.tar.gz: 484474186f93ee1ae36aff32bac4ad0817d386ddfb50ab60c8c55cfb3254690889dd4771713970548413696983cccd67ec835f0d27b65347a5851ddc97ac9fb8
data/README.md CHANGED
@@ -70,9 +70,11 @@ While you're developing your application, you want to run Tailwind in "watch" mo
70
70
  - running `rails tailwindcss:watch` as a separate process,
71
71
  - or by running `./bin/dev` which uses [foreman](https://github.com/ddollar/foreman) to start both the Tailwind watch process and the rails server in development mode.
72
72
 
73
+ If you are running `rails tailwindcss:watch` on a system that doesn't fully support file system events, pass a `poll` argument to the task to instruct tailwindcss to instead use polling: `rails tailwindcss:watch[poll]`. If you use `bin/dev` then you should modify your `Procfile.dev`.
74
+
73
75
  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.
74
76
 
75
- If you are running `rails tailwindcss:watch` on a system that doesn't fully support file system events, pass a `poll` argument to the task to instruct tailwindcss to instead use polling: `rails tailwindcss:watch[poll]`. If you use `bin/dev` then you should modify your `Procfile.dev`.
77
+ If you are running `rails tailwindcss:watch` in a docker container without a tty, pass the `always` argument to the task to instruct tailwindcss to keep the watcher alive even when `stdin` is closed: `rails tailwindcss:watch[always]`. If you use `bin/dev` then you should modify your `Procfile.dev`.
76
78
 
77
79
 
78
80
  ### Debugging with unminified assets
@@ -83,9 +83,10 @@ module Tailwindcss
83
83
  end
84
84
  end
85
85
 
86
- def watch_command(poll: false, **kwargs)
86
+ def watch_command(always: false, poll: false, **kwargs)
87
87
  compile_command(**kwargs).tap do |command|
88
88
  command << "-w"
89
+ command << "always" if always
89
90
  command << "-p" if poll
90
91
  end
91
92
  end
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.0.27"
2
+ VERSION = "2.0.28"
3
3
  end
data/lib/tasks/build.rake CHANGED
@@ -11,7 +11,8 @@ namespace :tailwindcss do
11
11
  task watch: :environment do |_, args|
12
12
  debug = args.extras.include?("debug")
13
13
  poll = args.extras.include?("poll")
14
- command = Tailwindcss::Commands.watch_command(debug: debug, poll: poll)
14
+ always = args.extras.include?("always")
15
+ command = Tailwindcss::Commands.watch_command(always: always, debug: debug, poll: poll)
15
16
  puts command.inspect if args.extras.include?("verbose")
16
17
  system(*command)
17
18
  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.0.27
4
+ version: 2.0.28
5
5
  platform: arm-linux
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-02 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties