tailwindcss-rails 2.4.1-x86_64-linux → 2.6.0-x86_64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -9
- data/lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt +5 -5
- data/lib/generators/tailwindcss/scaffold/templates/edit.html.erb.tt +2 -2
- data/lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt +8 -1
- data/lib/generators/tailwindcss/scaffold/templates/new.html.erb.tt +1 -1
- data/lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt +0 -5
- data/lib/generators/tailwindcss/scaffold/templates/show.html.erb.tt +3 -3
- data/lib/install/tailwind.config.js +0 -1
- data/lib/tailwindcss/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23c43099eef6cf77a8544e7170ebd41b4884eaf5bf5a487ecc1e9c2e9eba25d8
|
4
|
+
data.tar.gz: 69047909c65389cee98ab5e12eda48db74f26caf6f29f505410d5e1244723fa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d736ad50e0048c673025f60eb7c57d49e67ab83f7e5ce3246f7c356d7c7921606a6232abfc06548b5e4e54b3cfcf8f81b63427ad3fac8b79917e7b5ce4365bd
|
7
|
+
data.tar.gz: '08d8fff1bf0599095f8ddcd5c54c4de93da8d00300b6222a4cc200b24ec51b78d9e7609878abe72c5c7de20bfb40805b4e85958df5982b9837f6be3f0da8074b'
|
data/README.md
CHANGED
@@ -186,16 +186,9 @@ If you need to use a custom input or output file, you can run `bundle exec tailw
|
|
186
186
|
|
187
187
|
Some common problems experienced by users ...
|
188
188
|
|
189
|
-
### Lost keystrokes or hanging when using `ruby/debug
|
190
|
-
|
191
|
-
If you are using the `ruby/debug` debugger while using the Puma plugin from this gem, and you're experiencing what looks like hanging or lost keystrokes, then you'll need to disable Reline.
|
192
|
-
|
193
|
-
You can read the [`debug` documentation](https://github.com/ruby/debug?tab=readme-ov-file#configuration) for more information, but the easiest thing to do is to set the environment variable `RUBY_DEBUG_NO_RELINE`:
|
194
|
-
|
195
|
-
``` sh
|
196
|
-
RUBY_DEBUG_NO_RELINE=1 rails server
|
197
|
-
```
|
189
|
+
### Lost keystrokes or hanging when using terminal-based debugging tools (e.g. IRB, Pry, `ruby/debug`...etc.) with the Puma plugin
|
198
190
|
|
191
|
+
We've addressed the issue and you can avoid the problem by upgrading `tailwindcss-rails` to [v2.4.1](https://github.com/rails/tailwindcss-rails/releases/tag/v2.4.1) or later versions.
|
199
192
|
|
200
193
|
### Running in a docker container exits prematurely
|
201
194
|
|
@@ -15,23 +15,23 @@
|
|
15
15
|
<div class="my-5">
|
16
16
|
<% if attribute.password_digest? -%>
|
17
17
|
<%%= form.label :password %>
|
18
|
-
<%%= form.password_field :password, class: "block shadow rounded-md border border-gray-
|
18
|
+
<%%= form.password_field :password, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
|
19
19
|
</div>
|
20
20
|
|
21
21
|
<div class="my-5">
|
22
22
|
<%%= form.label :password_confirmation %>
|
23
|
-
<%%= form.password_field :password_confirmation, class: "block shadow rounded-md border border-gray-
|
23
|
+
<%%= form.password_field :password_confirmation, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
|
24
24
|
<% elsif attribute.attachments? -%>
|
25
25
|
<%%= form.label :<%= attribute.column_name %> %>
|
26
|
-
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, multiple: true, class: "block shadow rounded-md border border-gray-
|
26
|
+
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, multiple: true, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
|
27
27
|
<% else -%>
|
28
28
|
<%%= form.label :<%= attribute.column_name %> %>
|
29
29
|
<% if attribute.field_type == :text_area -%>
|
30
|
-
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, rows: 4, class: "block shadow rounded-md border border-gray-
|
30
|
+
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
|
31
31
|
<% elsif attribute.field_type == :check_box -%>
|
32
32
|
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block mt-2 h-5 w-5" %>
|
33
33
|
<% else -%>
|
34
|
-
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block shadow rounded-md border border-gray-
|
34
|
+
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
|
35
35
|
<% end -%>
|
36
36
|
<% end -%>
|
37
37
|
</div>
|
@@ -3,6 +3,6 @@
|
|
3
3
|
|
4
4
|
<%%= render "form", <%= singular_table_name %>: @<%= singular_table_name %> %>
|
5
5
|
|
6
|
-
<%%= link_to "Show this <%= human_name.downcase %>",
|
7
|
-
<%%= link_to "Back to <%= human_name.pluralize.downcase %>", <%= index_helper
|
6
|
+
<%%= link_to "Show this <%= human_name.downcase %>", <%= model_resource_name(prefix: "@") %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
7
|
+
<%%= link_to "Back to <%= human_name.pluralize.downcase %>", <%= index_helper(type: :path) %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
8
8
|
</div>
|
@@ -3,12 +3,19 @@
|
|
3
3
|
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%%= notice %></p>
|
4
4
|
<%% end %>
|
5
5
|
|
6
|
+
<%% content_for :title, "<%= human_name.pluralize %>" %>
|
7
|
+
|
6
8
|
<div class="flex justify-between items-center">
|
7
9
|
<h1 class="font-bold text-4xl"><%= human_name.pluralize %></h1>
|
8
10
|
<%%= link_to "New <%= human_name.downcase %>", new_<%= singular_route_name %>_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
|
9
11
|
</div>
|
10
12
|
|
11
13
|
<div id="<%= plural_table_name %>" class="min-w-full">
|
12
|
-
|
14
|
+
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
|
15
|
+
<%%= render <%= singular_table_name %> %>
|
16
|
+
<p>
|
17
|
+
<%%= link_to "Show this <%= human_name.downcase %>", <%= model_resource_name(singular_table_name) %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
18
|
+
</p>
|
19
|
+
<%% end %>
|
13
20
|
</div>
|
14
21
|
</div>
|
@@ -3,5 +3,5 @@
|
|
3
3
|
|
4
4
|
<%%= render "form", <%= singular_table_name %>: @<%= singular_table_name %> %>
|
5
5
|
|
6
|
-
<%%= link_to "Back to <%= human_name.pluralize.downcase %>", <%= index_helper
|
6
|
+
<%%= link_to "Back to <%= human_name.pluralize.downcase %>", <%= index_helper(type: :path) %>, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
7
7
|
</div>
|
@@ -14,9 +14,4 @@
|
|
14
14
|
</p>
|
15
15
|
|
16
16
|
<% end -%>
|
17
|
-
<%% if action_name != "show" %>
|
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
|
-
<hr class="mt-6">
|
21
|
-
<%% end %>
|
22
17
|
</div>
|
@@ -6,10 +6,10 @@
|
|
6
6
|
|
7
7
|
<%%= render @<%= singular_table_name %> %>
|
8
8
|
|
9
|
-
<%%= link_to "Edit this <%=
|
9
|
+
<%%= link_to "Edit this <%= human_name.downcase %>", <%= edit_helper(type: :path) %>, class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
10
|
+
<%%= link_to "Back to <%= human_name.pluralize.downcase %>", <%= index_helper %>_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
10
11
|
<div class="inline-block ml-2">
|
11
|
-
<%%= button_to "Destroy this <%=
|
12
|
+
<%%= button_to "Destroy this <%= human_name.downcase %>", <%= model_resource_name(prefix: "@") %>, method: :delete, class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium" %>
|
12
13
|
</div>
|
13
|
-
<%%= link_to "Back to <%= plural_table_name %>", <%= index_helper %>_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
14
14
|
</div>
|
15
15
|
</div>
|
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: 2.
|
4
|
+
version: 2.6.0
|
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: 2024-04
|
11
|
+
date: 2024-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 7.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 7.0.0
|
27
27
|
force_ruby_platform: false
|
28
28
|
description:
|
29
29
|
email: david@loudthinking.com
|