rails_error_dashboard 0.1.11 → 0.1.13
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/app/models/rails_error_dashboard/error_log.rb +14 -4
- data/lib/rails_error_dashboard/version.rb +1 -1
- metadata +8 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cb43c836bc9a37283967490ad1c9e38eec95903fcb6eb1f8fda39e305eda044
|
|
4
|
+
data.tar.gz: 9b5ae145da9967e59a0ad17154af14fc9fdb85037649d5587c473d008c0c89fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c39e424531a1bc9869845fca21af2f71098da5ee18f09b04d310b2719d0c108021b917a70b73a39d8b42c5048cf939c3c8c716c14b7b199dd65f3845f3029ac6
|
|
7
|
+
data.tar.gz: 04b650c61784d45b51c16a803601518c0dae6765ad5bede0a94748eedad92addc841582933ccd70f9c8479280c2a9e335788389c6ce770437dbc7c5901d9bdba
|
|
@@ -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.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anjan Jagirdar
|
|
@@ -378,15 +378,13 @@ 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.
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
Questions? https://github.com/AnjanJ/rails_error_dashboard/issues\n\n⚠️ BETA: API
|
|
389
|
-
may change before v1.0.0 - Use at your own discretion\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n"
|
|
381
|
+
\ Rails Error Dashboard v0.1.13\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F195
|
|
382
|
+
First time? Quick start:\n rails generate rails_error_dashboard:install\n rails
|
|
383
|
+
db:migrate\n # Add to config/routes.rb:\n mount RailsErrorDashboard::Engine
|
|
384
|
+
=> '/error_dashboard'\n\n\U0001F504 Upgrading from v0.1.x?\n rails db:migrate\n
|
|
385
|
+
\ \U0001F4DD Changelog: https://github.com/AnjanJ/rails_error_dashboard/blob/main/CHANGELOG.md\n\n\U0001F3AE
|
|
386
|
+
Live demo: https://rails-error-dashboard.anjan.dev\n (gandalf / youshallnotpass)\n\n\U0001F4D6
|
|
387
|
+
Full docs: https://github.com/AnjanJ/rails_error_dashboard\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n"
|
|
390
388
|
rdoc_options: []
|
|
391
389
|
require_paths:
|
|
392
390
|
- lib
|