tailwindcss-rails 2.0.23-aarch64-linux → 2.0.25-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: 8cff070a67a66db51e5890be8bc7f3006891110a06ed43d05aa66882be578442
4
- data.tar.gz: 4868a9da8438fbb74976624c4db31d8e07b8cbe325f6731314d9f8282d4771c6
3
+ metadata.gz: f5ab9b2921d2f9edacb3efc58f950d1b3498e39ceea3025b6b60171524c146e9
4
+ data.tar.gz: 4812456b117b75912c48bebee9dbdb3b0827031709e85a3fd9a4a8b0b4fe5a98
5
5
  SHA512:
6
- metadata.gz: 61497fa9c17e274e783c771fdaceb13171e49340151cdd494cd6536a8098f1fb8dad694f846da114cdc87a1c1b57d4900df222aa2fe7f82968fa736b3ad6b73b
7
- data.tar.gz: de0d6e21fb37637e54883dc2861fb7411b49a5d4a5a810617fac40540634fbd2281126bfe28dd8c4025772334223318761a7c46fa8dcef79c681901f3f199ea5
6
+ metadata.gz: 4eed80e660fa5ca3cbe1110324ac463338732104c44765faf02e89287f3afe89722d741932455f27fcda08c7639df2261cacf9cb1d358c5f12327af8e9fd22df
7
+ data.tar.gz: 2964f833de6dce4e239b4a220c9ba05f29a312ce99cc9204008516efec2fc64405c7b4dfe10464725adc6390353b37510ca811973df1fdf8a78dc95c9b8b714f
@@ -18,5 +18,7 @@ module.exports = {
18
18
  require('@tailwindcss/forms'),
19
19
  require('@tailwindcss/aspect-ratio'),
20
20
  require('@tailwindcss/typography'),
21
+ require('@tailwindcss/line-clamp'),
22
+ require('@tailwindcss/container-queries'),
21
23
  ]
22
24
  }
@@ -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,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.0.23"
2
+ VERSION = "2.0.25"
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.23
4
+ version: 2.0.25
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-19 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -24,6 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 6.0.0
27
+ force_ruby_platform: false
27
28
  description:
28
29
  email: david@loudthinking.com
29
30
  executables:
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  - !ruby/object:Gem::Version
101
102
  version: '0'
102
103
  requirements: []
103
- rubygems_version: 3.4.1
104
+ rubygems_version: 3.4.6
104
105
  signing_key:
105
106
  specification_version: 4
106
107
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.