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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b9a393181af6d9379bbaa42ffd29eab2e9d6dce7bb2fd0236a62c75c4eea959
4
- data.tar.gz: 2bf317fe004792663272d86c9c6c21fb97d8251fe4961a8691d96e75a7cda3a1
3
+ metadata.gz: 19280c4f676908c3a3819db3bcdb348b1d89e9dd68f564e86c99919d9ca89bb1
4
+ data.tar.gz: 2d75756def5ae852f39aa0c4a071e4f2ff8ba13551eec23061e47a18ccdd9767
5
5
  SHA512:
6
- metadata.gz: 8d1a3969b3b2eda650d4fbefe207f3f265084b5701446ceb89f8fa7481bd2496e7bddd7dce686e2ee5f6ed43ed5fa3c40647fbbacfcbb361a61f5930c4761745
7
- data.tar.gz: 788b20a116e5960f7adb7f9a5ed0d57439fbd87c61e881c8cbdcfe23cd95446330cc55f609c91f015254ed47a3718b2a71bc5f33217d24815bbb0dbfff33fa97
6
+ metadata.gz: 3d1a3120bff3b14c7542afd84cab974c78b3b001080ff32c283c15c6cb587815e5c4b300a2fb444bee2842811f98d02974baa5f5de88848e1f8fbe5b39798198
7
+ data.tar.gz: c1b35bc72938e1e344566b7f89af998fdb1dd7df74e9f911888ce87b0fcaec79ffb5ce39a2e423d9000ef3599f272a6ff027e49015bb8aafefede11bdf9a95fd
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v2.2.16 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com */
2
2
 
3
3
  /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
4
4
 
@@ -1,4 +1,4 @@
1
1
  <div>
2
- <h1 class="text-xl font-bold"><%= class_name %>#<%= @action %></h1>
2
+ <h1 class="text-lg font-bold text-4xl"><%= class_name %>#<%= @action %></h1>
3
3
  <p>Find me in <%= @path %></p>
4
- <div>
4
+ </div>
@@ -0,0 +1,9 @@
1
+ require "rails/generators/erb/mailer/mailer_generator"
2
+
3
+ module Tailwindcss
4
+ module Generators
5
+ class MailerGenerator < Erb::Generators::MailerGenerator
6
+ source_root File.expand_path("../templates", __FILE__)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ <h1><%= class_name %>#<%= @action %></h1>
2
+
3
+ <p>
4
+ <%%= @greeting %>, find me in <%= @path %>
5
+ </p>
@@ -0,0 +1,3 @@
1
+ <%= class_name %>#<%= @action %>
2
+
3
+ <%%= @greeting %>, find me in <%= @path %>
@@ -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: Rails.root.glob("app/views/**/*.*") + Rails.root.glob("app/helpers/**/*.rb"),
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
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  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: 0.5.1
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-10-05 00:00:00.000000000 Z
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.1.4
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: []