litestream 0.10.0-x86_64-darwin → 0.10.2-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40caaac876c83fb253b5be358ee51822a27788fd789531f058c6945014716726
4
- data.tar.gz: 49650381680cb1f359c5945e1b7d9b38dca95cfdd446fad0a0534a357ea7686d
3
+ metadata.gz: 15605efd9265e956d83a4695f9ae392eee2f7dc6d4422df008dec0db283318d3
4
+ data.tar.gz: 81850e19da8d166d7c39a6a7a3c6d843bea0cf5257b4a1697bb2ae414a2a01c8
5
5
  SHA512:
6
- metadata.gz: 53bddbe69e324e5bf376192578b4a34d9e0a7780e8cb08692e06e0419bd7bded4058597f51a1fc8e8d4909d3f57bf11e3fb1a2d25c025823a21520b0522b2196
7
- data.tar.gz: a0a1392997dd3f2aa69a6a7805b7838f1b87e84b7e23bdc1ccf5c84a689b5da66e327ff7a0126502ec7a3db9fb9746f5c31db8b0a3796472f5ae916039f67b32
6
+ metadata.gz: ec41bf4b6f35d8363e647dbd61e43fc4c6409684eb0aec46545d5b4b6d507afd2ef69d18365621fda7efc376c670622be6a6ebd433041fdcfac6764330fa264d
7
+ data.tar.gz: 20ec75d14d9392eab79c05532c3752d21732072232e3d601b83446d90874996671a2fdfd5888da2ea77760f42e0c7c5434b8eaf2b6182eecbdd7e55bd6cdaaea
@@ -1,3 +1,3 @@
1
1
  module Litestream
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.2"
3
3
  end
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, sentinel not found" if result.empty?
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
@@ -13,7 +13,7 @@ namespace :litestream do
13
13
  true
14
14
  end
15
15
 
16
- desc 'Monitor and continuously replicate SQLite databases defined in your config file, e.g. rake litestream:replicate -- -exec "foreman start"'
16
+ desc 'Monitor and continuously replicate SQLite databases defined in your config file, for example `rake litestream:replicate -- -exec "foreman start"`'
17
17
  task replicate: :environment do
18
18
  options = {}
19
19
  if (separator_index = ARGV.index("--"))
@@ -26,7 +26,7 @@ namespace :litestream do
26
26
  Litestream::Commands.replicate(async: true, **options)
27
27
  end
28
28
 
29
- desc "Restore a SQLite database from a Litestream replica, e.g. rake litestream:restore -- -database=storage/production.sqlite3"
29
+ desc "Restore a SQLite database from a Litestream replica, for example `rake litestream:restore -- -database=storage/production.sqlite3`"
30
30
  task restore: :environment do
31
31
  options = {}
32
32
  if (separator_index = ARGV.index("--"))
@@ -40,7 +40,7 @@ namespace :litestream do
40
40
  Litestream::Commands.restore(database, async: true, **options)
41
41
  end
42
42
 
43
- desc "List all databases and associated replicas in the config file, e.g. rake litestream:databases -- -no-expand-env"
43
+ desc "List all databases and associated replicas in the config file, for example `rake litestream:databases -- -no-expand-env`"
44
44
  task databases: :environment do
45
45
  options = {}
46
46
  if (separator_index = ARGV.index("--"))
@@ -53,7 +53,7 @@ namespace :litestream do
53
53
  Litestream::Commands.databases(async: true, **options)
54
54
  end
55
55
 
56
- desc "List all generations for a database or replica, e.g. rake litestream:generations -- -database=storage/production.sqlite3"
56
+ desc "List all generations for a database or replica, for example `rake litestream:generations -- -database=storage/production.sqlite3`"
57
57
  task generations: :environment do
58
58
  options = {}
59
59
  if (separator_index = ARGV.index("--"))
@@ -67,7 +67,7 @@ namespace :litestream do
67
67
  Litestream::Commands.generations(database, async: true, **options)
68
68
  end
69
69
 
70
- desc "List all snapshots for a database or replica, e.g. rake litestream:snapshots -- -database=storage/production.sqlite3"
70
+ desc "List all snapshots for a database or replica, for example `rake litestream:snapshots -- -database=storage/production.sqlite3`"
71
71
  task snapshots: :environment do
72
72
  options = {}
73
73
  if (separator_index = ARGV.index("--"))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: litestream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.2
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Stephen Margheim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-05 00:00:00.000000000 Z
11
+ date: 2024-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logfmt