litestream 0.10.0-x86_64-darwin → 0.10.1-x86_64-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: 37fd7024ba49aa32e9cabe581ecd1c07e331d772a29d3ff279cdd9013e73a1e8
|
4
|
+
data.tar.gz: '05593724c96a1c44dfb21388cad95ada4dcca6a2b4e8eb1d8f8f2de95e22e807'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b234eb976dd92b197e03ab26ac46824781f799aca1de20437012672c655c84584fe61083c3730eb1bda13e4ba90b13154d20cb7ec8491a5da4cbbb4556a418ae
|
7
|
+
data.tar.gz: '0581ca12552a8a75239fbae033faead1dafdf205837a58a80779bb56389374816b0a5c9ee6aadcb67761ad23cb509fe95fc51ff6a8aca2977fd8d8eb7d9eb797'
|
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
|