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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2faee952d1a2a7a131f721af4ac58ce46cbbe94dadc50cd50d4e6ac24af08600
4
- data.tar.gz: e20f8adb374398ad0fab643b6333e329b6c7f5e187fc927092b1d167b4e290f8
3
+ metadata.gz: 3fa1437c2a9810a0a9064639adcb8dad378f906786936dfa754ab0fa1e501e67
4
+ data.tar.gz: 4fc05e0a8b2a713f1ee7df03a6dde803db3f556916bc127c87d09a39fb7ccfc9
5
5
  SHA512:
6
- metadata.gz: '09dd4b8be7afd25bb06044c3b80d41fa39c302ccbb9357cd770127050af30d517cef73d8f6ad03a6112f837ae5d6a278068bc7edc147824403081afe63670f13'
7
- data.tar.gz: ef93377225b985b979ee54f35d86f9e52354030d0c5cad2131653828ee3a767239206268eb0b18b776b3ec3fa3cfc69fc9d9ed8118a9cd53ca0e9eb74cc6c834
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
- initializer "standard_circuit.action_mailer" do
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
@@ -1,3 +1,3 @@
1
1
  module StandardCircuit
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard_circuit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaryl Sim