avo 3.26.3 → 3.26.4

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: b364a3e09c4c019f21d8c5ac5f9bafd1b87bca5d7ec99ef17e52af249a08158f
4
- data.tar.gz: e64f37b27b5c5bf882b4b13728236c66dc13790171450741f7accf20193a67f1
3
+ metadata.gz: 7af5dac7b74f57129e7b45d83400f6147f3d85ac32a6438ddc1479419bdc83bd
4
+ data.tar.gz: bdbe0abc17a2accffe9e8cb655e3454f01cf03964b8f97b1bb2d80b1067755be
5
5
  SHA512:
6
- metadata.gz: 3017ef0058d7e3c191ad79c2fdb402206f26a55ef85ec9033ffbc99aaee70af0c5840bb5a67bda5405e216c74b00feca696fff3e5c7fdb5dd8d0336d583553e8
7
- data.tar.gz: b1ee6ef8b1744c5d5ab4e708d946a4412a29445576d8884dc2051c96ca68d85aee99f6037b4565cab7499511760a6a4c269c36f749b608e570b0426c6aa51ac7
6
+ metadata.gz: e2472aee4f8e46f91c62f035513f6ac50256c59bf9925b1bc38625095f6e9fd8990edceb7469fcd1f44501a537e08fa464c8b2616715128150ca3e4e8f388eb7
7
+ data.tar.gz: 7989c3146bd724b7ee3d450c4a4149fc18662bd21a774436f04899c74b7079a7bfa1eda3bc8fd6598ad3af6147cd1c1dd9001a8b542c4b603b9a730052676e29
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (3.26.3)
4
+ avo (3.26.4)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -65,6 +65,7 @@ class Avo::Services::DebugService
65
65
  main_menu_present: Avo.configuration.main_menu.present?,
66
66
  profile_menu_present: Avo.configuration.profile_menu.present?,
67
67
  cache_store: Avo.cache_store&.class&.to_s,
68
+ cache_operational: cache_operational?,
68
69
  **config_metadata
69
70
  }
70
71
  rescue => error
@@ -74,6 +75,15 @@ class Avo::Services::DebugService
74
75
  }
75
76
  end
76
77
 
78
+ def cache_operational?
79
+ Avo.cache_store.write("avo-test-cache", "test_value")
80
+ operational = Avo.cache_store.read("avo-test-cache") == "test_value"
81
+ Avo.cache_store.delete("avo-test-cache")
82
+ operational
83
+ rescue => error
84
+ "error: #{error.message}"
85
+ end
86
+
77
87
  def other_metadata(type = :actions, resources: [])
78
88
  types = resources.map(&:"get_#{type}")
79
89
  type_count = types.flatten.uniq.count
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.26.3" unless const_defined?(:VERSION)
2
+ VERSION = "3.26.4" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.26.3
4
+ version: 3.26.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin