litestream 0.10.5 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/litestream/verification_job.rb +13 -0
- data/lib/litestream/version.rb +1 -1
- data/lib/litestream.rb +6 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb3230d8ee2ab817e4154a538aac303cf9132bc0795fa8db8eabd5b68cc8f764
|
4
|
+
data.tar.gz: d9adca50074b601e1f1420b1bdc84423213b88a3472a17927a12c3b17bb6fd35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e69e7545d77005145591cfe2e4f891fd38c091b8fc5765ac79bee8d3ed6476b9ba07949b45400ac83048a465bf8bd412d9223eb8b9cf02c4b0c5b283fc1fdb5
|
7
|
+
data.tar.gz: 66af38abb358bf4189bf447d7929e6ed698e351d25963b13f48f1cb71b716308a322d56c9bed8b90be612d05867e9523143b44304b529170490e2c0315389a93
|
data/lib/litestream/version.rb
CHANGED
data/lib/litestream.rb
CHANGED
@@ -23,6 +23,7 @@ module Litestream
|
|
23
23
|
|
24
24
|
mattr_writer :username
|
25
25
|
mattr_writer :password
|
26
|
+
mattr_writer :queue
|
26
27
|
|
27
28
|
class << self
|
28
29
|
def verify!(database_path)
|
@@ -51,7 +52,7 @@ module Litestream
|
|
51
52
|
# use method instead of attr_accessor to ensure
|
52
53
|
# this works if variable set after Litestream is loaded
|
53
54
|
def username
|
54
|
-
@username ||= ENV["LITESTREAM_USERNAME"] || @@username
|
55
|
+
@username ||= ENV["LITESTREAM_USERNAME"] || @@username || "litestream"
|
55
56
|
end
|
56
57
|
|
57
58
|
# use method instead of attr_accessor to ensure
|
@@ -60,6 +61,10 @@ module Litestream
|
|
60
61
|
@password ||= ENV["LITESTREAM_PASSWORD"] || @@password
|
61
62
|
end
|
62
63
|
|
64
|
+
def queue
|
65
|
+
@queue ||= ENV["LITESTREAM_QUEUE"] || @@queue || "default"
|
66
|
+
end
|
67
|
+
|
63
68
|
def replicate_process
|
64
69
|
info = {}
|
65
70
|
if !`which systemctl`.empty?
|
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.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Margheim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logfmt
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activejob
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rubyzip
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +108,7 @@ files:
|
|
94
108
|
- app/controllers/litestream/application_controller.rb
|
95
109
|
- app/controllers/litestream/processes_controller.rb
|
96
110
|
- app/controllers/litestream/restorations_controller.rb
|
111
|
+
- app/jobs/litestream/verification_job.rb
|
97
112
|
- app/views/layouts/litestream/_style.html
|
98
113
|
- app/views/layouts/litestream/application.html.erb
|
99
114
|
- app/views/litestream/processes/show.html.erb
|