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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/migrate-hack.sh +8 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2936e13dcdd668f14d5cd94d5e9011d3a76c351a5246f3aa03eb961de70d5cf
4
- data.tar.gz: 8d150ef42b295b0bca94d7560bb8350e3f7ea9b428795bb68410d150fb9bf03f
3
+ metadata.gz: da3b0046f715aba0efbc74d2a20dff172086186b5f02d5b7c37324cb0d05183c
4
+ data.tar.gz: c64defed493fe3369a2c47114efb10b72e59952dcd7a227415117ee3d479a399
5
5
  SHA512:
6
- metadata.gz: 4d385f52a38e7e866ae557ab0b1115e9383229dc363d56acc7c69dcc5f037b32da3e603612df82699eb60009883c4099a094bdb579a6ef4c96ec0668013c7490
7
- data.tar.gz: a3fe8bf68acc6ec1b8be14ae12cd342d85e9655c1a0a5862c452325d55f1a6b26b6c0479a1b6266b9fab81f35a718813fd7369027dd0b061c95d8f58a997f989
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.3"
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.3
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-04-01 00:00:00.000000000 Z
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