getaround_utils 0.2.33 → 0.2.34

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: 35a156c5d4ca69d17bcd92da4fd895535765ca23df93486f151bba45afcde23f
4
- data.tar.gz: 44b21efdd97dfd6d53294b1ea9a6d9e72a4d9226968a767574a0d5c36e7f55fd
3
+ metadata.gz: 738cd79236357f007a717d5167f3dfeb13a801b28556a8a3824cf2820cc93500
4
+ data.tar.gz: 036fc34448576d810dd599dcbc5bc258cc7ca2f4fa78518b70782a8f1dbb4b6f
5
5
  SHA512:
6
- metadata.gz: 54437d17b01cbe5fcdeb9784ccae86b32424e7b571c0b1e8bb59d3c8fd9998a2bb4a68d433d501c2e2e30ac88a62eb199754643c916a29f4da83d3b1cd92d95e
7
- data.tar.gz: a4a9d6ff31ff484608dd4c2833602d7fdfe3955b1c1dbd8e6abf52c874438ce639ee264f6e848ea808250d5d853d43a0795fcbd19508cac62ef4adf4f02879ad
6
+ metadata.gz: 608b83ea903b25db9cfccc03b9b0a6c6b6e5e4e693dd8c89c502c5877ccaf8b36c5069885570437c8d76136c54e24a3add8f172519460cc06218687cd779cf0b
7
+ data.tar.gz: 83ca46172594d6e8cc6fcf38d5c2a88e31633b2c7fff2d5d29a7a9baa7655dfd3304654ae1b4dc633ab8ba4ceb79904a1a8e6362fafaefa3095f4d8b08e35125
@@ -24,7 +24,11 @@ module GetaroundUtils::Engines::Health
24
24
  def self.needs_migration?
25
25
  return false unless defined?(ActiveRecord)
26
26
 
27
- ActiveRecord::Base.connection.migration_context.needs_migration?
27
+ if ActiveRecord.version < Gem::Version.create("7.2.1")
28
+ ActiveRecord::Base.connection.migration_context.needs_migration?
29
+ else
30
+ ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths).needs_migration?
31
+ end
28
32
  end
29
33
 
30
34
  def self.engine
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GetaroundUtils
4
- VERSION = '0.2.33'
4
+ VERSION = '0.2.34'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getaround_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.33
4
+ version: 0.2.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drivy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-04-24 00:00:00.000000000 Z
12
+ date: 2024-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler