snapshot_archive 0.20.0 → 0.21.0

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: 343cae8cf1244c3678c4ade0847ebd0a88c7c2e30ddf232cab6947e191f167c9
4
- data.tar.gz: 230397ff95dae9a7310eb76773f3e5649be397e11ed055b1e0bedbf38d415d4c
3
+ metadata.gz: 1125fd70197585f350883edd86a53fac23b3ed69842d4b9d4ff8efd2e41a8f6d
4
+ data.tar.gz: 321ea6ce8c4ecb297f4aad805238e06ba60e8bb1c99583224a85009e949eac96
5
5
  SHA512:
6
- metadata.gz: 58b03d3bbe6ce5fe88f40803d97597f8864182fa2ef35c89244b8583fc95a3a838bc3d112d00d4ae58b0334ecbd458bae901b115ed22c390f399fc079a63545e
7
- data.tar.gz: 45feaf3369099eb7561842db94bd269bc973017bf8d10a3342cd71dd9832aca895ae17183dfedfbd4c7945af5348ba5490eef31cefe9324f6be6e3ce771601c2
6
+ metadata.gz: 6ee78f75b47b90926ed21e4c1694b3af189867a7e38b674b7fa93e12cb42923773ec1cea78564b8dcbdc60a98fb1959934a85f1d1b23cf7057f9c5563e0cc379
7
+ data.tar.gz: baa352e68bbccb635e2caf625fe5435cdd90c30a8e558276d804fc24651fe65b99541c7302507dc946473c91a56a62277c0a6c487ca5e093baa7d354a6cc8d7e
@@ -6,7 +6,7 @@ SnapshotArchive.configure do |config|
6
6
  )
7
7
 
8
8
  config.register_store("mysql_rails") do |store|
9
- store.backup do |dir, _args|
9
+ store.backup do |*args, **opts|
10
10
  existing_databases = (
11
11
  config
12
12
  .shell
@@ -26,11 +26,11 @@ SnapshotArchive.configure do |config|
26
26
 
27
27
  next if db_names.empty?
28
28
 
29
- SnapshotArchive::Cfg.bind_backup("mysql", db_names).backup(dir)
29
+ SnapshotArchive::Cfg.bind_backup("mysql", db_names).backup(*args, **opts)
30
30
  end
31
31
 
32
32
  store.restore do |metadata|
33
- SnapshotArchive::Cfg.store("mysql").restore(metadata)
33
+ SnapshotArchive::Cfg.store("mysql").restore(metadata: metadata)
34
34
  end
35
35
  end
36
36
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.20.0"
4
+ VERSION = "0.21.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-11 00:00:00.000000000 Z
11
+ date: 2024-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander