tailwindcss-rails 2.0.22-arm-linux → 2.0.24-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: 44b2fe1f803d76c6d6b5f7e75e59298a3dea806bbd01e2518c21d9758ac725fc
4
- data.tar.gz: 36e372aaaf857a6165ef04f9db65a9fcaa79c0c55ea5e5ee07f7aa1d65b39a14
3
+ metadata.gz: 6c9fa21a060ba7a49db93d675b9600463f530d63d30c3edc3138dc955f2b3c81
4
+ data.tar.gz: 0f6c9815906c0fa10e48f8d2373c8545a2fed713391606b7aab461b864f52e15
5
5
  SHA512:
6
- metadata.gz: 797b01dc12ae94bbd76a948d7f5347e4e980067dabbb9b7ddb4863640c3df8ab914e9c2b0024649792c0ce3d1027a89b95932e6db5543336dec50ec4d6d4da57
7
- data.tar.gz: 0b0e69c1149a90de7ed6536eb1a3631c600d54f2d0e2b8d5abc1ce93ce1d466da10981a0bc02577730a8717c1b42f3eec2f0c67260b4abe1e9f41ebdb52ed513
6
+ metadata.gz: f0cc4725337f8f7fad9a2fec12cfbd7065cb5db7852989d34c305b5b1082ed403aa54775dedd66c8f755f3f23693fcd0d8a61003896cc2e836676be2a190666d
7
+ data.tar.gz: 4de8cd913912c9dc81ca9cffec56d8f365e56c1a8dbba3489c96a0825c5a69624c6a6fd2d2889c9a0102f9f16b20b97da46194b763ed1aeef1be53b4ec8d35cd
Binary file
@@ -62,7 +62,7 @@ module Tailwindcss
62
62
  "-o", Rails.root.join("app/assets/builds/tailwind.css").to_s,
63
63
  "-c", Rails.root.join("config/tailwind.config.js").to_s,
64
64
  ].tap do |command|
65
- command << "--minify" unless debug
65
+ command << "--minify" unless (debug || rails_css_compressor?)
66
66
  end
67
67
  end
68
68
 
@@ -72,6 +72,10 @@ module Tailwindcss
72
72
  command << "-p" if poll
73
73
  end
74
74
  end
75
+
76
+ def rails_css_compressor?
77
+ defined?(Rails) && Rails&.application&.config&.assets&.css_compressor.present?
78
+ end
75
79
  end
76
80
  end
77
81
  end
@@ -1,7 +1,7 @@
1
1
  module Tailwindcss
2
2
  # constants describing the upstream tailwindcss project
3
3
  module Upstream
4
- VERSION = "v3.2.6"
4
+ VERSION = "v3.2.7"
5
5
 
6
6
  # rubygems platform name => upstream release filename
7
7
  NATIVE_PLATFORMS = {
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.0.22"
2
+ VERSION = "2.0.24"
3
3
  end
data/lib/tasks/build.rake CHANGED
@@ -1,6 +1,6 @@
1
1
  namespace :tailwindcss do
2
2
  desc "Build your Tailwind CSS"
3
- task :build do |_, args|
3
+ task build: :environment do |_, args|
4
4
  debug = args.extras.include?("debug")
5
5
  command = Tailwindcss::Commands.compile_command(debug: debug)
6
6
  puts command.inspect if args.extras.include?("verbose")
@@ -8,7 +8,7 @@ namespace :tailwindcss do
8
8
  end
9
9
 
10
10
  desc "Watch and build your Tailwind CSS on file changes"
11
- task :watch do |_, args|
11
+ task watch: :environment do |_, args|
12
12
  debug = args.extras.include?("debug")
13
13
  poll = args.extras.include?("poll")
14
14
  command = Tailwindcss::Commands.watch_command(debug: debug, poll: poll)
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.22
4
+ version: 2.0.24
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-02-08 00:00:00.000000000 Z
11
+ date: 2023-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties