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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f624e3d828c1bd13e2f98c7076096a45e448463c3ab46933ef41cdd568780abb
4
- data.tar.gz: f3cb4c5ce26df2242fb023f295031ad19d0700bd37eda64caa8b6ee1725adbd1
3
+ metadata.gz: 2cb43c836bc9a37283967490ad1c9e38eec95903fcb6eb1f8fda39e305eda044
4
+ data.tar.gz: 9b5ae145da9967e59a0ad17154af14fc9fdb85037649d5587c473d008c0c89fc
5
5
  SHA512:
6
- metadata.gz: e4f0277d96727d46667fe0d234986c10e612f0760f3bf7d15834b0491877843003a173ff20421981b60e989a95e996267ca3fd057091bd847df17873c8118e7e
7
- data.tar.gz: 9710fd4639ba289f8ebac6f100c8abc32bbd4ba09309b6f80e2768f4eb520d2a80f23043d47d074e359ac73f8a25da3d8c1c4d66e118f728e0c8f7164e63e60d
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
- 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.13"
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.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.11 installed successfully!\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F4E6
382
- Next steps to get started:\n\n 1. Run the installer:\n rails generate rails_error_dashboard:install\n\n
383
- \ 2. Run migrations:\n rails db:migrate\n\n 3. Mount the engine in config/routes.rb:\n
384
- \ mount RailsErrorDashboard::Engine => '/error_dashboard'\n\n 4. Start your
385
- server and visit:\n http://localhost:3000/error_dashboard\n\n\U0001F3AE Try
386
- the live demo: https://rails-error-dashboard.anjan.dev\n (Username: gandalf, Password:
387
- youshallnotpass)\n\n\U0001F4D6 Documentation: https://github.com/AnjanJ/rails_error_dashboard\n\U0001F4AC
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