standard_flags 0.2.0 → 0.2.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: cc29678f25dbc06d48749a9f203131df8ac5ce1c67740c59b32a658bfad23c49
4
- data.tar.gz: 00e160c90ab46bff75740b02b748f5fde6fc5300a6c03b13ba30a6d44a947fa0
3
+ metadata.gz: 3ea97e7c004dfcf42fddb724fcbdc25349c7530e75ca16a984eecaa4c449f865
4
+ data.tar.gz: ccae09c7320ebe740672c67c8f1643eb226109eb2e2de3351f04a423ae9ddd40
5
5
  SHA512:
6
- metadata.gz: a8797e0cc12e6d0ab5aa561b1f39124f09852440ccfffe56eea6778c07a8df758bf2076c07a5f25ada18236b09181b7c33bc05eb584579a72d932bd72136ac6a
7
- data.tar.gz: 372b1f38a162bd6dfef0cab9ffe371fd04a1b3d61b8013df123ef429c78edc1b709a5d6286065cba2f015a56dde3ae7eb2cfa94edb824cc38b8bd9307fe0522a
6
+ metadata.gz: 28a9a4d041bd89a44714599a195926bf7c7329913b3687972ab2ea3e46e0501acf0dd7e631a94556e050c0842d20cd7d30056301d25f5b2771ab95e33f79bece
7
+ data.tar.gz: fb84a1908b439f755a023351b5814cf60321007c6aeea062e160d080f9114091095744bd59062f55092c11b1b21d248ed78d3b5ca4bb7524d17d3e4ad7ce4774
data/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.1] - 2026-11-23
11
+
12
+ ### Fixed
13
+
14
+ - **Booting with standard_health 0.9 loaded first.** The standard_health load
15
+ hook was registered before `StandardFlags.registry` was defined; standard_health
16
+ 0.9 runs its hooks at require time, so the hook fired mid-require and the app
17
+ failed to boot with `undefined method 'registry'`. The hook is now registered
18
+ at the end of `standard_flags.rb`.
19
+
10
20
  ## [0.2.0] - 2026-11-23
11
21
 
12
22
  ### Added
@@ -1,3 +1,3 @@
1
1
  module StandardFlags
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -38,10 +38,6 @@ require "standard_flags/tooling"
38
38
  require "standard_flags/health_contribution"
39
39
  require "standard_flags/engine" if defined?(::Rails::Engine)
40
40
 
41
- # standard_health 0.9+ registers this check by default and lists forbidden
42
- # pins on /diagnostics/env. Runs at require time, before app initializers.
43
- ActiveSupport.on_load(:standard_health, &StandardFlags::HealthContribution::HOOK)
44
-
45
41
  module StandardFlags
46
42
  # Loaded on first reference: they need actionpack, activejob (Job and
47
43
  # PurgeJob) and standard_health respectively, which the host brings.
@@ -166,3 +162,9 @@ module StandardFlags
166
162
  end
167
163
  end
168
164
  end
165
+
166
+ # standard_health 0.9+ registers this check by default and lists forbidden
167
+ # pins on /diagnostics/env. Registered last: when standard_health has already
168
+ # run its load hooks, ActiveSupport runs this hook immediately, so everything
169
+ # the hook calls (StandardFlags.registry, .config) must already be defined.
170
+ ActiveSupport.on_load(:standard_health, &StandardFlags::HealthContribution::HOOK)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rarebit One