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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bed8dcd19dcbcd18cb303450debe16dc2f32060e66acc3506a547870789bae5e
4
- data.tar.gz: a7c4880010e32aceedd6a3fdfd5e81a8501e50f0e01cdd1d79ef1b2d5f6695a4
3
+ metadata.gz: c0f526b22a7fe1f4619a01501d4cf9f842a572c35fce3f91c989b7d79d9ce2dc
4
+ data.tar.gz: e272607cbfe44f9becb21a283c5f58b2f0b2cb841353d3a078f4160704bbc7c6
5
5
  SHA512:
6
- metadata.gz: 414ba947b6c25d3219f53538cea66f6f16d4c742a413dfea18800145eb083c72dcd6d45db4762ee7cf17b1cd1d1f68d125c118f7af138526d2ed9d58546e39ac
7
- data.tar.gz: 5b6784ff405e9b96e29c9a2e74c4ec6cbc16ccb585dd9793d542bf340e60a792d163e6c076b9c9a18cb92b070c63c82661dd1d3097b366fb460a701a07452433
6
+ metadata.gz: 79b720ee8cc51882fc180732550c2105e06738834c724956aea8b99dd41c2fd58dcb30709ac32fb5e19fc17787b7f98e97a89e7a09114a5bab8b5152ec93cb9d
7
+ data.tar.gz: 3cf6bf127e73ef36e8076dad5bd26424238aa3644a726e380204f478d67ee1f911db5be0d047e979d4d46a45c0e67dd0d2a59b620bf316c8524b5ee37e543ad2
@@ -0,0 +1,4 @@
1
+ ## Why was this change made?
2
+
3
+
4
+ ## Was the documentation (README, API, wiki, consul, etc.) updated?
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
 
@@ -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'
@@ -3,6 +3,7 @@
3
3
  require 'active_support/core_ext/hash/indifferent_access'
4
4
  require 'active_support/core_ext/module/delegation'
5
5
  require 'active_support/core_ext/object/blank'
6
+ require 'deprecation'
6
7
  require 'cocina/models'
7
8
  require 'faraday'
8
9
  require 'singleton'
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '3.0.0'
6
+ VERSION = '3.1.0'
7
7
  end
8
8
  end
9
9
  end
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.0.0
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-20 00:00:00.000000000 Z
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
- rubyforge_project:
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