ros-apartment 3.4.2 → 3.4.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: 2ff5e16756f5fc42560082bd07204b8853c85a4b4d15ce38664585b2e6631ccc
4
- data.tar.gz: 168b28a0141dca9bdbdc80ea6ecf3247677b7dc138ca6d3feed213d24c11b454
3
+ metadata.gz: 8f2eb5dc1ac31c9d5703827575fe83b8c2c68b9adac1d73e0851aaf8c5d96686
4
+ data.tar.gz: bc7dbc132204fac00a6f4d237a2f184fdc2ec2ddf6b93bad7cfa722836c57d42
5
5
  SHA512:
6
- metadata.gz: c8899404718944dae59cc218ac48c558f6005cce6bb6f61357bca1f3a69e8e9a0bbef7950d60effcc1a02efde0ecc65062fc258565a5375a7991cc3ad2d0a293
7
- data.tar.gz: 4b4aa74a1194609b254a3e08c00d493243842396f045560d6909ae3c67751dbb183d56545046bb61508f61e039ee2159875fe8fb2766d15f20cea28068a8504a
6
+ metadata.gz: 1d9439a1650872063d305de6772e5cbcd49d2ab8df07e9a0a23272cef6d6a65088eb5c55f43cbe50f8c7f5c22d14b92e198b5ad7f29fb8f7502d1302a496499c
7
+ data.tar.gz: 44e417832f6a7cd9f6b0e99d34191d467a8270d528f3efe398eb86a63511c63e1eb6a8a63acf881139d626749133fbf1e405b3944476de23d805f75d28791624
@@ -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
@@ -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.3'
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Brunner