litestream 0.10.0-arm64-darwin → 0.10.1-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/litestream/version.rb +1 -1
- data/lib/litestream.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f2caa2b2e63963632a7ec3570b59a7a84279a2e0ad57ea7a6db2f8c3ebac9d6
|
4
|
+
data.tar.gz: 94fbda64410547a7f2a3db2322b82da726d6f8371b0af60e327491e6fd6ecf80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 360bd7fcce7fd80fad68d9d919c296179387fa256ef6053a0fde73a79268794412be9ce9173aa59e71a9a7aca55a90a7a28ac7ff212dc30e7c037dee9fb1b108
|
7
|
+
data.tar.gz: c69677583387ba5f317e78ffac77e4ed2395794bc0d15e356b64993a48e293c417b2c73fc52623262775c60fd67bf42cbc310b8aebde9780725e20ebdad75ee8
|
data/lib/litestream/version.rb
CHANGED
data/lib/litestream.rb
CHANGED
@@ -39,7 +39,9 @@ module Litestream
|
|
39
39
|
backup = SQLite3::Database.new(backup_path)
|
40
40
|
result = backup.execute("SELECT 1 FROM _litestream_verification WHERE uuid = ? LIMIT 1", sentinel) # => [[1]] || []
|
41
41
|
|
42
|
-
raise VerificationFailure, "Verification failed
|
42
|
+
raise VerificationFailure, "Verification failed for `#{database_path}`" if result.empty?
|
43
|
+
|
44
|
+
true
|
43
45
|
ensure
|
44
46
|
database.execute("DELETE FROM _litestream_verification WHERE uuid = ?", sentinel)
|
45
47
|
database.close
|