tailwindcss-rails 4.2.0 → 4.2.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cde0f5138ce94e7f0950609937b8b587544fbe6bf20ef99832a06b2f281594a9
|
4
|
+
data.tar.gz: 5310351386db63343b7071bdef2e2b41576e9263e1bf10fb16ba9720f0711ea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864d2d89ffd939532d267041cdf5dcf47fa835148631fd9104227a23d2cc1823a1285cd265d06f2819d8da7bec92347b6116a00cc1e372425c5175a67cfe9bee
|
7
|
+
data.tar.gz: c34e1c243f687fa334c4915284faf634f5e7492d87fc87809a37002febf2bd3d10a785d01eae26b5801c1ec63e97625d4ebb72dfee410bec6676dd210730b436
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<%%= form.password_field :password_confirmation, class: ["block shadow-sm rounded-md border px-3 py-2 mt-2 w-full", {"border-gray-400 focus:outline-blue-600": <%= model_resource_name %>.errors[:password_confirmation].none?, "border-red-400 focus:outline-red-600": <%= model_resource_name %>.errors[:password_confirmation].any?}] %>
|
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-sm rounded-md border px-3 py-2 mt-2 w-full", {"border-gray-400 focus:outline-blue-600": <%= model_resource_name %>.errors[
|
26
|
+
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, multiple: true, class: ["block shadow-sm rounded-md border px-3 py-2 mt-2 w-full", {"border-gray-400 focus:outline-blue-600": <%= model_resource_name %>.errors[:<%= attribute.column_name %>].none?, "border-red-400 focus:outline-red-600": <%= model_resource_name %>.errors[:<%= attribute.column_name %>].any?}] %>
|
27
27
|
<% else -%>
|
28
28
|
<%%= form.label :<%= attribute.column_name %> %>
|
29
29
|
<% if attribute.field_type == :textarea || attribute.field_type == :text_area -%>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require "rails/generators/test_unit/scaffold/scaffold_generator"
|
2
|
+
|
3
|
+
module TestUnit # :nodoc:
|
4
|
+
module Generators # :nodoc:
|
5
|
+
class ScaffoldGenerator < Base # :nodoc:
|
6
|
+
def fix_system_test
|
7
|
+
if turbo_defined?
|
8
|
+
gsub_file File.join("test/system", class_path, "#{file_name.pluralize}_test.rb"),
|
9
|
+
/(click_on.*Destroy this.*)$/,
|
10
|
+
"accept_confirm { \\1 }"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def turbo_defined?
|
17
|
+
defined?(Turbo)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/tailwindcss/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tailwindcss-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-19 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: railties
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- lib/generators/tailwindcss/scaffold/templates/new.html.erb.tt
|
64
64
|
- lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
|
65
65
|
- lib/generators/tailwindcss/scaffold/templates/show.html.erb.tt
|
66
|
+
- lib/generators/test_unit/scaffold/scaffold_generator.rb
|
66
67
|
- lib/install/Procfile.dev
|
67
68
|
- lib/install/application.css
|
68
69
|
- lib/install/dev
|