tailwindcss-rails 2.0.30-x64-mingw-ucrt → 2.0.31-x64-mingw-ucrt

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: 1a3ba643d59e568acd3c9227bc10cb46adfd70a1f13b670f32c437ca32d143c6
4
- data.tar.gz: e39bd382313d27c5c6cc2a2bd4d5b9b67bb09f9b9046c4816787e7637d224e6f
3
+ metadata.gz: 0a5955301930679b4a6d1704a11adc5c261d962121f79483528d30acfb5ccc33
4
+ data.tar.gz: d78c2d8191e376d416bcdc8517d0e0582835e9a5947bd827181cb5396f37851e
5
5
  SHA512:
6
- metadata.gz: 52809baa46fa4ad0611f5bc0975d0a99dff75521551f06e7da5ede03da9ec371191651fc3286db796ec0951ea91e3c6ba1a22e458570b8ef6823e647befac224
7
- data.tar.gz: c541f255b3c2a3eb45a6441a7597937dfe533ced43a5bddf2d5c6dc32c32eceb389c2a8ee3d3e6d7f525f8a9560f2945bdabaf825ee297f30d09dc641e02a30f
6
+ metadata.gz: ade8f589bb194fae6d02cc45f9c91268b677fc86fa2d122f7afd416d36e2418662622a70ae00c3b2a7c8c5cba9facc799e0e6acfe8d87ff06b64e514a045a178
7
+ data.tar.gz: b12b8d3db0437a277f5c0a6a159a2d00f5874ab2897c1165ce8577eee039dc2675752d6f246480872b6d8cf2262ad6050ab07c1d077c2151f5073495b24a13bb
data/README.md CHANGED
@@ -55,13 +55,8 @@ The `tailwindcss:build` is automatically attached to `assets:precompile`, so bef
55
55
 
56
56
  ### Building for testing
57
57
 
58
- 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.
58
+ The `tailwindcss:build` task is automatically attached to the `test:prepare` Rake task. This task runs before test commands. If you run `bin/rails test` in your CI environment, your Tailwind output will be generated before tests run.
59
59
 
60
- If your tests need Tailwind assets in your CI environment, it's best to be explicit and run this command:
61
-
62
- ```
63
- bin/rails test:prepare test
64
- ```
65
60
 
66
61
  ### Update assets automatically
67
62
 
@@ -1,4 +1,4 @@
1
- require 'rails/generators/erb/scaffold/scaffold_generator'
1
+ require "rails/generators/erb/scaffold/scaffold_generator"
2
2
  require "rails/generators/resource_helpers"
3
3
 
4
4
  module Tailwindcss
@@ -5,7 +5,7 @@
5
5
 
6
6
  <div class="flex justify-between items-center">
7
7
  <h1 class="font-bold text-4xl"><%= human_name.pluralize %></h1>
8
- <%%= 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" %>
8
+ <%%= 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
9
  </div>
10
10
 
11
11
  <div id="<%= plural_table_name %>" class="min-w-full">
@@ -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 %>_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
6
+ <%%= 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" %>
7
7
  </div>
@@ -16,7 +16,7 @@
16
16
  <% end -%>
17
17
  <%% if action_name != "show" %>
18
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" %>
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>
@@ -6,10 +6,10 @@
6
6
 
7
7
  <%%= render @<%= singular_table_name %> %>
8
8
 
9
- <%%= link_to 'Edit this <%= singular_table_name %>', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
9
+ <%%= link_to "Edit this <%= singular_table_name %>", edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
10
10
  <div class="inline-block ml-2">
11
- <%%= button_to 'Destroy this <%= singular_table_name %>', <%= singular_table_name %>_path(@<%= singular_table_name %>), method: :delete, class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium" %>
11
+ <%%= button_to "Destroy this <%= singular_table_name %>", <%= singular_table_name %>_path(@<%= singular_table_name %>), method: :delete, class: "mt-2 rounded-lg py-3 px-5 bg-gray-100 font-medium" %>
12
12
  </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" %>
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>
@@ -1,2 +1,2 @@
1
- web: bin/rails server -p 3000
1
+ web: env RUBY_DEBUG_OPEN=true bin/rails server -p 3000
2
2
  css: bin/rails tailwindcss:watch
@@ -3,6 +3,7 @@ require_relative "upstream"
3
3
  module Tailwindcss
4
4
  module Commands
5
5
  DEFAULT_DIR = File.expand_path(File.join(__dir__, "..", "..", "exe"))
6
+ GEM_NAME = "tailwindcss-rails"
6
7
 
7
8
  # raised when the host platform is not supported by upstream tailwindcss's binary releases
8
9
  class UnsupportedPlatformException < StandardError
@@ -34,7 +35,7 @@ module Tailwindcss
34
35
  MESSAGE
35
36
  end
36
37
  else
37
- if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match(Gem::Platform.new(p)) }
38
+ if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match_gem?(Gem::Platform.new(p), GEM_NAME) }
38
39
  raise UnsupportedPlatformException, <<~MESSAGE
39
40
  tailwindcss-rails does not support the #{platform} platform
40
41
  Please install tailwindcss following instructions at https://tailwindcss.com/docs/installation
@@ -42,7 +43,7 @@ module Tailwindcss
42
43
  end
43
44
 
44
45
  exe_file = Dir.glob(File.expand_path(File.join(exe_path, "*", "tailwindcss"))).find do |f|
45
- Gem::Platform.match(Gem::Platform.new(File.basename(File.dirname(f))))
46
+ Gem::Platform.match_gem?(Gem::Platform.new(File.basename(File.dirname(f))), GEM_NAME)
46
47
  end
47
48
  end
48
49
 
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.0.30"
2
+ VERSION = "2.0.31"
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: 2.0.30
4
+ version: 2.0.31
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-13 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.4.10
104
+ rubygems_version: 3.4.19
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.