tailwindcss-rails 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/tailwind.css +1 -1
- data/lib/generators/tailwindcss/controller/templates/view.html.erb.tt +2 -2
- data/lib/generators/tailwindcss/mailer/mailer_generator.rb +9 -0
- data/lib/generators/tailwindcss/mailer/templates/view.html.erb.tt +5 -0
- data/lib/generators/tailwindcss/mailer/templates/view.text.erb.tt +3 -0
- data/lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt +1 -1
- data/lib/tailwindcss/compressor.rb +9 -2
- data/lib/tailwindcss/version.rb +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19280c4f676908c3a3819db3bcdb348b1d89e9dd68f564e86c99919d9ca89bb1
|
4
|
+
data.tar.gz: 2d75756def5ae852f39aa0c4a071e4f2ff8ba13551eec23061e47a18ccdd9767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d1a3120bff3b14c7542afd84cab974c78b3b001080ff32c283c15c6cb587815e5c4b300a2fb444bee2842811f98d02974baa5f5de88848e1f8fbe5b39798198
|
7
|
+
data.tar.gz: c1b35bc72938e1e344566b7f89af998fdb1dd7df74e9f911888ce87b0fcaec79ffb5ce39a2e423d9000ef3599f272a6ff027e49015bb8aafefede11bdf9a95fd
|
@@ -38,6 +38,6 @@
|
|
38
38
|
|
39
39
|
<% end -%>
|
40
40
|
<div class="inline">
|
41
|
-
<%%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium" %>
|
41
|
+
<%%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
|
42
42
|
</div>
|
43
43
|
<%% end %>
|
@@ -10,8 +10,8 @@ class Tailwindcss::Compressor
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def initialize(options = {})
|
13
|
-
@options = {
|
14
|
-
files_with_class_names:
|
13
|
+
@options = {
|
14
|
+
files_with_class_names: files_with_class_names,
|
15
15
|
only_purge: %w[ tailwind ]
|
16
16
|
}.merge(options).freeze
|
17
17
|
end
|
@@ -23,4 +23,11 @@ class Tailwindcss::Compressor
|
|
23
23
|
input[:data]
|
24
24
|
end
|
25
25
|
end
|
26
|
+
|
27
|
+
private
|
28
|
+
def files_with_class_names
|
29
|
+
Rails.root.glob("app/views/**/*.*") +
|
30
|
+
Rails.root.glob("app/helpers/**/*.rb") +
|
31
|
+
Rails.root.glob("app/javascript/**/*.js")
|
32
|
+
end
|
26
33
|
end
|
data/lib/tailwindcss/version.rb
CHANGED
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: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 6.0.0
|
27
|
-
description:
|
27
|
+
description:
|
28
28
|
email: david@loudthinking.com
|
29
29
|
executables: []
|
30
30
|
extensions: []
|
@@ -53,6 +53,9 @@ files:
|
|
53
53
|
- app/assets/stylesheets/tailwind.css
|
54
54
|
- lib/generators/tailwindcss/controller/controller_generator.rb
|
55
55
|
- lib/generators/tailwindcss/controller/templates/view.html.erb.tt
|
56
|
+
- lib/generators/tailwindcss/mailer/mailer_generator.rb
|
57
|
+
- lib/generators/tailwindcss/mailer/templates/view.html.erb.tt
|
58
|
+
- lib/generators/tailwindcss/mailer/templates/view.text.erb.tt
|
56
59
|
- lib/generators/tailwindcss/scaffold/scaffold_generator.rb
|
57
60
|
- lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt
|
58
61
|
- lib/generators/tailwindcss/scaffold/templates/edit.html.erb.tt
|
@@ -72,7 +75,7 @@ licenses:
|
|
72
75
|
- MIT
|
73
76
|
metadata:
|
74
77
|
homepage_uri: https://github.com/rails/tailwindcss-rails
|
75
|
-
post_install_message:
|
78
|
+
post_install_message:
|
76
79
|
rdoc_options: []
|
77
80
|
require_paths:
|
78
81
|
- lib
|
@@ -87,8 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
90
|
- !ruby/object:Gem::Version
|
88
91
|
version: '0'
|
89
92
|
requirements: []
|
90
|
-
rubygems_version: 3.
|
91
|
-
signing_key:
|
93
|
+
rubygems_version: 3.2.22
|
94
|
+
signing_key:
|
92
95
|
specification_version: 4
|
93
96
|
summary: Integrate Tailwind CSS with the asset pipeline in Rails.
|
94
97
|
test_files: []
|