tailwindcss-rails 2.0.4-x86_64-darwin → 2.0.5-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/exe/x86_64-darwin/tailwindcss +0 -0
- data/lib/install/tailwindcss.rb +5 -3
- data/lib/tailwindcss/engine.rb +3 -3
- data/lib/tailwindcss/upstream.rb +1 -1
- data/lib/tailwindcss/version.rb +1 -1
- data/lib/tasks/build.rake +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 722d91a3a931086c285c2c31c41f0e021ca6cc59640039fb250c27e1006afd98
|
4
|
+
data.tar.gz: 8373eff1b4ff2f1d0cf0c99a24cf93574448b23d1c57b7158f450393b337a9db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9271c19fc93df32db6e27bc819b21f47a0a1b5f0e2978bf5d136c2becbe02f32c717cb46b84a809a8a30156ff0e3aae28215df5a15aa91dbd21ac71ce13be9a6
|
7
|
+
data.tar.gz: a48cc63f1998430417e5c29983c7c707178ab0cb96acb26c7121543a16976c44b30d46d921f76a2ab5d67c350c834fd2687bf1814f7c75b1363b00ddcb417332
|
data/README.md
CHANGED
@@ -30,6 +30,9 @@ The `tailwindcss:build` is automatically attached to `assets:precompile`, so bef
|
|
30
30
|
|
31
31
|
Tailwind uses modern CSS features that are not recognized by the `sassc-rails` extension that was included by default in the Gemfile for Rails 6. In order to avoid any errors like `SassC::SyntaxError`, you must remove that gem from your Gemfile.
|
32
32
|
|
33
|
+
## Class names must be spelled out
|
34
|
+
|
35
|
+
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".
|
33
36
|
|
34
37
|
## Troubleshooting
|
35
38
|
|
Binary file
|
data/lib/install/tailwindcss.rb
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
APPLICATION_LAYOUT_PATH
|
1
|
+
APPLICATION_LAYOUT_PATH = Rails.root.join("app/views/layouts/application.html.erb")
|
2
|
+
CENTERING_CONTAINER_INSERTION_POINT = /^\s*<%= yield %>/.freeze
|
2
3
|
|
3
4
|
if APPLICATION_LAYOUT_PATH.exist?
|
4
5
|
say "Add Tailwindcss include tags and container element in application layout"
|
5
6
|
insert_into_file APPLICATION_LAYOUT_PATH.to_s, <<~ERB.indent(4), before: /^\s*<%= stylesheet_link_tag/
|
6
7
|
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
|
7
8
|
ERB
|
8
|
-
|
9
|
-
insert_into_file APPLICATION_LAYOUT_PATH.to_s, %(
|
9
|
+
|
10
|
+
insert_into_file APPLICATION_LAYOUT_PATH.to_s, %( <main class="container mx-auto mt-28 px-5 flex">\n ), before: CENTERING_CONTAINER_INSERTION_POINT
|
11
|
+
insert_into_file APPLICATION_LAYOUT_PATH.to_s, %(\n </main>), after: CENTERING_CONTAINER_INSERTION_POINT
|
10
12
|
else
|
11
13
|
say "Default application.html.erb is missing!", :red
|
12
14
|
say %( Add <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %> within the <head> tag in your custom layout.)
|
data/lib/tailwindcss/engine.rb
CHANGED
data/lib/tailwindcss/upstream.rb
CHANGED
data/lib/tailwindcss/version.rb
CHANGED
data/lib/tasks/build.rake
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.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|