tailwindcss-rails 2.0.7-x86_64-darwin → 2.0.8-x86_64-darwin

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: 5ec1e475cd790ad17d0fe0c59ab1f3488a9a47749129ee4e8539e3790e07418a
4
- data.tar.gz: a4b12811f514920313b310007e8af24f7c72c8b04727be2b80d75acd4c46f2f4
3
+ metadata.gz: 50b30ba028e2a08e7dda401966f0932f776d0887017044bceef6c98166f87604
4
+ data.tar.gz: 8aa6856991869e956e5edfd3d1560a6b5be29b8d721620620856cbb5f8f8bbd9
5
5
  SHA512:
6
- metadata.gz: 4f2eb0b7a1fcb55b05f1b2df56cb8eb773b87136e816c61fc39c4d8dca9eac0f9dd49fc72cee52aa5caa81d9478a9e3be95f3e850eca021a6c7092fccd31ac73
7
- data.tar.gz: 93c1e6e7f408a77d20108548242e5c073246cc596729725978dfcd74dbf37558c8c0df9dc31642f36a12f3f7173874f12ce81e704a0225cc2741fec5695e54f3
6
+ metadata.gz: 527e5bf8a30f43d801b8219b60c80ffa3bd699f15537285bf8e265875abdaf8b83834f370bfd765249b01f3924fd7a02d636ed4d3807208422e599611659811a
7
+ data.tar.gz: 62874a77c08280c4488bb0dfa299aaa11346900e822d7f30d15c47f14437cdeb8be3a465945285c9669a10fe44dd32aa243ce3c56f57786b63b0fddbeb606fa8
data/README.md CHANGED
@@ -93,6 +93,27 @@ A fix for this has been proposed upstream at https://github.com/tailwindlabs/tai
93
93
  apk add build-base gcompat
94
94
  ```
95
95
 
96
+ ### Using asset-pipeline assets
97
+
98
+ In Rails, you want to use [assets from the asset pipeline to get fingerprinting](https://guides.rubyonrails.org/asset_pipeline.html#what-is-fingerprinting-and-why-should-i-care-questionmark). However, Tailwind isn't aware of those assets. To use assets from the pipeline, use `url(image.svg)`. [Since Sprockets v3.3.0](https://github.com/rails/sprockets-rails/pull/476) `url(image.svg)` will then automatically be rewritten to `/path/to/assets/image-7801e7538c6f1cc57aa75a5876ab0cac.svg`. So the output CSS will have the correct path to those assets.
99
+
100
+ ```js
101
+ module.exports = {
102
+ theme: {
103
+ extend: {
104
+ backgroundImage: {
105
+ 'image': "url('image.svg')"
106
+ }
107
+ }
108
+ }
109
+ }
110
+ ```
111
+
112
+ The inline version also works:
113
+
114
+ ```html
115
+ <section class="bg-[url('image.svg')]">Has the image as it's background</section>
116
+ ```
96
117
 
97
118
  ## License
98
119
 
Binary file
@@ -4,7 +4,7 @@ module.exports = {
4
4
  content: [
5
5
  './app/helpers/**/*.rb',
6
6
  './app/javascript/**/*.js',
7
- './app/views/**/*'
7
+ './app/views/**/*.{erb,haml,html,slim}'
8
8
  ],
9
9
  theme: {
10
10
  extend: {
@@ -1,7 +1,7 @@
1
1
  module Tailwindcss
2
2
  # constants describing the upstream tailwindcss project
3
3
  module Upstream
4
- VERSION = "v3.0.22"
4
+ VERSION = "v3.0.23"
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.7"
2
+ VERSION = "2.0.8"
3
3
  end
data/lib/tasks/build.rake CHANGED
@@ -1,4 +1,4 @@
1
- TAILWIND_COMPILE_COMMAND = "#{Pathname.new(__dir__).to_s}/../../exe/tailwindcss -i #{Rails.root.join("app/assets/stylesheets/application.tailwind.css")} -o #{Rails.root.join("app/assets/builds/tailwind.css")} -c #{Rails.root.join("config/tailwind.config.js")} --minify"
1
+ TAILWIND_COMPILE_COMMAND = "#{RbConfig.ruby} #{Pathname.new(__dir__).to_s}/../../exe/tailwindcss -i #{Rails.root.join("app/assets/stylesheets/application.tailwind.css")} -o #{Rails.root.join("app/assets/builds/tailwind.css")} -c #{Rails.root.join("config/tailwind.config.js")} --minify"
2
2
 
3
3
  namespace :tailwindcss do
4
4
  desc "Build your Tailwind CSS"
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.7
4
+ version: 2.0.8
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-22 00:00:00.000000000 Z
11
+ date: 2022-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 6.0.0
27
- description:
27
+ description:
28
28
  email: david@loudthinking.com
29
29
  executables:
30
30
  - tailwindcss
@@ -84,7 +84,7 @@ licenses:
84
84
  metadata:
85
85
  homepage_uri: https://github.com/rails/tailwindcss-rails
86
86
  rubygems_mfa_required: 'true'
87
- post_install_message:
87
+ post_install_message:
88
88
  rdoc_options: []
89
89
  require_paths:
90
90
  - lib
@@ -99,8 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.2.32
103
- signing_key:
102
+ rubygems_version: 3.1.4
103
+ signing_key:
104
104
  specification_version: 4
105
105
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.
106
106
  test_files: []