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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc0b9ca39db5bc33d5bf9fda72ded756fe16e42e877ef5eb93dbd2b833cc6aab
4
- data.tar.gz: 71195c18c23223ffa3dd5c3669b47549b50ff36756deb3fc46c90fba039f3f6f
3
+ metadata.gz: af1649eb6a9f0c2f134c12ff56daa1b518596abb811df41b3a09646cf11cf723
4
+ data.tar.gz: 350efaea07db0ad969590657a5469cef5d31cb5fabb5f54f0d4b7e5d2301c381
5
5
  SHA512:
6
- metadata.gz: 6e125d9c99cfaf74d273509899f1c7e4ec4552b5ebc425552e436b943f47a2ce2d4bd3719aed7fee372fe1fdd98347a3c1c4a5ea76f36ca80c79fe8080d49229
7
- data.tar.gz: 91125e1ec8de2e57059605f14ab4a2cc4cf705e2ae5ddc7b596381028c841fce299cc928bd828730b3c8be46f88265e04ad5ced9f6001c586a8ec4d57959600a
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
- initializer "bug_reports_client.helpers" do
33
- ActiveSupport.on_load(:action_controller_base) do
34
- helper BugReportsClient::Engine.helpers
35
- # Tag requests with the current user so captured 500s can be
36
- # attributed to whoever hit them (see ErrorContext).
37
- include BugReportsClient::ErrorContext
38
- end
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
@@ -1,3 +1,3 @@
1
1
  module BugReportsClient
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-10-07 00:00:00.000000000 Z
11
+ date: 2026-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails