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: f624e3d828c1bd13e2f98c7076096a45e448463c3ab46933ef41cdd568780abb
4
- data.tar.gz: f3cb4c5ce26df2242fb023f295031ad19d0700bd37eda64caa8b6ee1725adbd1
3
+ metadata.gz: 1ac52a24732693d33836e77ad12079dff702b0349edb5420de15b5be2f5f3459
4
+ data.tar.gz: 1976479ba6c3767c5741763f4d1ef41f81aa767208ec7655fdadde9f318aaee3
5
5
  SHA512:
6
- metadata.gz: e4f0277d96727d46667fe0d234986c10e612f0760f3bf7d15834b0491877843003a173ff20421981b60e989a95e996267ca3fd057091bd847df17873c8118e7e
7
- data.tar.gz: 9710fd4639ba289f8ebac6f100c8abc32bbd4ba09309b6f80e2768f4eb520d2a80f23043d47d074e359ac73f8a25da3d8c1c4d66e118f728e0c8f7164e63e60d
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
- Rails.cache.delete_matched("dashboard_stats/*")
677
- Rails.cache.delete_matched("analytics_stats/*")
678
- Rails.cache.delete_matched("platform_comparison/*")
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
@@ -1,3 +1,3 @@
1
1
  module RailsErrorDashboard
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  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.11
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.11 installed successfully!\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F4E6
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