preservation-client 6.2.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78b7341bd3cc3fb3936f1d452aea6b335e952d514b919d3667cfdf04d1235314
4
- data.tar.gz: 459a69c3deef3fce9763fdd7d3796b7e883157cc03351a229670e0006d154410
3
+ metadata.gz: 9ea7074b6f7968d89b5fad106ff66fe8d15b5fa1d9995396bcafb05c348bb764
4
+ data.tar.gz: 0b724aabce34538335e7e1ec55fe62ad799d7d3c97c49e6e980f597ca3c05161
5
5
  SHA512:
6
- metadata.gz: 6f62d97cd2adb3a00a47fb71e57a53bc2e0bd1f392a01f44df3f559ae3d5c1a60e9d7a5e44f8dda1ab4e51637187a3fcd8b8d37e17eeab7a24aa31a06c6a7c03
7
- data.tar.gz: 947958138878897d08b49a487a72f3952d07200c8fb472dbbd1988346173c5b1747e5ad1f97b98b85ad8990e8f4eb15bd78bc29ad801da017be2118b22dd35cf
6
+ metadata.gz: 0435faf772dfec04d6c53c9a9c7bf5700598b1bc0b9bbb77497bb65e2e81c819474ff421cfeef5bcbcb24bafe1436546513424e1e0f81e49432bd57fd56efd35
7
+ data.tar.gz: 403420c16c0f3224fe64b5a70c5ae1e80f4e80470a6a93e392abb375a8de60acced13630ebf51a49ea118874a73b101217cef8076a50ff61e7385340846f457f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- preservation-client (6.2.0)
4
+ preservation-client (7.0.0)
5
5
  activesupport (>= 4.2, < 8)
6
6
  faraday (~> 2.0)
7
7
  moab-versioning (>= 5.0.0, < 7)
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:)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Preservation
4
4
  class Client
5
- VERSION = '6.2.0'
5
+ VERSION = '7.0.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preservation-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay