avo 4.0.10 → 4.0.11
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/avo/tailwind_builder.rb +13 -1
- data/lib/avo/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86a4d1b71b49fe43cbf31edeec89985a044138f0dca6fee3666c7376bc696622
|
|
4
|
+
data.tar.gz: 8f58cf3a843bd4c3a34e99575e5091bef642c6234d006ba609058dd3646ed8a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e5c49ecf355c69675c1d39421f063211bc4a4002923325240690978ff4404d0dea2a4d5a2c43d4db1d2123af4543346bad9fd0311884890503f7961134d58c2
|
|
7
|
+
data.tar.gz: ea10c6212e3d8cd0cbbd9f87a94136a35f45c490e367cde36ccaab2c03118b9a8f4b209e4e7cd916fa203d94a3b6cf0674f56407d3a34f6485d4c11947ee0028
|
data/Gemfile.lock
CHANGED
data/lib/avo/tailwind_builder.rb
CHANGED
|
@@ -19,7 +19,19 @@ module Avo
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def self.enabled?
|
|
22
|
-
Avo.configuration.tailwindcss_integration_enabled && tailwindcss_available?
|
|
22
|
+
Avo.configuration.tailwindcss_integration_enabled && tailwindcss_available? && tailwindcss_rails_version_supported?
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# tailwindcss-rails depends on tailwindcss-ruby at every major version, so requiring
|
|
26
|
+
# "tailwindcss/ruby" succeeds even when the host app is pinned to tailwindcss-rails 3.x
|
|
27
|
+
# (Tailwind CSS v3). Avo's build pipeline emits Tailwind v4-only syntax, so we only enable
|
|
28
|
+
# the integration when tailwindcss-rails (if bundled at all) is >= 4.0.0. Apps that manage
|
|
29
|
+
# tailwindcss-ruby directly (no tailwindcss-rails) are unaffected by this check.
|
|
30
|
+
def self.tailwindcss_rails_version_supported?
|
|
31
|
+
spec = Gem.loaded_specs["tailwindcss-rails"]
|
|
32
|
+
return true unless spec
|
|
33
|
+
|
|
34
|
+
Gem::Version.new(spec.version) >= Gem::Version.new("4.0.0")
|
|
23
35
|
end
|
|
24
36
|
|
|
25
37
|
def build
|
data/lib/avo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: avo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrian Marin
|
|
8
8
|
- Mihai Marin
|
|
9
9
|
- Paul Bob
|
|
10
|
-
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date:
|
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: activerecord
|
|
@@ -1199,8 +1198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1199
1198
|
- !ruby/object:Gem::Version
|
|
1200
1199
|
version: '0'
|
|
1201
1200
|
requirements: []
|
|
1202
|
-
rubygems_version:
|
|
1203
|
-
signing_key:
|
|
1201
|
+
rubygems_version: 4.0.10
|
|
1204
1202
|
specification_version: 4
|
|
1205
1203
|
summary: Admin panel framework and Content Management System for Ruby on Rails.
|
|
1206
1204
|
test_files: []
|