dor-services-client 15.0.0 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dor/services/client/version.rb +1 -1
- data/lib/dor/services/client/workspace.rb +4 -17
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d7ec32221ccf11fa986b36536aa4a298ac724a0686411ee7246e897e92c2bed
|
|
4
|
+
data.tar.gz: 9aadc355af7981afee4a2c82ba27c924d3693e905c07663237dbab2800f130b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9575501c47cae7331a1761873c2f380ed6c50a4c9d64e13adf530188a6abc20b5b5be55216d9d0e4950544c8092ee47046b4097e11749f5fa8498c573c5665c
|
|
7
|
+
data.tar.gz: b7da6ff18817b7fd1b84757d2c701b73d6b989e6de0afa24ff1f57ccdb73331d6f7b79900b3d283dd2f17cc6230368cf1440973ceb0c483e79bb781823265340
|
data/Gemfile.lock
CHANGED
|
@@ -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(
|
|
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
|
|
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.
|
|
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-
|
|
12
|
+
date: 2024-10-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|