standard_circuit 0.1.0 → 0.1.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/standard_circuit/mailer/delivery_method.rb +4 -1
- data/lib/standard_circuit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fa1437c2a9810a0a9064639adcb8dad378f906786936dfa754ab0fa1e501e67
|
|
4
|
+
data.tar.gz: 4fc05e0a8b2a713f1ee7df03a6dde803db3f556916bc127c87d09a39fb7ccfc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eedd74500b0ae59383f60737bf191f1557be80f334ccdd3da6f46229a74272bbfaed866090b5bca810e226e5f42a1b8029c0fa00dd7200e87baa03a32b03c3e9
|
|
7
|
+
data.tar.gz: 9bb00b1ebbd89e5b9b68e8b0b01b042e25444b801f57733756c1804ba83d598558c68b0793bd86f587833f3e44350158f62496b65f722befacdf3a49f3bd8022
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.1] - 2026-04-27
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- `Mailer::Railtie`'s `standard_circuit.action_mailer` initializer now declares `before: "action_mailer.set_configs"`. Without this hint, the on_load callback that defines `standard_circuit_settings=` ran *after* Rails' `set_configs` initializer tried to forward `config.action_mailer.standard_circuit_settings = {...}` to `ActionMailer::Base`, raising `NoMethodError: undefined method 'standard_circuit_settings='` during eager_load. Two consumers previously worked around this by mutating the Initializer's private `@before` field in their `application.rb`; that workaround can now be removed.
|
|
11
|
+
|
|
7
12
|
## [0.1.0] - 2026-04-27
|
|
8
13
|
|
|
9
14
|
### Fixed
|
|
@@ -66,7 +66,10 @@ module StandardCircuit
|
|
|
66
66
|
mailer_class.add_delivery_method :standard_circuit, StandardCircuit::Mailer::DeliveryMethod
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
# `before:` ensures `add_delivery_method` (which defines the
|
|
70
|
+
# `standard_circuit_settings=` accessor) runs before Rails' set_configs
|
|
71
|
+
# tries to forward `config.action_mailer.standard_circuit_settings=`.
|
|
72
|
+
initializer "standard_circuit.action_mailer", before: "action_mailer.set_configs" do
|
|
70
73
|
ActiveSupport.on_load(:action_mailer) do
|
|
71
74
|
StandardCircuit::Mailer::Railtie.install(self)
|
|
72
75
|
end
|