switchman 4.1.0 → 4.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: e03940e1a5f3d0e7b933d99b3cbd68e3998b55f14ac0e7eec91ef81a193445e1
4
- data.tar.gz: 923793689418332ab6ce2ffef2981567bd74b6358916794d958172638b0ec160
3
+ metadata.gz: 61591d46b119d4e93de2453131f6ec149238ece00df45ddabaac44a4fa67449c
4
+ data.tar.gz: b055255214698f518056b88b1ba311243412b8a7b6757b239c4eb1b6caab7bf8
5
5
  SHA512:
6
- metadata.gz: 6950ac12cf6532f98e3674ded8890e7bb2f9ef50f33657220096de50508715ab047250c163546dc7396c61d15197ee2b517ae342f84cbe007ae22a217ed7751f
7
- data.tar.gz: c45df067998ec5868bfe2c6a0f52608ffd9de9a19e2ce55ba55fc9986e077833df9964c5783c0f394a9683cb21a610e7f2a781d88e690fbc2bfeef5e8e352826
6
+ metadata.gz: a5c9b984bb1004b66269a070c39c20a8dab48b61f648716ec63e1144123cea232f42fdc670d923c85339e89ed6fca3bb93b28cf64560401b0b94ded01e0d96f9
7
+ data.tar.gz: 0ee98392b52fce11f7b6ec11badaea968a46b984f459e5ed00c047afa82adaf726b4a37f1e24c437a36713c849802bd3b37de6e3df7270aa31e272ee77ce2d39
@@ -30,11 +30,9 @@ module Switchman
30
30
  shard_name_hash = ::ActiveRecord::Migrator::MIGRATOR_SALT * db_name_hash
31
31
  # Store in internalmetadata to allow other tools to be able to lock out migrations
32
32
  if ::Rails.version < "7.1"
33
- ::ActiveRecord::InternalMetadata[:migrator_advisory_lock_id] = shard_name_hash
34
- elsif ::Rails.version < "7.2"
35
- ::ActiveRecord::InternalMetadata.new(connection)[:migrator_advisory_lock_id] = shard_name_hash
33
+ ::ActiveRecord::InternalMetadata[:migrator_advisory_lock_id] = shard_name_hash.to_s
36
34
  else
37
- ::ActiveRecord::InternalMetadata.new(connection.pool)[:migrator_advisory_lock_id] = shard_name_hash
35
+ @internal_metadata[:migrator_advisory_lock_id] = shard_name_hash.to_s
38
36
  end
39
37
  shard_name_hash
40
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Switchman
4
- VERSION = "4.1.0"
4
+ VERSION = "4.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switchman
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-03-21 00:00:00.000000000 Z
13
+ date: 2025-06-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord