preservation-client 3.2.0 → 3.2.1

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: 6e05a1561753b1ba55bf0d15d239ab6e740430818548143e330327e32e44da7f
4
- data.tar.gz: 8385f5b0f5c7fdbf0ee69e9c0f182a899fd36ea4e41b1d1f5d7f3a008e9e207f
3
+ metadata.gz: 346519c8c530b30507578d91469ffd1f50cf08fe3b6b5f5e46905f35e6d870ab
4
+ data.tar.gz: 38afa1c113b86737ac3593101b3bfc1133de42bc58398de19250636bbdbefc05
5
5
  SHA512:
6
- metadata.gz: af564b18b850e9a4528743844dfc062fdb6b848f3725470f86e6b46e4c3c1e640952c736dfbad40985bdacee81c78ca344a2fe74455df862ab3ee44263a65981
7
- data.tar.gz: 83944e43ffc7538068655d5dbf9385bb137e6a978e1307fb43285f574ddda510a705ce8ba64077bb6573cea67f0cae5a2b8e05e094df5793f518b52f6eec2762
6
+ metadata.gz: 81c98f1a410de28f6c8bf90dff39c5537670aa4c8ce4625779d21bd8fbbe3c6341a0930f0fc8572a417d6fd1bd5cba4d69586deb402cf8d9d70e695114138306
7
+ data.tar.gz: 38e22150bc23cf59501893becb24a39c98eb51d8ac12b5acad80f0a8ad108381a6d9cf88a5f1120a32e9388cfc36c0d1e1dfea5c6cf8b3cf42de74e2c6bda5d7
@@ -1,4 +1,12 @@
1
1
  ## Why was this change made?
2
2
 
3
3
 
4
- ## Was the documentation (README, API, wiki, consul, etc.) updated?
4
+
5
+ ## How was this change tested?
6
+
7
+
8
+
9
+ ## Which documentation and/or configurations were updated?
10
+
11
+
12
+
@@ -3,10 +3,14 @@ cache: bundler
3
3
  rvm:
4
4
  - 2.5.3
5
5
  - 2.6.4
6
+ - 2.7.1
6
7
 
7
8
  env:
8
- - "RAILS_VERSION=5.2.3"
9
- - "RAILS_VERSION=6.0.0"
9
+ jobs:
10
+ - RAILS_VERSION=5.2.3
11
+ - RAILS_VERSION=6.0.0
12
+ global:
13
+ - CC_TEST_REPORTER_ID=02e8afad8d0b699828dd69b6f45b598e7317b2d9828ea23380c3a97113068a0c
10
14
 
11
15
  before_install: gem install bundler -v 2.1.2
12
16
 
data/README.md CHANGED
@@ -88,6 +88,10 @@ Note that the preservation service is behind a firewall.
88
88
  - `client.objects.metadata(druid: 'oo000oo0000', filepath: 'identityMetadata.xml', version: '8')` - returns contents of identityMetadata.xml in version 8 of Moab object
89
89
  - `client.objects.signature_catalog('oo000oo0000')` - returns latest Moab::SignatureCatalog from Moab
90
90
 
91
+ ### Retrieve the primary moab storage location
92
+
93
+ - `client.objects.primary_moab_location(druid: 'ooo000oo0000')` - returns the path to the storage location for the primary moab
94
+
91
95
  ### Get difference information between passed contentMetadata.xml and files in the Moab
92
96
 
93
97
  - `client.objects.content_inventory_diff(druid: 'oo000oo0000', content_metadata: '<contentMetadata>...</contentMetadata>')` - returns Moab::FileInventoryDifference containing differences between passed content metadata and latest version for subset 'all'
@@ -71,6 +71,14 @@ module Preservation
71
71
  file(druid, 'metadata', filepath, version)
72
72
  end
73
73
 
74
+ # retrieve the storage location for the primary moab of the given druid
75
+ # @param [String] druid - with or without prefix: 'druid:ab123cd4567' or 'ab123cd4567'
76
+ # @return [String] the storage location of the primary moab for the given druid
77
+ # @raise [Preservation::Client::NotFoundError] when druid is not found
78
+ def primary_moab_location(druid:)
79
+ get("objects/#{druid}/primary_moab_location", {}, on_data: nil)
80
+ end
81
+
74
82
  # convenience method for retrieving latest Moab::SignatureCatalog from a Moab object,
75
83
  # @param [String] druid - with or without prefix: 'druid:ab123cd4567' OR 'ab123cd4567'
76
84
  # @return [Moab::SignatureCatalog] the manifest of all files previously ingested
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Preservation
4
4
  class Client
5
- VERSION = '3.2.0'
5
+ VERSION = '3.2.1'
6
6
  end
7
7
  end
@@ -38,6 +38,6 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency 'rake', '>= 12.3.3'
39
39
  spec.add_development_dependency 'rspec', '~> 3.0'
40
40
  spec.add_development_dependency 'rubocop', '~> 0.77.0'
41
- spec.add_development_dependency 'simplecov'
41
+ spec.add_development_dependency 'simplecov', '~> 0.17.0' # For CodeClimate
42
42
  spec.add_development_dependency 'webmock'
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preservation-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-30 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -152,16 +152,16 @@ dependencies:
152
152
  name: simplecov
153
153
  requirement: !ruby/object:Gem::Requirement
154
154
  requirements:
155
- - - ">="
155
+ - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: '0'
157
+ version: 0.17.0
158
158
  type: :development
159
159
  prerelease: false
160
160
  version_requirements: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - ">="
162
+ - - "~>"
163
163
  - !ruby/object:Gem::Version
164
- version: '0'
164
+ version: 0.17.0
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: webmock
167
167
  requirement: !ruby/object:Gem::Requirement
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0'
227
227
  requirements: []
228
- rubygems_version: 3.0.3
228
+ rubygems_version: 3.1.2
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: A thin client for getting info from SDR preservation.