tailwindcss-rails 2.0.22-aarch64-linux → 2.0.24-aarch64-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: 908fd6c23b9167d5092452bfe814694e370217a7b2bbd197c989dababbd67af3
4
- data.tar.gz: e136a1779b27654ab8bc2a11a64156ddd210964c744d264a8cccd343dfbc9232
3
+ metadata.gz: fff6468f77a4b539dfffa2e8eef85ec97098a6ad6aa0b0178d02b8b8ff51dc3a
4
+ data.tar.gz: 429ffdf006d73565f80c1228405dedb1461b9f9852872c5dd55779ee97f28edd
5
5
  SHA512:
6
- metadata.gz: 190ec84c6a30d740a8d11e21c884082a88230756e51cb599208519bac6c521cb29ca6ceaa3960bfd42f80c01894473da8daecc94de20cd8144544292a585dfe1
7
- data.tar.gz: e2e480dc300f5a81cf6e62c66afbf61db12ea60b59df4db02abc2958accffdd6d88a331ba264e8b601301ed33dec65263db4c7f45fa9f3cbecc79cc633161897
6
+ metadata.gz: a71d5a26519e94b4f61f3205bf7066421046603125a76d7d5916814f56c49f24e732cadd357fd48ad03a904139da4479bb92727aa38736a79dc41ca33769a588
7
+ data.tar.gz: 92fac95a063f0a937721b4e7a8ca98535b49ae0cdb909a65dcc6ad66c0a571ef8bbaefceb03588e69c8b2184dd9c80f0b8b17f014ca0eead20243b373895e6bf
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: aarch64-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