preservation-client 6.2.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +0 -2
- data/lib/preservation/client/objects.rb +0 -7
- data/lib/preservation/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ea7074b6f7968d89b5fad106ff66fe8d15b5fa1d9995396bcafb05c348bb764
|
4
|
+
data.tar.gz: 0b724aabce34538335e7e1ec55fe62ad799d7d3c97c49e6e980f597ca3c05161
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0435faf772dfec04d6c53c9a9c7bf5700598b1bc0b9bbb77497bb65e2e81c819474ff421cfeef5bcbcb24bafe1436546513424e1e0f81e49432bd57fd56efd35
|
7
|
+
data.tar.gz: 403420c16c0f3224fe64b5a70c5ae1e80f4e80470a6a93e392abb375a8de60acced13630ebf51a49ea118874a73b101217cef8076a50ff61e7385340846f457f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -72,8 +72,6 @@ Note that the preservation service is behind a firewall.
|
|
72
72
|
|
73
73
|
### Retrieve file signature (checksum) information
|
74
74
|
|
75
|
-
- `client.objects.checksums(druids: druids)` - returns info as raw csv
|
76
|
-
- `client.objects.checksums(druids: druids, format: 'json')` - returns info as json
|
77
75
|
- `client.objects.checksum(druid: 'oo000oo0000')` - returns info as array of hashes
|
78
76
|
|
79
77
|
### Retrieve individual files from preservation
|
@@ -8,13 +8,6 @@ module Preservation
|
|
8
8
|
class Client
|
9
9
|
# API calls that are about Preserved Objects
|
10
10
|
class Objects < VersionedApiService
|
11
|
-
# @param [Array] druids - required list of druids with or without prefix: 'druid:ab123cd4567' OR 'ab123cd4567'
|
12
|
-
# @param [String] resp_format - desired format of the HTTP response (default csv, json also possible)
|
13
|
-
# @return body of HTTP response from Preservation API - the checksums and filesize for each druid
|
14
|
-
def checksums(druids: [], resp_format: 'csv')
|
15
|
-
post('objects/checksums', druids: druids, format: resp_format)
|
16
|
-
end
|
17
|
-
|
18
11
|
# @param [String] druid - with or without prefix: 'druid:bb123cd4567' OR 'bb123cd4567'
|
19
12
|
# @return [Hash] the checksums and filesize for the druid
|
20
13
|
def checksum(druid:)
|