bleib 0.0.14 → 0.0.15
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 +7 -1
- data/lib/bleib/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e1f9c38f0f6a8e80404b67b52fc01cc7d43c6d57d5baf6c383b0320e0c4c3d3
|
|
4
|
+
data.tar.gz: 3eafe905d3cd65ba687e45e6bdaa2b342be55941a398cdcedd9654ba2fcc38a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ff7f0d01d721a956b04872eeaabd2194f816ac8e97617388212818357b6398d1f727321b4c47b79ea0e1f7fe5f5f5c81752a3197264158b9dfd462be52788bf
|
|
7
|
+
data.tar.gz: 3e40efa8504edc316b56a99d9cacdeb629d0a5e4c42fbd0d08ae656452072bf079791d1c3eb7faae228ba532115990e3d2052fbc50e50cdc6778e8a9253b9836
|
data/lib/bleib/migrations.rb
CHANGED
|
@@ -56,7 +56,13 @@ module Bleib
|
|
|
56
56
|
|
|
57
57
|
def check_migrations!
|
|
58
58
|
check_wagon_migrations! if wagons_gem?
|
|
59
|
-
|
|
59
|
+
|
|
60
|
+
# https://apidock.com/rails/v7.1.3.4/ActiveRecord/Migration/check_pending
|
|
61
|
+
if Rails::VERSION::MAJOR < 7 || (Rails::VERSION::MAJOR == 7 && Rails::VERSION::MINOR.zero?)
|
|
62
|
+
ActiveRecord::Migration.check_pending!
|
|
63
|
+
else
|
|
64
|
+
ActiveRecord::Migration.check_all_pending!
|
|
65
|
+
end
|
|
60
66
|
end
|
|
61
67
|
|
|
62
68
|
def check_wagon_migrations!
|
data/lib/bleib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
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.15
|
|
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
|
-
dependencies:
|
|
11
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
13
27
|
description: Intended for use in containerized setups where another component takes
|
|
14
28
|
care of migrating the database.
|
|
15
29
|
email: viehweger@puzzle.ch
|
|
@@ -44,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
44
58
|
- !ruby/object:Gem::Version
|
|
45
59
|
version: '0'
|
|
46
60
|
requirements: []
|
|
47
|
-
rubygems_version: 3.5.
|
|
61
|
+
rubygems_version: 3.5.22
|
|
48
62
|
signing_key:
|
|
49
63
|
specification_version: 4
|
|
50
64
|
summary: Use a rake task to wait on database and migrations.
|