dor-services-client 15.0.0 → 15.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: 5c9b0b8817f35c2ad2ea2d03a6ab1d70bf5290f525c4aa9b377af70764ae1926
4
- data.tar.gz: 2075c060e362ff9e4464501ef72618b737036d23b0e73a9e0474f9f122c867a0
3
+ metadata.gz: 5d7ec32221ccf11fa986b36536aa4a298ac724a0686411ee7246e897e92c2bed
4
+ data.tar.gz: 9aadc355af7981afee4a2c82ba27c924d3693e905c07663237dbab2800f130b7
5
5
  SHA512:
6
- metadata.gz: d7131523aae0d2efe4011a3bbd4a62e2786ef276434edb61212137f2f0ef1337fe4c67c9ee6b2dd7b6b92fcb7e938f54ec3078087c029266fecfb298b2372197
7
- data.tar.gz: fc19e0baf6f1d199bbbf8c0c8fb863f90e8b9eb22118508ea34386817c1077c95d771cb3cce881e302f195ee6f1d17a1caa4d4daa75ec3cd92a8bc341e98c417
6
+ metadata.gz: a9575501c47cae7331a1761873c2f380ed6c50a4c9d64e13adf530188a6abc20b5b5be55216d9d0e4950544c8092ee47046b4097e11749f5fa8498c573c5665c
7
+ data.tar.gz: b7da6ff18817b7fd1b84757d2c701b73d6b989e6de0afa24ff1f57ccdb73331d6f7b79900b3d283dd2f17cc6230368cf1440973ceb0c483e79bb781823265340
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-services-client (15.0.0)
4
+ dor-services-client (15.1.0)
5
5
  activesupport (>= 4.2, < 8)
6
6
  cocina-models (~> 0.99.0)
7
7
  deprecation
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '15.0.0'
6
+ VERSION = '15.1.0'
7
7
  end
8
8
  end
9
9
  end
@@ -36,12 +36,13 @@ module Dor
36
36
  # reset. This is called by the reset-workspace step of the accessionWF
37
37
  # @raise [NotFoundResponse] when the response is a 404 (object not found)
38
38
  # @raise [UnexpectedResponse] when the response is not successful.
39
- # @param [String] workflow (nil) which workflow to callback to.
40
39
  # @param [String] lane_id for prioritization (default or low)
41
40
  # @return [String] the URL of the background job on dor-service-app
42
- def cleanup(workflow: nil, lane_id: nil)
41
+ def cleanup(lane_id: nil)
42
+ cleanup_workspace_path = workspace_path
43
+ cleanup_workspace_path += "?lane-id=#{lane_id}" if lane_id
43
44
  resp = connection.delete do |req|
44
- req.url with_query_params(workspace_path, workflow, lane_id)
45
+ req.url cleanup_workspace_path
45
46
  end
46
47
  return resp.headers['Location'] if resp.success?
47
48
 
@@ -54,20 +55,6 @@ module Dor
54
55
  "#{api_version}/objects/#{object_identifier}/workspace"
55
56
  end
56
57
 
57
- def query_params_for(workflow, lane_id)
58
- [].tap do |params|
59
- params << "workflow=#{workflow}" if workflow
60
- params << "lane-id=#{lane_id}" if lane_id
61
- end
62
- end
63
-
64
- def with_query_params(url, workflow, lane_id)
65
- query_params = query_params_for(workflow, lane_id)
66
- return url unless query_params.any?
67
-
68
- "#{url}?#{query_params.join('&')}"
69
- end
70
-
71
58
  attr_reader :object_identifier
72
59
  end
73
60
  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: 15.0.0
4
+ version: 15.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: 2024-10-07 00:00:00.000000000 Z
12
+ date: 2024-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport