tailwindcss-rails 2.0.7 → 2.0.8

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: 26db0c9f7dd007439815b49d4dcb966286647284098f53980d00a05bc933a11b
4
- data.tar.gz: 2854177d483f6579c82d087cfe343fd5dfbab5b7687203cd86793d09fd319192
3
+ metadata.gz: 455499b0b7fa6964424684bd84fddabb55a4a108b771e8d313426b8eed4206b1
4
+ data.tar.gz: ddc6b66aa707db1b31179253d5916bd76b9404b545f6078642b03c1f8b97ed80
5
5
  SHA512:
6
- metadata.gz: 94348d3c95d44858b98d81004260e92915aac909601706daef7a36b9350e19c41487fb2ad62410cf8f7a01f5afa520515a5d1b12b4755001f79830221e931eb2
7
- data.tar.gz: 9592d343b8a76ce42929864a89fd87e556ebbc2c87f0843607e3f07e0eb38e33a9525efb2cc5fe773c5dc5af6a14a11286d73fa054f85ce85ae7f29fae7e3dcc
6
+ metadata.gz: ae4eb4c8a4ab5081c92c7eb45865a8613a19c9510de0d95a3bfd6f4f2bfc7b20cf0ef9878b422687615aef6d9ddb7c3661f833308a0ff8b5d6753c494f5cf1d8
7
+ data.tar.gz: 0bfa67897290033712bb6c593f24c1d48d89a94708c897231e16a089ddb24e01e61a69693fdebcc2c6c3cd42f4c818111ede930643f4dbc819f48106cabffd87
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
 
@@ -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: ruby
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
@@ -82,7 +82,7 @@ licenses:
82
82
  metadata:
83
83
  homepage_uri: https://github.com/rails/tailwindcss-rails
84
84
  rubygems_mfa_required: 'true'
85
- post_install_message:
85
+ post_install_message:
86
86
  rdoc_options: []
87
87
  require_paths:
88
88
  - lib
@@ -97,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.2.32
101
- signing_key:
100
+ rubygems_version: 3.1.4
101
+ signing_key:
102
102
  specification_version: 4
103
103
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.
104
104
  test_files: []