bug_reports_client 0.1.3 → 0.1.4
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/CHANGELOG.md +11 -0
- data/lib/bug_reports_client/engine.rb +10 -7
- data/lib/bug_reports_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af1649eb6a9f0c2f134c12ff56daa1b518596abb811df41b3a09646cf11cf723
|
|
4
|
+
data.tar.gz: 350efaea07db0ad969590657a5469cef5d31cb5fabb5f54f0d4b7e5d2301c381
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 420ca42a1fac80cbb2f9cc426c5ba5d9759dcdeb41d45c3affad1396cd922fb93c3402ec43edec37f2be1a5e9b324af8ba1d2c8bf8b21976b9360ff706690256
|
|
7
|
+
data.tar.gz: a76dea291d1ae17e671b06d05f1717866a5270347b585b39bd571624bc7fe8e9771fcef26ce946eee93e24ce02ac55238fc395a8a16b63646c7f121ee876a7d2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.4 (16 October 2026)
|
|
4
|
+
|
|
5
|
+
- The engine's helpers and the error-context `before_action` are now added
|
|
6
|
+
to `ActionController::Base` in `config.to_prepare`, not in an
|
|
7
|
+
`on_load(:action_controller_base)` hook. A gem that loads
|
|
8
|
+
`ActionController::Base` while Bundler is still requiring gems ran the
|
|
9
|
+
hook before engine helpers could autoload, and the host failed to boot
|
|
10
|
+
with `NameError: uninitialized constant BugReportsClient::BugReportsHelper`.
|
|
11
|
+
`omniauth-rails_csrf_protection` 2.x does this on Rails 8.1. Hosts need no
|
|
12
|
+
changes.
|
|
13
|
+
|
|
3
14
|
## 0.1.3 (7 October 2026)
|
|
4
15
|
|
|
5
16
|
- Unhandled errors raised by `bin/rails runner` scripts (Rails.error source
|
|
@@ -29,13 +29,16 @@ module BugReportsClient
|
|
|
29
29
|
# Make engine helpers (bug_report_alerts and the badge helpers) available
|
|
30
30
|
# in host views, so layouts can render the resolved-report alerts with a
|
|
31
31
|
# single line.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
#
|
|
33
|
+
# Keep this in to_prepare, not on_load(:action_controller_base): a gem that
|
|
34
|
+
# loads ActionController::Base during Bundler.require fires on_load hooks
|
|
35
|
+
# before engine helpers can autoload, and the host fails to boot with
|
|
36
|
+
# NameError on BugReportsHelper.
|
|
37
|
+
config.to_prepare do
|
|
38
|
+
ActionController::Base.helper BugReportsClient::Engine.helpers
|
|
39
|
+
# Tag requests with the current user so captured 500s can be
|
|
40
|
+
# attributed to whoever hit them (see ErrorContext).
|
|
41
|
+
ActionController::Base.include BugReportsClient::ErrorContext
|
|
39
42
|
end
|
|
40
43
|
|
|
41
44
|
# Automatic 500 capture: subscribe to the Rails error reporter. The
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bug_reports_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PSA Squash Tour
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|