ros-apartment 3.4.2 → 3.4.4

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: 2ff5e16756f5fc42560082bd07204b8853c85a4b4d15ce38664585b2e6631ccc
4
- data.tar.gz: 168b28a0141dca9bdbdc80ea6ecf3247677b7dc138ca6d3feed213d24c11b454
3
+ metadata.gz: f49aeee027e9b0efcfa2582df0370ec85c9825eab664bab8fda3fbcf519423b4
4
+ data.tar.gz: 5f6f755319a8e2126d2e1f778da1908a84b7f3463540af929c242cb6ccd67438
5
5
  SHA512:
6
- metadata.gz: c8899404718944dae59cc218ac48c558f6005cce6bb6f61357bca1f3a69e8e9a0bbef7950d60effcc1a02efde0ecc65062fc258565a5375a7991cc3ad2d0a293
7
- data.tar.gz: 4b4aa74a1194609b254a3e08c00d493243842396f045560d6909ae3c67751dbb183d56545046bb61508f61e039ee2159875fe8fb2766d15f20cea28068a8504a
6
+ metadata.gz: 65ec120872ede00a3e8b7b808786dde24bd8e8f8282c9e64be3a5ac2cbf32aa919ff9317364e32c95d66f62c6f01cb7cddb0a27783031042b3c3b9fd8f97ae43
7
+ data.tar.gz: 85fabb97517aaa2941f14e037ac6e94c208ebed031625607bef4b9df46eed1a688c155834ac5f4f44691dcc63e0107c0fd9ea9881b711eb3e3ef785be8406db7
@@ -96,12 +96,13 @@ module Apartment
96
96
  Rake::Task.task_defined?(task_name)
97
97
  end
98
98
 
99
- # Checks Rails' global schema dump setting. Older Rails versions
100
- # may not have this method, so we default to enabled.
99
+ # Reads Rails' global schema dump setting. ActiveRecord exposes this
100
+ # as a singleton accessor since 7.0; the respond_to? guard is a
101
+ # defensive fallback that defaults to enabled if the API is missing.
101
102
  def rails_dump_schema_enabled?
102
- return true unless ActiveRecord::Base.respond_to?(:dump_schema_after_migration)
103
+ return true unless ActiveRecord.respond_to?(:dump_schema_after_migration)
103
104
 
104
- ActiveRecord::Base.dump_schema_after_migration
105
+ ActiveRecord.dump_schema_after_migration
105
106
  end
106
107
  end
107
108
  end
@@ -85,13 +85,13 @@ module Apartment
85
85
 
86
86
  # Parallel execution wrapper. Disables advisory locks for the duration,
87
87
  # then delegates to platform-appropriate parallelism strategy.
88
- def each_tenant_parallel(&)
88
+ def each_tenant_parallel(&block)
89
89
  with_advisory_locks_disabled do
90
90
  case resolve_parallel_strategy
91
91
  when :processes
92
- each_tenant_in_processes(&)
92
+ each_tenant_in_processes(&block)
93
93
  else
94
- each_tenant_in_threads(&)
94
+ each_tenant_in_threads(&block)
95
95
  end
96
96
  end
97
97
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Apartment
4
- VERSION = '3.4.2'
4
+ VERSION = '3.4.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ros-apartment
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Brunner