omen 0.2.1 → 0.2.2
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 +8 -0
- data/README.md +1 -1
- data/app/models/omen/answer.rb +2 -0
- data/app/models/omen/question.rb +2 -0
- data/app/models/omen/reading.rb +2 -0
- data/lib/omen/engine.rb +6 -4
- data/lib/omen/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: 7bff8c4c873f1cbc8923e3dbc7cebe42e282126624a56cab8d2461b8c879fb0d
|
|
4
|
+
data.tar.gz: e8bd747cf8234259e52e7bf5d1ab24e607dc5ba6ba09deef01f037692bd3a6f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c82de79367f41a2712f44bdf21d6ca715c263fbc097dae9d7dcd032ba28a152ebf4c1976b02b37f62992781f98981fab99fd49173a4925bea3664ba668cbff1
|
|
7
|
+
data.tar.gz: 0a2a09480ee44f60283db5db8976d6c97d6373fca2af7f6e1b2526de51052e5aba96b171ba989af70ef7bf5e9acd1fb01bbd6933cb9ec1b6cf00a10be80f0a8e
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## 0.2.2 - 2026-08-24
|
|
11
|
+
|
|
12
|
+
* [Fix] Run a load hook as each model loads, so a host declares `broadcasts_refreshes` and the
|
|
13
|
+
rest through `ActiveSupport.on_load :omen_reading` rather than by naming the class while
|
|
14
|
+
initializers run, which loaded Active Record before Rails was up
|
|
15
|
+
* [Fix] Read the adapter through the `:active_record` load hook, so a boot that never touches
|
|
16
|
+
the database is not the boot that loads it early
|
|
17
|
+
|
|
10
18
|
## 0.2.1 - 2026-08-24
|
|
11
19
|
|
|
12
20
|
* [Fix] Declare `eastern()` over an instant as well as a stored timestamp, so a reply that
|
data/README.md
CHANGED
|
@@ -119,7 +119,7 @@ Two things a subclass cannot reach, because the gem's own class is what a job lo
|
|
|
119
119
|
line in the host does it:
|
|
120
120
|
|
|
121
121
|
```ruby
|
|
122
|
-
|
|
122
|
+
ActiveSupport.on_load(:omen_reading) { broadcasts_refreshes }
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
## After the first deploy
|
data/app/models/omen/answer.rb
CHANGED
data/app/models/omen/question.rb
CHANGED
data/app/models/omen/reading.rb
CHANGED
data/lib/omen/engine.rb
CHANGED
|
@@ -7,10 +7,12 @@ module Omen
|
|
|
7
7
|
# initializer has already said where its schema is. The declared format rather than the
|
|
8
8
|
# applied one, so nothing here depends on which after_initialize hook ran first.
|
|
9
9
|
config.after_initialize do
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
ActiveSupport.on_load :active_record do
|
|
11
|
+
configured = ActiveRecord::Base.configurations.configs_for env_name: Rails.env,
|
|
12
|
+
name: 'primary'
|
|
13
|
+
Omen::Requirements.met adapter: configured&.adapter, schema: Omen.config.schema,
|
|
14
|
+
schema_format: Rails.application.config.active_record.schema_format
|
|
15
|
+
end
|
|
14
16
|
end
|
|
15
17
|
end
|
|
16
18
|
end
|
data/lib/omen/version.rb
CHANGED