jekyll-tailwindcss 0.6.1 → 0.6.2

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: 934ae629ba540f07564e748d1e7a45e5e5ef104c09bf7a0c131fca94aeb3699c
4
- data.tar.gz: 1473fe21e48527f534805e9d4f21d06ee7a43e44a758dd6469f8ead41f0af28d
3
+ metadata.gz: 3e1e29ca0abd9c5830429366d0552d685446274bda03e353ee6829e2bb946296
4
+ data.tar.gz: 1cd3dd8fd880efdb33118309492697061c624e046abd72cc5540e98db9bee90c
5
5
  SHA512:
6
- metadata.gz: 74f2d7d9bbf6d4650c6c956e86d6eaad3c21e10e31facc2a3b997654fe4b2562194bb405fe98f6071ef32759a19b91e21d680c9c42df47929d87ff08cd72c370
7
- data.tar.gz: 6fbf75793f33cd206fe7c3b29a02afed936a8d3d108d0374f5862decd9d7eb691c9a38e3d04aed41ddf8605cf0c77203822cfeb2ad849b1a74b00fe5ab87f0b5
6
+ metadata.gz: 58bfbab5c38628acc762375d3d6f8211ce6cb302b6803bbff3428f345efafe1e29f4087739dfc05fb855e65149c749c18b8206d3677015837fb2c159207cea5b
7
+ data.tar.gz: 67c4d4efafa86cc2972cc1db7e357cfdd65e14583ed5e27138a692e94a8f8af198555184e717db19e19046cae215f2680f04358e2182a64a6f6d1df75eebbf8a
data/README.md CHANGED
@@ -202,6 +202,7 @@ end
202
202
  - bump the version
203
203
  - [ ] update `lib/jekyll-tailwindcss/version.rb`
204
204
  - [ ] update `CHANGELOG.md`
205
+ - [ ] bundle install to pick up the new version
205
206
  - [ ] commit and create a git tag ( example `git tag -a v0.3.1 -m "Release 0.3.1"` )
206
207
  - push
207
208
  - [ ] `bundle exec rake build`
@@ -17,7 +17,7 @@ module Jekyll
17
17
 
18
18
  def convert(content)
19
19
  return content unless /@tailwind|@import ['"]tailwindcss/i.match?(content)
20
- if content.include?("@tailwind") && config_path.nil?
20
+ if config_path.nil? && tailwind_v3_syntax?(content)
21
21
  Jekyll.logger.error "Jekyll Tailwind:", "to use tailwind v3 you need to include a config path in _config.yml"
22
22
  return content
23
23
  end
@@ -46,6 +46,12 @@ module Jekyll
46
46
 
47
47
  private
48
48
 
49
+ def tailwind_v3_syntax?(content)
50
+ return false if content.include?("@plugin")
51
+
52
+ content.include?("@tailwind")
53
+ end
54
+
49
55
  def tailwindcss_env_options
50
56
  # Without this ENV you'll get a warning about `Browserslist: caniuse-lite is outdated`
51
57
  # Since we're using the CLI, we can't update the data, so we ignore it.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Tailwindcss
5
- VERSION = "0.6.1"
5
+ VERSION = "0.6.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-tailwindcss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Vormwald
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-14 00:00:00.000000000 Z
10
+ date: 2025-03-03 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: tailwindcss-ruby