bleib 0.0.15 → 0.0.16

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: 3e1f9c38f0f6a8e80404b67b52fc01cc7d43c6d57d5baf6c383b0320e0c4c3d3
4
- data.tar.gz: 3eafe905d3cd65ba687e45e6bdaa2b342be55941a398cdcedd9654ba2fcc38a2
3
+ metadata.gz: ab7569650286fc392c4f645ae36b7bdcd55668a5f810e27bdf2b55e2db6bf171
4
+ data.tar.gz: 88e9940fab575b50b13ad45160b8e5264cb15cceb5e7d49f2474e65eb7d128ce
5
5
  SHA512:
6
- metadata.gz: 2ff7f0d01d721a956b04872eeaabd2194f816ac8e97617388212818357b6398d1f727321b4c47b79ea0e1f7fe5f5f5c81752a3197264158b9dfd462be52788bf
7
- data.tar.gz: 3e40efa8504edc316b56a99d9cacdeb629d0a5e4c42fbd0d08ae656452072bf079791d1c3eb7faae228ba532115990e3d2052fbc50e50cdc6778e8a9253b9836
6
+ metadata.gz: 76a8668b05c073e38bb27b6a7ebdc3db5ccab53d2b392a1b51c338db6d39675b4aca71e2fe497de6372af84cbc35b95533e8acd39d782a5beea9a480defe8849
7
+ data.tar.gz: d7e636f7a072684c0e26840bca4b57f2edd7b4eae8915fef3676c18e9b4e21262cba9a003e9df48bcdf37db82fb561f2d7fec97ea31537f49e5223531542c700
@@ -67,8 +67,11 @@ module Bleib
67
67
 
68
68
  def check_wagon_migrations!
69
69
  paths = Wagons.all.flat_map(&:migrations_paths)
70
- context = ActiveRecord::MigrationContext.new(paths, ActiveRecord::SchemaMigration)
71
-
70
+ context = if Gem::Version.new(Rails::VERSION::STRING) < Gem::Version.new('7.1.0')
71
+ ActiveRecord::MigrationContext.new(paths, ActiveRecord::SchemaMigration)
72
+ else
73
+ ActiveRecord::MigrationContext.new(paths)
74
+ end
72
75
  # we do not need the correct output, just the right exception
73
76
  # in this case, the output only considers the main-app migration, not the ones in wagons
74
77
  raise ActiveRecord::PendingMigrationError if context.needs_migration?
data/lib/bleib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bleib
4
- VERSION = '0.0.15'
4
+ VERSION = '0.0.16'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bleib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puzzle ITC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-19 00:00:00.000000000 Z
11
+ date: 2025-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  requirements: []
61
- rubygems_version: 3.5.22
61
+ rubygems_version: 3.4.19
62
62
  signing_key:
63
63
  specification_version: 4
64
64
  summary: Use a rake task to wait on database and migrations.