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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61cead693d033e84c3b7f5367a88777d36c821fcb0a9e8ed442015e0021fe40e
4
- data.tar.gz: 6750abe0c4bc739c3f7b7ec74e0fe049294791745056dd5481cc0aefd811bf10
3
+ metadata.gz: 86a4d1b71b49fe43cbf31edeec89985a044138f0dca6fee3666c7376bc696622
4
+ data.tar.gz: 8f58cf3a843bd4c3a34e99575e5091bef642c6234d006ba609058dd3646ed8a0
5
5
  SHA512:
6
- metadata.gz: 8fb84c2558c46f4d0cc47a662c3391b4be5d812c9c806dcbb15ea01e00ae05323ed237b55ea3fb588d986745134e5ea928e5b8a510d336eef1a702e528c32627
7
- data.tar.gz: f71ac2393b9cc53223c218e11671b9b47a55ccbe092907e449dbeadebdba19729fb6573e6ddf6520fb1f3aa40822014df068291febe84f19df7150af52bc5512
6
+ metadata.gz: 6e5c49ecf355c69675c1d39421f063211bc4a4002923325240690978ff4404d0dea2a4d5a2c43d4db1d2123af4543346bad9fd0311884890503f7961134d58c2
7
+ data.tar.gz: ea10c6212e3d8cd0cbbd9f87a94136a35f45c490e367cde36ccaab2c03118b9a8f4b209e4e7cd916fa203d94a3b6cf0674f56407d3a34f6485d4c11947ee0028
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (4.0.10)
4
+ avo (4.0.11)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "4.0.10" unless const_defined?(:VERSION)
2
+ VERSION = "4.0.11" unless const_defined?(:VERSION)
3
3
  end
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.10
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: 2026-07-08 00:00:00.000000000 Z
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: 3.5.22
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: []