dor-services-client 6.33.0 → 6.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/dor/services/client/metadata.rb +12 -0
- data/lib/dor/services/client/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d82703eaa8f5daf88bf1214d8d57f0791812eda65c3f42e2c3504dfd06fc2a6
|
4
|
+
data.tar.gz: 78db360c9476e30db12f82d1fcb06b0d4eb49d31079acb86a4c7c306e2a81d9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7e59b66673dc2cbd5df31c65132db5d5185a944fcd9f66ab084a620b3313b485c4744c26d3d9f66433916384d138ef0c51c9c5f836bdd1f4021b1e9936590fb
|
7
|
+
data.tar.gz: 75e0565d8a27b44b59112aeac4aff0c4c5c01aecc4260e2cc544ecca798cf5efd3c548bc1ff7a3c71d5fa736b0fa976dc91e61f10e2ec161fea099336d0c53ac
|
data/README.md
CHANGED
@@ -129,6 +129,9 @@ object_client.metadata.dublin_core
|
|
129
129
|
# Get the public descriptive XML representation
|
130
130
|
object_client.metadata.descriptive
|
131
131
|
|
132
|
+
# Get the public XML representation
|
133
|
+
object_client.metadata.public_xml
|
134
|
+
|
132
135
|
# Update legacy XML representation
|
133
136
|
object_client.metadata.legacy_update(
|
134
137
|
descriptive: {
|
@@ -63,6 +63,18 @@ module Dor
|
|
63
63
|
raise_exception_based_on_response!(resp, object_identifier)
|
64
64
|
end
|
65
65
|
|
66
|
+
# @return [String, NilClass] The public XML representation of the object or nil if response is 404
|
67
|
+
# @raise [UnexpectedResponse] on an unsuccessful response from the server
|
68
|
+
def public_xml
|
69
|
+
resp = connection.get do |req|
|
70
|
+
req.url "#{base_path}/public_xml"
|
71
|
+
end
|
72
|
+
return resp.body if resp.success?
|
73
|
+
return if resp.status == 404
|
74
|
+
|
75
|
+
raise_exception_based_on_response!(resp, object_identifier)
|
76
|
+
end
|
77
|
+
|
66
78
|
# @return [String, NilClass] the dor object's source MODS XML or nil if response is 404
|
67
79
|
# @raise [UnexpectedResponse] on an unsuccessful response from the server
|
68
80
|
def mods
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
- Michael Giarlo
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-04-
|
12
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -205,7 +205,7 @@ dependencies:
|
|
205
205
|
- - ">="
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
|
-
description:
|
208
|
+
description:
|
209
209
|
email:
|
210
210
|
- jcoyne@justincoyne.com
|
211
211
|
- leftwing@alumni.rutgers.edu
|
@@ -253,7 +253,7 @@ files:
|
|
253
253
|
homepage: https://github.com/sul-dlss/dor-services-client
|
254
254
|
licenses: []
|
255
255
|
metadata: {}
|
256
|
-
post_install_message:
|
256
|
+
post_install_message:
|
257
257
|
rdoc_options: []
|
258
258
|
require_paths:
|
259
259
|
- lib
|
@@ -268,8 +268,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
268
|
- !ruby/object:Gem::Version
|
269
269
|
version: '0'
|
270
270
|
requirements: []
|
271
|
-
rubygems_version: 3.0.
|
272
|
-
signing_key:
|
271
|
+
rubygems_version: 3.0.6
|
272
|
+
signing_key:
|
273
273
|
specification_version: 4
|
274
274
|
summary: A client for dor-services-app
|
275
275
|
test_files: []
|