snapshot_archive 0.18.0 → 0.19.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: 5ab6c5f3227409541f5e84472355b4294413a5074d6b9b90042e4c37bd6990b3
4
- data.tar.gz: 49a0bfb40395b586976a9e61d24584b874c29aa9d34a1c6a0d92214bc6bb5af7
3
+ metadata.gz: 8f8d2b4c725a1f21bdf25d688680e486fb3691b852b384953aa375f8fc609e02
4
+ data.tar.gz: e83411afc3f507e4a693a79b07fc25de87f039cd90824d843ea18e3cdd63a1bb
5
5
  SHA512:
6
- metadata.gz: 0e4915590bcb1db0c17d2d79a19dc90e06d54357b175cdfdce97120ca2c290068eef50c21767bb158cd5c324f386aa77fda7c9a4fe6b5f5d279c9150cda6bb7b
7
- data.tar.gz: ee565bed9843a017dd8ee3fc3f044699c93087e6a7d5354ba934e773ff0cc203948408b89d2178240ec273cf70879611c7279ed93e7d83ba38b58016d28b1110
6
+ metadata.gz: acf170a6eeed4711b778d4aab84c737844ba3777ff3915825e79addeeca549cc1907595f080a6066fda368c007391d28e06f7853d9f57a8ea7e68723cf97369c
7
+ data.tar.gz: 7e5dbe60cc99216411bfa2d2f29871b8aa9c8641815d4cb3e2f20cc0302fc300105169aa37282599a5b6595d0563407297069a73c285d906d2606a4374b6a841
@@ -67,7 +67,8 @@ module SnapshotArchive
67
67
  end
68
68
 
69
69
  def delete(id)
70
- md_path = File.join(path, id, "metadata.json")
70
+ dir = File.join(path, id)
71
+ md_path = File.join(dir, "metadata.json")
71
72
  raise ArgumentError.new("unknown snapshot: #{id}") unless File.exist?(md_path)
72
73
  metadata = JSON.parse(File.read(md_path))
73
74
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.18.0"
4
+ VERSION = "0.19.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom