tailwindcss-rails 0.4.2 → 0.4.3

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: 7f354ae7802c5744ba28ece4ee53ca032f49b0b38fa97376f6ab910a3ba33744
4
- data.tar.gz: e69831fa1b30f18c1eb11758966dbe52c057e745e8d47b82c890afe62f628535
3
+ metadata.gz: 73b1cabaaa59745231cc4bc9b2d2f15b163dd3cb4b0ebe3346c808c4002522ec
4
+ data.tar.gz: 8227a52b5d070dcd8db963d6dce82268c173ab90668214781c50e268c180efcf
5
5
  SHA512:
6
- metadata.gz: 33fdc4ca096f78935fc9ba17a884971fbf51e3e45ff439dfd09eb50c2c8b78e49a39fb55aae1d1fe7124817ce69f1fd9651b458616ddc08bda3a1ac12e8aec62
7
- data.tar.gz: a2052365bc20ef8fae2017cce0f9a4c6fa7ab94b95ca087e62b8d7051cee3632d51815e8db71fac0a2f9278130f72d3fbc8e6cf8b3ba2c75224eb1b758d02451
6
+ metadata.gz: 17e750664bd5a56bf40e3e2dc219f9b720b4e40d1b6bbd0865c07f4d2fe7b07f12dc00ded038316fd9d61fafe3ea64125bf6391fe5c19dd1b86f1cd62f7223e4
7
+ data.tar.gz: 6c0228acf4ecfec5ad37f838403f6d18ef2b9e326d464183599199cb1f999f1776215292441a808ee927185234b931f329d7dbcd25d0ab67bd2287627410535c
@@ -2,14 +2,16 @@ APPLICATION_LAYOUT_PATH = Rails.root.join("app/views/layouts/application.html.er
2
2
 
3
3
  if APPLICATION_LAYOUT_PATH.exist?
4
4
  say "Add Tailwindcss include tags in application layout"
5
- insert_into_file Rails.root.join("app/views/layouts/application.html.erb").to_s, %(\n <%= stylesheet_link_tag "inter-font" %>\n <%= stylesheet_link_tag "tailwind" %>), before: /^\s*<%= stylesheet_link_tag/
5
+ insert_into_file Rails.root.join("app/views/layouts/application.html.erb").to_s, %(\n <%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %>\n <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>), before: /^\s*<%= stylesheet_link_tag/
6
6
  else
7
7
  say "Default application.html.erb is missing!", :red
8
- say %( Add <%= stylesheet_link_tag "inter-font" %> and <%= stylesheet_link_tag "tailwind" %> within the <head> tag in your custom layout.)
8
+ say %( Add <%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %> and <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %> within the <head> tag in your custom layout.)
9
9
  end
10
10
 
11
- say "Removing scaffold styles"
12
- remove_file Rails.root.join("app/assets/stylesheets/scaffolds.scss")
11
+ # No longer included by default in Rails 7, but for earlier versions of Rails
12
+ if (scaffolds_css_path = Rails.root.join("app/assets/stylesheets/scaffolds.scss")).exist?
13
+ remove_file scaffolds_css_path
14
+ end
13
15
 
14
16
  say "Turn on purging of unused css classes in production"
15
17
  gsub_file Rails.root.join("config/environments/production.rb"), /^\s+#?\s+config.assets.css_compressor =.*$/, %( config.assets.css_compressor = :purger)
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
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: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-23 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails