migrate-hack 0.2.3 → 0.2.4
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/bin/migrate-hack.sh +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da3b0046f715aba0efbc74d2a20dff172086186b5f02d5b7c37324cb0d05183c
|
4
|
+
data.tar.gz: c64defed493fe3369a2c47114efb10b72e59952dcd7a227415117ee3d479a399
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c9e0c9c8b2c09a4aa76c453f61b055bf7fd61269a0978d647f26a401ec9587f92690600ccdf7ec4c2f923918add87d5a1e312bc250a6fdb63b412e1350ff42
|
7
|
+
data.tar.gz: dbf44f84e52571991e165e51337792a28ad37161ab6fb12f73ba9b361d831945d88041fe0263877c7e373603924a16c97aa22bfe7fb1bce045f713d09c3694e0
|
data/bin/migrate-hack.sh
CHANGED
@@ -6,9 +6,16 @@
|
|
6
6
|
# copying files from a specified directory to the current one.
|
7
7
|
# Usage: ./migrate-hack.sh [--env=FILE] [--copy=DIR] [--help] [--version]
|
8
8
|
|
9
|
-
VERSION="0.2.
|
9
|
+
VERSION="0.2.4"
|
10
10
|
ENV_FILE=""
|
11
11
|
COPY_DIR=""
|
12
|
+
|
13
|
+
# VERIFY GIT REPO
|
14
|
+
if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
|
15
|
+
echo "❌ [ERROR] - migrate-hack must be run inside a Git repository."
|
16
|
+
exit 1
|
17
|
+
fi
|
18
|
+
|
12
19
|
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
13
20
|
|
14
21
|
# GETTING ARGS
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migrate-hack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Zillner
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-05-12 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: "Run any amount of migrations. migrate-hack fixes your migrations. This
|
13
13
|
gem rewinds your commits to apply migrations safely, and then puts everything back
|