tailwindcss-rails 2.0.6 → 2.0.7

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: f3079cc567f402bd4f9f38c53e20e40d75d63aadf5b64b05d7c97593d275049f
4
- data.tar.gz: f5a28d5e46a0d80d4f2d1909e38761f3e801b82e579970010a5cd6cf53cc1a6c
3
+ metadata.gz: 26db0c9f7dd007439815b49d4dcb966286647284098f53980d00a05bc933a11b
4
+ data.tar.gz: 2854177d483f6579c82d087cfe343fd5dfbab5b7687203cd86793d09fd319192
5
5
  SHA512:
6
- metadata.gz: 1b4146053ad12b5516c3689b2ce8100029dabb170ec382b50bffd0b8901e5203f3e7f43832f5b210860790b75f63f8de72217b58e6e81a54030ad1a0c526999b
7
- data.tar.gz: 8b5cef94fe6d2b19da9b526378abae42ddde2085e22c9fad2ef9df9bb5eb3a6e9fbb5e0e28c50cb8496249f8200b36f82a3e32067c09507f4f35fef861fd5aeb
6
+ metadata.gz: 94348d3c95d44858b98d81004260e92915aac909601706daef7a36b9350e19c41487fb2ad62410cf8f7a01f5afa520515a5d1b12b4755001f79830221e931eb2
7
+ data.tar.gz: 9592d343b8a76ce42929864a89fd87e556ebbc2c87f0843607e3f07e0eb38e33a9525efb2cc5fe773c5dc5af6a14a11286d73fa054f85ce85ae7f29fae7e3dcc
@@ -7,8 +7,10 @@ if APPLICATION_LAYOUT_PATH.exist?
7
7
  <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
8
8
  ERB
9
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
+ if File.open(APPLICATION_LAYOUT_PATH).read =~ /<body>\n\s*<%= yield %>\n\s*<\/body>/
11
+ insert_into_file APPLICATION_LAYOUT_PATH.to_s, %( <main class="container mx-auto mt-28 px-5 flex">\n ), before: CENTERING_CONTAINER_INSERTION_POINT
12
+ insert_into_file APPLICATION_LAYOUT_PATH.to_s, %(\n </main>), after: CENTERING_CONTAINER_INSERTION_POINT
13
+ end
12
14
  else
13
15
  say "Default application.html.erb is missing!", :red
14
16
  say %( Add <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %> within the <head> tag in your custom layout.)
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.7"
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.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-19 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -51,7 +51,6 @@ files:
51
51
  - app/assets/fonts/Inter-roman.symbols.var.woff2
52
52
  - app/assets/fonts/Inter-roman.vietnamese.var.woff2
53
53
  - app/assets/stylesheets/inter-font.css
54
- - app/assets/stylesheets/tailwind.css
55
54
  - exe/tailwindcss
56
55
  - lib/generators/tailwindcss/controller/controller_generator.rb
57
56
  - lib/generators/tailwindcss/controller/templates/view.html.erb.tt