litestream 0.5.5-arm64-linux → 0.6.0-arm64-linux

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: 3fb74c054bfe03a4c2a3667d6f1cbc3247213dd9cdac2363e5cd65f621a778e5
4
- data.tar.gz: c786e5416360acfac00464604cf95d0105881327b2c83749963237e545d77c2d
3
+ metadata.gz: 1a936eb74c6ed67b3481d6e7fffbdd1546b79f499cd4a79869024292e2f2b8cf
4
+ data.tar.gz: ffb27db170bec42d626982f2f3aeb2c7c2646577532c64749730c2c853febbaa
5
5
  SHA512:
6
- metadata.gz: 2ed708e3522471939308d640163f3473bbe2d1ea3c69d62683df1d1e4ad017b32b686c7603608916246c6545e915099abad7319b3ba56c409d7d8f92b8546eef
7
- data.tar.gz: 575091b54057c05f6696f865c512cc3e298119afc88934909bae7daf258c41b7308ab0f379f35feb08dcba1498220fab36fe221d53eca82b5fb342015c03a142
6
+ metadata.gz: 6d5cdc5f230e7a163814187245f10dbfc926a41dba1be526cd014f543582a476583a668930fda07b2a6d404c6245d23e5e2dea16249abcbd3c09b4fae6677927
7
+ data.tar.gz: 52eece390696fb612062c8fc83e645217d03600b63100debadae6eff016746575d491ce392b8af16e7644388ea5a0e9b480219dec36e63aa56ae05796cb38e24
@@ -82,26 +82,27 @@ module Litestream
82
82
 
83
83
  def restore(database, async: false, **argv)
84
84
  raise DatabaseRequiredException, "database argument is required for restore command, e.g. litestream:restore -- --database=path/to/database.sqlite" if database.nil?
85
+ argv.stringify_keys!
86
+
87
+ execute("restore", argv, database, async: async, hashify: false)
88
+
89
+ argv["-o"] || database
90
+ end
91
+
92
+ def verify(database, async: false, **argv)
93
+ raise DatabaseRequiredException, "database argument is required for verify command, e.g. litestream:verify -- --database=path/to/database.sqlite" if database.nil? || !File.exist?(database)
94
+ argv.stringify_keys!
85
95
 
86
96
  dir, file = File.split(database)
87
97
  ext = File.extname(file)
88
98
  base = File.basename(file, ext)
89
99
  now = Time.now.utc.strftime("%Y%m%d%H%M%S")
90
100
  backup = File.join(dir, "#{base}-#{now}#{ext}")
91
-
92
101
  args = {
93
102
  "-o" => backup
94
103
  }.merge(argv)
95
104
 
96
- execute("restore", args, database, async: async, hashify: false)
97
-
98
- backup
99
- end
100
-
101
- def verify(database, async: false, **argv)
102
- raise DatabaseRequiredException, "database argument is required for verify command, e.g. litestream:verify -- --database=path/to/database.sqlite" if database.nil? || !File.exist?(database)
103
-
104
- backup = restore(database, async: false, **argv)
105
+ backup = restore(database, async: false, **args)
105
106
 
106
107
  raise BackupFailedException, "Failed to create backup for validation" unless File.exist?(backup)
107
108
 
@@ -1,5 +1,4 @@
1
1
  module Litestream
2
- # constants describing the upstream tailwindcss project
3
2
  module Upstream
4
3
  VERSION = "v0.3.13"
5
4
 
@@ -1,3 +1,3 @@
1
1
  module Litestream
2
- VERSION = "0.5.5"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -97,14 +97,14 @@ namespace :litestream do
97
97
  puts <<~TXT if result
98
98
 
99
99
  size
100
- original #{result[:size][:original]}
101
- restored #{result[:size][:restored]}
102
- delta #{result[:size][:original] - result[:size][:restored]}
100
+ original #{result["size"]["original"]}
101
+ restored #{result["size"]["restored"]}
102
+ delta #{result["size"]["original"] - result["size"]["restored"]}
103
103
 
104
104
  tables
105
- original #{result[:tables][:original]}
106
- restored #{result[:tables][:restored]}
107
- delta #{result[:tables][:original] - result[:tables][:restored]}
105
+ original #{result["tables"]["original"]}
106
+ restored #{result["tables"]["restored"]}
107
+ delta #{result["tables"]["original"] - result["tables"]["restored"]}
108
108
  TXT
109
109
  end
110
110
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: litestream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.6.0
5
5
  platform: arm64-linux
6
6
  authors:
7
7
  - Stephen Margheim