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 +4 -4
- data/lib/bleib/migrations.rb +5 -2
- data/lib/bleib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab7569650286fc392c4f645ae36b7bdcd55668a5f810e27bdf2b55e2db6bf171
|
4
|
+
data.tar.gz: 88e9940fab575b50b13ad45160b8e5264cb15cceb5e7d49f2474e65eb7d128ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76a8668b05c073e38bb27b6a7ebdc3db5ccab53d2b392a1b51c338db6d39675b4aca71e2fe497de6372af84cbc35b95533e8acd39d782a5beea9a480defe8849
|
7
|
+
data.tar.gz: d7e636f7a072684c0e26840bca4b57f2edd7b4eae8915fef3676c18e9b4e21262cba9a003e9df48bcdf37db82fb561f2d7fec97ea31537f49e5223531542c700
|
data/lib/bleib/migrations.rb
CHANGED
@@ -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 =
|
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
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.
|
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:
|
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.
|
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.
|