tailwindcss-rails 2.0.4-x86_64-linux → 2.0.5-x86_64-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: 0272df7ae0288f7c9c9b9d9c476ccb5ccfba8e32af5cb4a523f7fdf255db683b
4
- data.tar.gz: cc9de97af0a134445723beb87739d378b64b480634c2c6ae795d340829a05707
3
+ metadata.gz: 9d14cda7300e9e7bec7c026317d0fa5942ebde61c98174f0abd074b6443188ff
4
+ data.tar.gz: d075251a5c7b0a35e28cc1528409cce9853a092a6541475401afcfd4ba84234d
5
5
  SHA512:
6
- metadata.gz: ac186f95d9668604466d389cf35436339809f3f7128fb04d0e014cba81f4b200775e2b916fda315e129ec210be74d9bb499dafd85291cc17dc2d9a73f2ccd3a0
7
- data.tar.gz: 832b5f8ec6e4a376096fa300cebe05ac84cb53d33f3cf343ded18d2a85e455e571a5137b40260098301c4832b099cbf5c11b561fe531d2976de33bc495c16a0a
6
+ metadata.gz: cdfe5dd518c0f603d8721fdf6383fb81085632729d3d1ba154357119a490352df9c0f1526d90611a31aa60db38c06ca962715c7e4fa1c17f69c5c6c2239de01f
7
+ data.tar.gz: c21fd33e18a5ed69e331a9d7e43e015dc35de4b1bb8159c953372ee87f5450a391d0e205201cbadc1c2c2655cf42fbbe2fb78c6b2856a915cb315d5565cef802
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: x86_64-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