source_monitor 0.5.2 → 0.5.3
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 +6 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/source_monitor/setup/verification/pending_migrations_verifier.rb +6 -6
- data/lib/source_monitor/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: 21aedfc8713e8179626900475c725eeb1fca98e169b5477d1ee45e557cdebf7e
|
|
4
|
+
data.tar.gz: 30e532cc201cf97c31209010125de15643dc9e53529e6aedbbbf07e67fee7d9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc9da6548d8c8873e0aa989b21cd9fb85b76c14ab9a1335952e873a0be3694674c8aca74cbdb03cdb05e3c00db3638d519147f9410ee13439a6b71b31fecf29d
|
|
7
|
+
data.tar.gz: 34e16d32cfef7444234f812c4c27359a7f73d964859630c79bccccdeda43eb65a50669639e17ffecf9de492f82dbf654706986ac489d65635fcc9ad964615133
|
data/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,12 @@ All notable changes to this project are documented below. The format follows [Ke
|
|
|
15
15
|
|
|
16
16
|
- No unreleased changes yet.
|
|
17
17
|
|
|
18
|
+
## [0.5.3] - 2026-02-16
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- `PendingMigrationsVerifier` crash on Rails 8 (`undefined method 'migration_context'` on connection adapter). Now uses `connection_pool.migration_context` which is the Rails 8-compatible API.
|
|
23
|
+
|
|
18
24
|
## [0.5.2] - 2026-02-16
|
|
19
25
|
|
|
20
26
|
### Added
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.3
|
|
@@ -9,11 +9,11 @@ module SourceMonitor
|
|
|
9
9
|
def initialize(
|
|
10
10
|
engine_migrations_path: default_engine_migrations_path,
|
|
11
11
|
host_migrations_path: default_host_migrations_path,
|
|
12
|
-
|
|
12
|
+
migration_context: default_migration_context
|
|
13
13
|
)
|
|
14
14
|
@engine_migrations_path = engine_migrations_path
|
|
15
15
|
@host_migrations_path = host_migrations_path
|
|
16
|
-
@
|
|
16
|
+
@migration_context = migration_context
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def call
|
|
@@ -28,7 +28,7 @@ module SourceMonitor
|
|
|
28
28
|
"#{missing.size} SourceMonitor migration(s) not copied to host: #{missing.join(', ')}",
|
|
29
29
|
"Run `bin/rails source_monitor:upgrade` or `bin/rails railties:install:migrations FROM=source_monitor`"
|
|
30
30
|
)
|
|
31
|
-
elsif
|
|
31
|
+
elsif migration_context.needs_migration?
|
|
32
32
|
warning_result(
|
|
33
33
|
"All SourceMonitor migrations are copied but some migrations are pending",
|
|
34
34
|
"Run `bin/rails db:migrate` to apply pending migrations"
|
|
@@ -45,7 +45,7 @@ module SourceMonitor
|
|
|
45
45
|
|
|
46
46
|
private
|
|
47
47
|
|
|
48
|
-
attr_reader :engine_migrations_path, :host_migrations_path, :
|
|
48
|
+
attr_reader :engine_migrations_path, :host_migrations_path, :migration_context
|
|
49
49
|
|
|
50
50
|
def default_engine_migrations_path
|
|
51
51
|
SourceMonitor::Engine.root.join("db/migrate")
|
|
@@ -55,8 +55,8 @@ module SourceMonitor
|
|
|
55
55
|
Rails.root.join("db/migrate")
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
-
def
|
|
59
|
-
ActiveRecord::Base.
|
|
58
|
+
def default_migration_context
|
|
59
|
+
ActiveRecord::Base.connection_pool.migration_context
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
def source_monitor_migration_names(path)
|