rails_error_dashboard 0.5.4 → 0.5.5
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: 0061cfa9a544478cab75e78d0b785f3f2fbc319d46cdfe0080d6c2d135499bad
|
|
4
|
+
data.tar.gz: e4fedd33e1db8813bc25eda9f842a02866c1b195706e519e3ab6e93a6e4fc9cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48a726a07f35cf8b7d1f390aa0da7d2e0741a949d4a963da133606b89795d954d7e85f02f08ced7512b6569ab0f40cf0507988b64d840f4f8366f861f4650601
|
|
7
|
+
data.tar.gz: 825b1d89ff00f82c270568381740f0798c6d2158cf726883ed12eda5f1e87f8cba2c1dfa91037bcd2f8054b5434129d3957cb6d2f9a0ed1207a9b87f461c7db4
|
|
@@ -539,10 +539,17 @@ module RailsErrorDashboard
|
|
|
539
539
|
|
|
540
540
|
# Check if using default or blank demo credentials with basic auth
|
|
541
541
|
#
|
|
542
|
-
#
|
|
542
|
+
# Returns false if the user explicitly set ENV vars (even to the same default values),
|
|
543
|
+
# because that's a deliberate choice. Only blocks when credentials are untouched defaults
|
|
544
|
+
# or blank.
|
|
545
|
+
#
|
|
546
|
+
# @return [Boolean] true if basic auth is active with untouched default or blank credentials
|
|
543
547
|
def default_credentials?
|
|
544
548
|
return false unless authenticate_with.nil?
|
|
545
549
|
|
|
550
|
+
# If user explicitly set ENV vars, respect their choice
|
|
551
|
+
return false if ENV.key?("ERROR_DASHBOARD_USER") || ENV.key?("ERROR_DASHBOARD_PASSWORD")
|
|
552
|
+
|
|
546
553
|
default = dashboard_username == "gandalf" && dashboard_password == "youshallnotpass"
|
|
547
554
|
blank = dashboard_username.to_s.strip.empty? || dashboard_password.to_s.strip.empty?
|
|
548
555
|
|
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.5.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anjan Jagirdar
|
|
@@ -467,7 +467,7 @@ metadata:
|
|
|
467
467
|
bug_tracker_uri: https://github.com/AnjanJ/rails_error_dashboard/issues
|
|
468
468
|
funding_uri: https://buymeacoffee.com/anjanj
|
|
469
469
|
post_install_message: "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n
|
|
470
|
-
\ Rails Error Dashboard v0.5.
|
|
470
|
+
\ Rails Error Dashboard v0.5.5\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F195
|
|
471
471
|
First time? Quick start:\n rails generate rails_error_dashboard:install\n rails
|
|
472
472
|
db:migrate\n # Add to config/routes.rb:\n mount RailsErrorDashboard::Engine
|
|
473
473
|
=> '/error_dashboard'\n\n\U0001F504 Upgrading from v0.1.x?\n rails db:migrate\n
|