tailwindcss-rails 2.0.4-aarch64-linux → 2.0.5-aarch64-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: 218e68a2cda152be2c8189a03271a81d089b6cd25da13f4b7ab777aea95fd38a
4
- data.tar.gz: 2efc3afd46532e9ad4527482a7b8d010b7656f271ead413c3e62d7453fc7e92e
3
+ metadata.gz: 7f46ea3a0007012091fe6d7c4747960a13e603bc8a501049bf70668e60e55429
4
+ data.tar.gz: 1bcb8b94a437d64b4252fa6d6b70bed4b20105e899b0aa5f8beb77dd4abdf3db
5
5
  SHA512:
6
- metadata.gz: 6545caafd570de224cec4cbb7d28273608f216308a8e998a9875fac91bf617c5b226eebd62af69efe33d8d71a68b532682833a0e69ffc50dbc7a77120d92fdb2
7
- data.tar.gz: 5bef57dcc1dd56d3820a7b6a6223281c2ac2815f634cfce0f2263f3c7aa04a5790f71ee77d9cae2b16f09b23768e50fb2e58e1018e67f1c11d16bf5dd4e9d1f2
6
+ metadata.gz: 9cdb1e44f3109113979f0fe4aad179efa03e76454f38bdb8de17ce0a9ffb5d3388f32902d8e6bd1af398f259d6ec0e61ebd0c6a055ce91f6758729b4575f8bc5
7
+ data.tar.gz: db075229af790540f81f5874160c0200b73e797524519223c313d7f8d4bc6353961ec53ba7a62fd83dbd28913424b1181e03c12ffbcacb7a0f55ad4c5202db98
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
@@ -1,12 +1,14 @@
1
- APPLICATION_LAYOUT_PATH = Rails.root.join("app/views/layouts/application.html.erb")
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
- insert_into_file APPLICATION_LAYOUT_PATH.to_s, %( <main class="container mx-auto mt-28 px-5 flex">\n ), before: /^\s*<%= yield/
9
- insert_into_file APPLICATION_LAYOUT_PATH.to_s, %(\n </main>), after: /^\s*<%= yield %>/
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.)
@@ -10,8 +10,8 @@ module Tailwindcss
10
10
  Rails.application.config.generators.stylesheets = false
11
11
  end
12
12
 
13
- config.app_generators do |g|
14
- g.template_engine :tailwindcss
15
- end
13
+ config.app_generators do |g|
14
+ g.template_engine :tailwindcss
15
+ end
16
16
  end
17
17
  end
@@ -1,7 +1,7 @@
1
1
  module Tailwindcss
2
2
  # constants describing the upstream tailwindcss project
3
3
  module Upstream
4
- VERSION = "v3.0.8"
4
+ VERSION = "v3.0.15"
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.4"
2
+ VERSION = "2.0.5"
3
3
  end
data/lib/tasks/build.rake CHANGED
@@ -6,6 +6,7 @@ namespace :tailwindcss do
6
6
  system TAILWIND_COMPILE_COMMAND
7
7
  end
8
8
 
9
+ desc "Watch and build your Tailwind CSS on file changes"
9
10
  task :watch do
10
11
  system "#{TAILWIND_COMPILE_COMMAND} -w"
11
12
  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.4
4
+ version: 2.0.5
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties