rails_error_dashboard 0.1.11 → 0.1.12
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ac52a24732693d33836e77ad12079dff702b0349edb5420de15b5be2f5f3459
|
|
4
|
+
data.tar.gz: 1976479ba6c3767c5741763f4d1ef41f81aa767208ec7655fdadde9f318aaee3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 614a24f22d6a3ef2f0ed2957566ed2631c18c32bb9572f1a749686ccbf2a070d8271ac357d39e4d0a1a710fc29e685db5918fc5a46faa1f23fe044589eca5c14
|
|
7
|
+
data.tar.gz: 15912bdcfc61f9063895485591287eb99d37ef2d26c4dda6d9e1c360fdbc40fa7975f2dbba235df5fabaca2113cb18648703eb28c84766e29202310c8965f57f
|
|
@@ -673,11 +673,21 @@ module RailsErrorDashboard
|
|
|
673
673
|
def clear_analytics_cache
|
|
674
674
|
# Use delete_matched to clear all cached analytics regardless of parameters
|
|
675
675
|
# Pattern matches: dashboard_stats/*, analytics_stats/*, platform_comparison/*
|
|
676
|
-
|
|
677
|
-
Rails.cache.delete_matched
|
|
678
|
-
|
|
676
|
+
# Note: SolidCache doesn't support delete_matched, so we catch NotImplementedError
|
|
677
|
+
if Rails.cache.respond_to?(:delete_matched)
|
|
678
|
+
Rails.cache.delete_matched("dashboard_stats/*")
|
|
679
|
+
Rails.cache.delete_matched("analytics_stats/*")
|
|
680
|
+
Rails.cache.delete_matched("platform_comparison/*")
|
|
681
|
+
else
|
|
682
|
+
# SolidCache or other stores that don't support pattern matching
|
|
683
|
+
# We can't clear cache patterns, so just skip it
|
|
684
|
+
Rails.logger.info("Cache store doesn't support delete_matched, skipping cache clear") if Rails.logger
|
|
685
|
+
end
|
|
686
|
+
rescue NotImplementedError => e
|
|
687
|
+
# Some cache stores throw NotImplementedError even if respond_to? returns true
|
|
688
|
+
Rails.logger.info("Cache store doesn't support delete_matched: #{e.message}") if Rails.logger
|
|
679
689
|
rescue => e
|
|
680
|
-
# Silently handle cache clearing errors to prevent blocking error logging
|
|
690
|
+
# Silently handle other cache clearing errors to prevent blocking error logging
|
|
681
691
|
Rails.logger.error("Failed to clear analytics cache: #{e.message}") if Rails.logger
|
|
682
692
|
end
|
|
683
693
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_error_dashboard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anjan Jagirdar
|
|
@@ -378,7 +378,7 @@ metadata:
|
|
|
378
378
|
source_code_uri: https://github.com/AnjanJ/rails_error_dashboard
|
|
379
379
|
changelog_uri: https://github.com/AnjanJ/rails_error_dashboard/blob/main/CHANGELOG.md
|
|
380
380
|
post_install_message: "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n
|
|
381
|
-
\ Rails Error Dashboard v0.1.
|
|
381
|
+
\ Rails Error Dashboard v0.1.12 installed successfully!\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F4E6
|
|
382
382
|
Next steps to get started:\n\n 1. Run the installer:\n rails generate rails_error_dashboard:install\n\n
|
|
383
383
|
\ 2. Run migrations:\n rails db:migrate\n\n 3. Mount the engine in config/routes.rb:\n
|
|
384
384
|
\ mount RailsErrorDashboard::Engine => '/error_dashboard'\n\n 4. Start your
|