rails_error_dashboard 0.9.0 → 0.9.1

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: f85952e5800c354ae158411afbec605cddbc5e19595e8e94620d1b13fc17894b
4
- data.tar.gz: 1af4bb9352a7fcffc10fc6b913b896ca2fd75198d31e044ff156b76cb52f6afc
3
+ metadata.gz: 57296ebd76d5c90e1605cf26e0946418332a109b6a8e06e47764d0679d580180
4
+ data.tar.gz: c7c013e699b365aa6fe3ec520d57261eb9e81beabe32ae60e040e4dec60632f2
5
5
  SHA512:
6
- metadata.gz: a6bc19522b5797095df0545fd6eca1b2552bfcd693ebb4363a17e8076ad784654340a70d1e9591f2ab3fc17a5fc9be10e65efa1b0211b329203c639b085b37a7
7
- data.tar.gz: c0885c4d27dde62b2439a40dac82acdee468f34ce9dd3d188b2f589bbceedab680c746ec7793e894cb3d5dacb7aff68908139cf90d655dc9790c0aea503ef784
6
+ metadata.gz: eacb14ac3148b50729be1a2028df13699feab0c80bdd8d52094d275eabe55f159ed6d68bec6b6b6b8b7642bcb46fa9e0b27c1c23138da1cca277044de5dc1b26
7
+ data.tar.gz: 9ba438dd2e6efbe417a26846cc2c8e3784e568ba2f4c471ea92c25258a782ab7265d5cb27e488760d8871764a270e5299de76057c799c3a3220450b410c50f06
@@ -478,12 +478,22 @@ module RailsErrorDashboard
478
478
  errors = []
479
479
  warnings = []
480
480
 
481
- # Block boot with default or blank credentials in production
481
+ # Block boot with default or blank credentials anywhere that is not local
482
+ # development or test.
483
+ #
484
+ # Deliberately an ALLOWLIST of safe environments rather than a check for
485
+ # `production`. Gating on Rails.env.production? tests one literal string,
486
+ # so an internet-facing `staging`, `uat`, `demo` or `preprod` box booted
487
+ # happily on credentials this project publishes in its own README
488
+ # (GHSA-qhgm-3pxf-mvc6). Every future environment name a team invents is
489
+ # now refused by default and has to be added here on purpose.
490
+ #
482
491
  # Skip during asset precompilation (SECRET_KEY_BASE_DUMMY=1) — ENV vars aren't available at build time
483
492
  if default_credentials? &&
484
- defined?(Rails) && Rails.respond_to?(:env) && Rails.env.production? &&
493
+ defined?(Rails) && Rails.respond_to?(:env) &&
494
+ !Rails.env.development? && !Rails.env.test? &&
485
495
  ENV["SECRET_KEY_BASE_DUMMY"].blank?
486
- errors << "Default or blank credentials cannot be used in production. Set ERROR_DASHBOARD_USER and ERROR_DASHBOARD_PASSWORD environment variables, or use authenticate_with for custom auth."
496
+ errors << "Default or blank credentials cannot be used in #{Rails.env}. Only development and test may run on the built-in credentials. Set ERROR_DASHBOARD_USER and ERROR_DASHBOARD_PASSWORD environment variables, or use authenticate_with for custom auth."
487
497
  end
488
498
 
489
499
  # Validate sampling_rate (must be between 0.0 and 1.0)
@@ -1,3 +1,3 @@
1
1
  module RailsErrorDashboard
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anjan Jagirdar
@@ -232,9 +232,16 @@ description: 'Own your errors. Own your stack. A fully open-source, self-hosted
232
232
  dashboard UI (dark/light), multi-channel notifications (Slack, Email, Discord, PagerDuty,
233
233
  webhooks), workflow management, advanced analytics, platform detection (iOS/Android/Web/API),
234
234
  and two-way issue sync with GitHub, GitLab, Codeberg, and Linear. Also: LLM observability,
235
- AI-powered debugging help, and OpenTelemetry span export. 5-minute setup, works
236
- out-of-the-box. Rails 7.0-8.1, Ruby 3.2-4.0. BETA: API may change before v1.0.0.
237
- Live demo: https://rails-error-dashboard.anjan.dev (gandalf/youshallnotpass)'
235
+ AI-powered debugging help, and OpenTelemetry span export. The dashboard, mailers
236
+ and notification payloads are translated into 11 languages: English, German, Spanish,
237
+ French, Brazilian Portuguese, Italian, Polish, Russian, Ukrainian, Japanese, and
238
+ Simplified Chinese — 1,515 source strings, set via config.dashboard_locale with
239
+ a per-user picker. RED translates through its own private I18n backend and never
240
+ mutates your app''s I18n; a missing translation falls back to English. Backtraces,
241
+ exception names and webhook payload keys stay English by design. The ten non-English
242
+ locales are machine-translated and not yet reviewed by native speakers. 5-minute
243
+ setup, works out-of-the-box. Rails 7.0-8.1, Ruby 3.2-4.0. BETA: API may change before
244
+ v1.0.0. Live demo: https://rails-error-dashboard.anjan.dev (gandalf/youshallnotpass)'
238
245
  email:
239
246
  - anjan.jagirdar@gmail.com
240
247
  executables: []
@@ -550,7 +557,7 @@ metadata:
550
557
  funding_uri: https://github.com/sponsors/AnjanJ
551
558
  post_install_message: |
552
559
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
553
- RED (Rails Error Dashboard) v0.9.0
560
+ RED (Rails Error Dashboard) v0.9.1
554
561
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
555
562
 
556
563
  First install:
@@ -589,5 +596,5 @@ requirements: []
589
596
  rubygems_version: 3.6.9
590
597
  specification_version: 4
591
598
  summary: Self-hosted error tracking for Rails — local variables, system health, separate
592
- or shared database. A free, open-source Sentry alternative.
599
+ or shared database, dashboard in 11 languages. A free, open-source Sentry alternative.
593
600
  test_files: []