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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67a9f28e3fe5746779d873407ef1e27c47f2976a1a38ab3df6fe9423fdacfc33
4
- data.tar.gz: 431294924873906876d4a17e2fcc200d16240724cf151b3cab41baf94422a3b2
3
+ metadata.gz: 21aedfc8713e8179626900475c725eeb1fca98e169b5477d1ee45e557cdebf7e
4
+ data.tar.gz: 30e532cc201cf97c31209010125de15643dc9e53529e6aedbbbf07e67fee7d9d
5
5
  SHA512:
6
- metadata.gz: 386b5537905ef8a60b93c74436c747e8d5b2ded2bfff62ba25ab7511027d144a7d200428de3909c63899f863b8de0d73637ce43af6fe8a1b90d0f9a9bda8a3b4
7
- data.tar.gz: 544f84f2cbf63afc0d2bc833ec3d995cf92f1882307ff8f51a8c2c00b41987db14fb855b4a9799f5e2f2d089822b8ec5b0aea922933c75d4c43728916bea3b57
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- source_monitor (0.5.2)
4
+ source_monitor (0.5.3)
5
5
  cssbundling-rails (~> 1.4)
6
6
  faraday (~> 2.9)
7
7
  faraday-follow_redirects (~> 0.4)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
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
- connection: default_connection
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
- @connection = connection
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 connection.migration_context.needs_migration?
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, :connection
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 default_connection
59
- ActiveRecord::Base.connection
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SourceMonitor
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - dchuk