snapshot_archive 0.9.0 → 0.11.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: 5e7e55a13d956b69746a56a472a0bb5bf0fca87c8455622ba0486d081b84981a
4
- data.tar.gz: 0cb06eb238ad6d518515847751f7c1dfdb98d0f234c47ab10c798ff7c828a5de
3
+ metadata.gz: 994084b5ec3f9502e482da4842450e634dc6a5aeef20a2ad114273197a34d058
4
+ data.tar.gz: 2e6d22fa72a1e146eed5004e693d01bd16062bd5a28e87588712ed7c77a6e268
5
5
  SHA512:
6
- metadata.gz: 13abb74a373a7d31f81704872a7e6d5ab312de98dff229333fbd2ccebb220c5c56a46ec5bbfe0a0035ee496ea75a2d34942f357a5dd5469f8b4cd6c8cc5415cf
7
- data.tar.gz: fae50ea54d90d52261a5959cf964b4e1849d0564401c06fff92075288b8cb02a53668179afc9689e70cf8aa9cedde1c1f244f119aa4ded59241d07ab398dee34
6
+ metadata.gz: 7086c92ca86e1af94d5ddd3dc5ce863d646d67392ef61cda16562b42a8c214e185df006f561d46bd565782d4208dfbb8c82b8018fc494fa7fd5d5819be9918fc
7
+ data.tar.gz: 28e34f40111454d50982e8cc3d715f3371d97c04638358244143dfbd5c03cb777176e5ba65075e52b168a03f4415e28e9de9273e29963e808390c7af0cfc2491
@@ -14,7 +14,12 @@ module SnapshotArchive
14
14
  def call
15
15
  stores_metadata = (
16
16
  stores
17
- .map { |name, store| store.backup(dir)&.merge(type: name) }
17
+ .map { |name, store|
18
+ File
19
+ .join(dir, name)
20
+ .tap { FileUtils.mkdir(_1) }
21
+ .then { store.backup(_1)&.merge(type: name) }
22
+ }
18
23
  .compact
19
24
  )
20
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.9.0"
4
+ VERSION = "0.11.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.9.0
4
+ version: 0.11.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-08 00:00:00.000000000 Z
11
+ date: 2024-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander