tailwindcss-rails 2.0.21-x86_64-linux → 2.0.22-x86_64-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: 9b4ad32278835617735612a37114f564620c3cd690cf044c84e8ea1120b76336
4
- data.tar.gz: 061fab6866ab1958582d9fe5b96259c100c2f3878a9a4ec1ff54d26bc3268ffb
3
+ metadata.gz: 52ae8bd5e2fed073c9d1a34d1b448e21362bbdae89088d125c5e15086be6a436
4
+ data.tar.gz: 5c462df055b90b2d3738c3836f9c5a41fc8b36f804559b662ed6295922b33538
5
5
  SHA512:
6
- metadata.gz: 8b21aa58700365e4067db1131798a2951aeaeb4a55431926117044ce2da949aad8183d1b5654e006d2aad0f232542d1b65d89e1a645384888ea834453bf0e6ca
7
- data.tar.gz: b08437577a06b9f4eb0ba2819c5b2d702a212d3b39411b1b6c3ac4d750a262ad372af4bcdf1e2c8613eafede97d58ec3cc5f8dd46f8b869146a5d5918ae17d8a
6
+ metadata.gz: dbaffcf9ab111388d7d268798f4edaaf64ce2e41e7e7c9c8668d006c3f3df3c6c2c46e0d781cb09f5017e52f7158c9013ab1a8d7473d78b5d8744ed34294b217
7
+ data.tar.gz: 0c19d63839399e0fb64889dbe3db010042b6ef8f78bb8dcfbf0a150adfd890c619b3c25d48c823894b42475f538daaaf05b3a583f914612baa5f2d3620d77d0f
data/README.md CHANGED
@@ -28,8 +28,13 @@ The `tailwindcss:build` is automatically attached to `assets:precompile`, so bef
28
28
 
29
29
  ### Building for testing
30
30
 
31
- The `tailwindcss:build` is automatically attached to `test:prepare`, which runs before Rails tests. (Note that this currently only applies to rails `test:*` tasks (like `test:all` or `test:controllers`), not "rails test", as that doesn't load `test:prepare`).
31
+ The `tailwindcss:build` task is automatically attached to the `test:prepare` Rake task. The `test:prepare` task is run before some test tasks (e.g. `test:all` and `test:controllers`), but not before the bare `test` task.
32
32
 
33
+ If your tests need Tailwind assets in your CI environment, it's best to be explicit and run this command:
34
+
35
+ ```
36
+ bin/rails test:prepare test
37
+ ```
33
38
 
34
39
  ### Update assets automatically
35
40
 
@@ -65,7 +70,7 @@ Tailwind uses modern CSS features that are not recognized by the `sassc-rails` e
65
70
 
66
71
  ### Class names must be spelled out
67
72
 
68
- For Tailwind to work, your class names need to be spelled out. They can't be programmatically composed. So no "text-gray-#{grade}", only "text-gray-500".
73
+ For Tailwind to work, your class names need to be spelled out. If you need to make sure Tailwind generates class names that don't exist in your content files or that are programmatically composed, use the [safelist option](https://tailwindcss.com/docs/content-configuration#safelisting-classes).
69
74
 
70
75
  ### ERROR: Cannot find the tailwindcss executable for <supported platform>
71
76
 
Binary file
@@ -22,7 +22,7 @@ module Tailwindcss
22
22
  end
23
23
  end
24
24
 
25
- template "partial.html.erb", File.join("app/views", controller_file_path, "_#{singular_table_name}.html.erb")
25
+ template "partial.html.erb", File.join("app/views", controller_file_path, "_#{singular_name}.html.erb")
26
26
  end
27
27
 
28
28
  private
@@ -31,4 +31,4 @@ module Tailwindcss
31
31
  end
32
32
  end
33
33
  end
34
- end
34
+ end
@@ -1,22 +1,22 @@
1
- <div id="<%%= dom_id <%= singular_table_name %> %>">
1
+ <div id="<%%= dom_id <%= singular_name %> %>">
2
2
  <% attributes.reject(&:password_digest?).each do |attribute| -%>
3
3
  <p class="my-5">
4
4
  <strong class="block font-medium mb-1"><%= attribute.human_name %>:</strong>
5
5
  <% if attribute.attachment? -%>
6
- <%%= link_to <%= singular_table_name %>.<%= attribute.column_name %>.filename, <%= singular_table_name %>.<%= attribute.column_name %> if <%= singular_table_name %>.<%= attribute.column_name %>.attached? %>
6
+ <%%= link_to <%= singular_name %>.<%= attribute.column_name %>.filename, <%= singular_name %>.<%= attribute.column_name %> if <%= singular_name %>.<%= attribute.column_name %>.attached? %>
7
7
  <% elsif attribute.attachments? -%>
8
- <%% <%= singular_table_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %>
8
+ <%% <%= singular_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %>
9
9
  <div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div>
10
10
  <%% end %>
11
11
  <% else -%>
12
- <%%= <%= singular_table_name %>.<%= attribute.column_name %> %>
12
+ <%%= <%= singular_name %>.<%= attribute.column_name %> %>
13
13
  <% end -%>
14
14
  </p>
15
15
 
16
16
  <% end -%>
17
17
  <%% if action_name != "show" %>
18
- <%%= link_to "Show this <%= human_name.downcase %>", <%= singular_table_name %>, class: "rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
19
- <%%= link_to 'Edit this <%= human_name.downcase %>', edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
18
+ <%%= link_to "Show this <%= human_name.downcase %>", <%= singular_name %>, class: "rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
19
+ <%%= link_to 'Edit this <%= human_name.downcase %>', edit_<%= singular_name %>_path(<%= singular_name %>), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
20
20
  <hr class="mt-6">
21
21
  <%% end %>
22
22
  </div>
@@ -1,7 +1,7 @@
1
1
  module Tailwindcss
2
2
  # constants describing the upstream tailwindcss project
3
3
  module Upstream
4
- VERSION = "v3.2.4"
4
+ VERSION = "v3.2.6"
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.21"
2
+ VERSION = "2.0.22"
3
3
  end
data/lib/tasks/build.rake CHANGED
@@ -3,7 +3,7 @@ namespace :tailwindcss do
3
3
  task :build do |_, args|
4
4
  debug = args.extras.include?("debug")
5
5
  command = Tailwindcss::Commands.compile_command(debug: debug)
6
- puts command.inspect
6
+ puts command.inspect if args.extras.include?("verbose")
7
7
  system(*command, exception: true)
8
8
  end
9
9
 
@@ -12,7 +12,7 @@ namespace :tailwindcss do
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)
15
- puts command.inspect
15
+ puts command.inspect if args.extras.include?("verbose")
16
16
  system(*command)
17
17
  end
18
18
  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: 2.0.21
4
+ version: 2.0.22
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-11 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 3.3.7
103
+ rubygems_version: 3.4.1
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.