dor-services-client 6.36.0 → 7.0.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: 9a432159ad7c4d7f287ec97a252c2783e3e3a7c2d67cea054577727b97acfa52
4
- data.tar.gz: 710bca4a6fd453a73842b534616f5a8eae79040544ab563f1141e5151f903fde
3
+ metadata.gz: 5bb8a9ddf0dc77dd42ad241f0ff58a247abfbea76b679d4f82da04cff10ffdda
4
+ data.tar.gz: c857219027ca4cc668f19931dea4da44b0e91d0efa757bc6e2220e285538360e
5
5
  SHA512:
6
- metadata.gz: '0486fff69b07ebd63f409b9b8f587622fa6595d279a8cfc657dfbd230016d433fe2b01fd9b6ecef9742067bb9467e79d91d4fea28aecb38dd2601f5d7b114431'
7
- data.tar.gz: 99a486c70acb3b5926977555be3515d16dc8ff062661427037b585014024ba929515b8a71d3e2911a7118d9309222a89e10cfbd39a41d0c6c10f5d58c62436a9
6
+ metadata.gz: a676bcbbcfe6b425e3f2a6789d253e6d44d91bdedc61220e937ed3f30214caaee2bb943462756449f8ca415ba1d8494822a00d07a081101c8e8aed924d320c80
7
+ data.tar.gz: b5fdfd955d1ad5a1f9e39217f765e92af23775bf087543d02aedfae3ebfab4ea23a23ec3a18cd15aa058dcf175be013507b29b87d8b643011e74b374d76a4f44
data/README.md CHANGED
@@ -156,10 +156,6 @@ object_client.administrative_tags.update(current: 'Current : Tag', new: 'Replace
156
156
  object_client.administrative_tags.destroy(tag: 'Delete : Me')
157
157
  object_client.administrative_tags.list
158
158
 
159
- # Create and list release tags for an object
160
- object_client.release_tags.create(release: release, what: what, to: to, who: who)
161
- object_client.release_tags.list
162
-
163
159
  # Create and list events for an object
164
160
  object_client.events.create(type: type, data: data)
165
161
  object_client.events.list
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.required_ruby_version = '~> 2.6'
26
26
 
27
27
  spec.add_dependency 'activesupport', '>= 4.2', '< 7'
28
- spec.add_dependency 'cocina-models', '~> 0.60.0' # leave pinned to patch level until cocina-models hits 1.0
28
+ spec.add_dependency 'cocina-models', '~> 0.61.0' # leave pinned to patch level until cocina-models hits 1.0
29
29
  spec.add_dependency 'deprecation', '>= 0'
30
30
  spec.add_dependency 'faraday', '>= 0.15', '< 2'
31
31
  spec.add_dependency 'moab-versioning', '~> 4.0'
@@ -27,10 +27,6 @@ module Dor
27
27
  @workspace ||= Workspace.new(**parent_params)
28
28
  end
29
29
 
30
- def release_tags
31
- @release_tags ||= ReleaseTags.new(**parent_params)
32
- end
33
-
34
30
  def administrative_tags
35
31
  @administrative_tags ||= AdministrativeTags.new(**parent_params)
36
32
  end
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '6.36.0'
6
+ VERSION = '7.0.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: 6.36.0
4
+ version: 7.0.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: 2021-06-28 00:00:00.000000000 Z
12
+ date: 2021-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.60.0
40
+ version: 0.61.0
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.60.0
47
+ version: 0.61.0
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: deprecation
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -243,7 +243,6 @@ files:
243
243
  - lib/dor/services/client/object.rb
244
244
  - lib/dor/services/client/object_version.rb
245
245
  - lib/dor/services/client/objects.rb
246
- - lib/dor/services/client/release_tags.rb
247
246
  - lib/dor/services/client/response_error_formatter.rb
248
247
  - lib/dor/services/client/transfer.rb
249
248
  - lib/dor/services/client/version.rb
@@ -1,61 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Dor
4
- module Services
5
- class Client
6
- # API calls that are about a repository object
7
- class ReleaseTags < VersionedService
8
- # @param object_identifier [String] the pid for the object
9
- def initialize(connection:, version:, object_identifier:)
10
- super(connection: connection, version: version)
11
- @object_identifier = object_identifier
12
- end
13
-
14
- # Creates a new release tag for the object
15
- # @param release [Boolean]
16
- # @param what [String]
17
- # @param to [String]
18
- # @param who [String]
19
- # @return [Boolean] true if successful
20
- # @raise [NotFoundResponse] when the response is a 404 (object not found)
21
- # @raise [UnexpectedResponse] if the request is unsuccessful.
22
- # rubocop:disable Metrics/MethodLength
23
- def create(release:, what:, to:, who:)
24
- params = {
25
- to: to,
26
- who: who,
27
- what: what,
28
- release: release
29
- }
30
- resp = connection.post do |req|
31
- req.url "#{api_version}/objects/#{object_identifier}/release_tags"
32
- req.headers['Content-Type'] = 'application/json'
33
- req.body = params.to_json
34
- end
35
- raise_exception_based_on_response!(resp, object_identifier) unless resp.success?
36
-
37
- true
38
- end
39
- # rubocop:enable Metrics/MethodLength
40
-
41
- # List new release tags for the object
42
- # @raise [NotFoundResponse] when the response is a 404 (object not found)
43
- # @raise [UnexpectedResponse] if the request is unsuccessful.
44
- # @return [Hash] (see Dor::ReleaseTags::IdentityMetadata.released_for)
45
- def list
46
- resp = connection.get do |req|
47
- req.url "#{api_version}/objects/#{object_identifier}/release_tags"
48
- end
49
-
50
- raise_exception_based_on_response!(resp, object_identifier) unless resp.success?
51
-
52
- JSON.parse(resp.body)
53
- end
54
-
55
- private
56
-
57
- attr_reader :object_identifier
58
- end
59
- end
60
- end
61
- end