dor-services-client 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +4 -0
- data/README.md +0 -1
- data/dor-services-client.gemspec +1 -0
- data/lib/dor/services/client.rb +1 -0
- data/lib/dor/services/client/sdr.rb +4 -0
- data/lib/dor/services/client/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0f526b22a7fe1f4619a01501d4cf9f842a572c35fce3f91c989b7d79d9ce2dc
|
4
|
+
data.tar.gz: e272607cbfe44f9becb21a283c5f58b2f0b2cb841353d3a078f4160704bbc7c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79b720ee8cc51882fc180732550c2105e06738834c724956aea8b99dd41c2fd58dcb30709ac32fb5e19fc17787b7f98e97a89e7a09114a5bab8b5152ec93cb9d
|
7
|
+
data.tar.gz: 3cf6bf127e73ef36e8076dad5bd26424238aa3644a726e380204f478d67ee1f911db5be0d047e979d4d46a45c0e67dd0d2a59b620bf316c8524b5ee37e543ad2
|
data/README.md
CHANGED
@@ -107,7 +107,6 @@ object_client.files.preserved_content(filename: filename_string, version: versio
|
|
107
107
|
object_client.files.list
|
108
108
|
object_client.release_tags.create(release: release, what: what, to: to, who: who)
|
109
109
|
object_client.sdr.content_diff(current_content: existing_content)
|
110
|
-
object_client.sdr.current_version
|
111
110
|
object_client.sdr.metadata(datastream: dsid)
|
112
111
|
object_client.sdr.signature_catalog
|
113
112
|
|
data/dor-services-client.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.add_dependency 'activesupport', '>= 4.2', '< 7'
|
26
26
|
spec.add_dependency 'cocina-models', '~> 0.4.0'
|
27
|
+
spec.add_dependency 'deprecation'
|
27
28
|
spec.add_dependency 'faraday', '~> 0.15'
|
28
29
|
spec.add_dependency 'moab-versioning', '~> 4.0'
|
29
30
|
spec.add_dependency 'nokogiri', '~> 1.8'
|
data/lib/dor/services/client.rb
CHANGED
@@ -8,6 +8,9 @@ module Dor
|
|
8
8
|
class Client
|
9
9
|
# API calls that are about preserved objects
|
10
10
|
class SDR < VersionedService
|
11
|
+
extend Deprecation
|
12
|
+
self.deprecation_horizon = 'dor-services-client version 4.0'
|
13
|
+
|
11
14
|
# @param object_identifier [String] the pid for the object
|
12
15
|
def initialize(connection:, version:, object_identifier:)
|
13
16
|
super(connection: connection, version: version)
|
@@ -29,6 +32,7 @@ module Dor
|
|
29
32
|
raise MalformedResponse, "Unable to parse XML from current_version API call: #{xml}"
|
30
33
|
end
|
31
34
|
end
|
35
|
+
deprecation_deprecate current_version: 'use preservation-client current_version instead'
|
32
36
|
|
33
37
|
def signature_catalog
|
34
38
|
resp = signature_catalog_response
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-09-
|
12
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -45,6 +45,20 @@ dependencies:
|
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.4.0
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: deprecation
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
48
62
|
- !ruby/object:Gem::Dependency
|
49
63
|
name: faraday
|
50
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,6 +207,7 @@ executables: []
|
|
193
207
|
extensions: []
|
194
208
|
extra_rdoc_files: []
|
195
209
|
files:
|
210
|
+
- ".github/pull_request_template.md"
|
196
211
|
- ".gitignore"
|
197
212
|
- ".rspec"
|
198
213
|
- ".rubocop.yml"
|
@@ -240,8 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
255
|
- !ruby/object:Gem::Version
|
241
256
|
version: '0'
|
242
257
|
requirements: []
|
243
|
-
|
244
|
-
rubygems_version: 2.7.8
|
258
|
+
rubygems_version: 3.0.3
|
245
259
|
signing_key:
|
246
260
|
specification_version: 4
|
247
261
|
summary: A client for dor-services-app
|