dor-services-client 14.9.0 → 14.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/Gemfile.lock +18 -17
- data/dor-services-client.gemspec +1 -1
- data/lib/dor/services/client/version.rb +1 -1
- data/lib/dor/services/client/workspace.rb +12 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0697be61e31e5bad32686e55e4472530705f6ec8503afcf40f99fff455928c1
|
4
|
+
data.tar.gz: da0395e15eb9185300b15677401a6abf5694cea69ee5a82e1d6d78c6de6ce5a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 584f38fcd6d058a288b692e3e8ccba8a1d744d93e00df79ea86c5bbe4457bf3a522d4f3cd36c86200428431a30cee78e55d0141c1781a80367357eca597b5a51
|
7
|
+
data.tar.gz: 9f918af8cf25f20d4cf7f012decf8abaa48269fda865c2dd587f188f98356b7fcce2855288d1eae990cbe555b252d85ac4e4c5af2f7a5b6d23427aa1c030952d
|
data/.circleci/config.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dor-services-client (14.
|
4
|
+
dor-services-client (14.11.0)
|
5
5
|
activesupport (>= 4.2, < 8)
|
6
|
-
cocina-models (~> 0.
|
6
|
+
cocina-models (~> 0.97.0)
|
7
7
|
deprecation
|
8
8
|
faraday (~> 2.0)
|
9
9
|
faraday-retry
|
@@ -12,7 +12,7 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activesupport (7.1.3.
|
15
|
+
activesupport (7.1.3.3)
|
16
16
|
base64
|
17
17
|
bigdecimal
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
base64 (0.2.0)
|
30
30
|
bigdecimal (3.1.8)
|
31
31
|
byebug (11.1.3)
|
32
|
-
cocina-models (0.
|
32
|
+
cocina-models (0.97.0)
|
33
33
|
activesupport
|
34
34
|
deprecation
|
35
35
|
dry-struct (~> 1.0)
|
@@ -41,11 +41,12 @@ GEM
|
|
41
41
|
nokogiri
|
42
42
|
openapi3_parser
|
43
43
|
openapi_parser (~> 1.0)
|
44
|
-
rss
|
45
44
|
super_diff
|
46
45
|
thor
|
47
46
|
zeitwerk (~> 2.1)
|
48
|
-
commonmarker (
|
47
|
+
commonmarker (1.1.3-arm64-darwin)
|
48
|
+
commonmarker (1.1.3-x86_64-darwin)
|
49
|
+
commonmarker (1.1.3-x86_64-linux)
|
49
50
|
concurrent-ruby (1.2.3)
|
50
51
|
connection_pool (2.4.1)
|
51
52
|
crack (1.0.0)
|
@@ -94,7 +95,7 @@ GEM
|
|
94
95
|
jsonpath (1.1.5)
|
95
96
|
multi_json
|
96
97
|
language_server-protocol (3.17.0.3)
|
97
|
-
minitest (5.
|
98
|
+
minitest (5.23.1)
|
98
99
|
multi_json (1.15.0)
|
99
100
|
mutex_m (0.2.0)
|
100
101
|
net-http (0.4.1)
|
@@ -105,8 +106,8 @@ GEM
|
|
105
106
|
racc (~> 1.4)
|
106
107
|
nokogiri (1.16.5-x86_64-linux)
|
107
108
|
racc (~> 1.4)
|
108
|
-
openapi3_parser (0.
|
109
|
-
commonmarker (
|
109
|
+
openapi3_parser (0.10.0)
|
110
|
+
commonmarker (>= 1.0)
|
110
111
|
openapi_parser (1.0.0)
|
111
112
|
optimist (3.1.0)
|
112
113
|
parallel (1.24.0)
|
@@ -116,11 +117,12 @@ GEM
|
|
116
117
|
patience_diff (1.2.0)
|
117
118
|
optimist (~> 3.0)
|
118
119
|
public_suffix (5.0.5)
|
119
|
-
racc (1.
|
120
|
+
racc (1.8.0)
|
120
121
|
rainbow (3.1.1)
|
121
122
|
rake (13.2.1)
|
122
|
-
regexp_parser (2.9.
|
123
|
-
rexml (3.2.
|
123
|
+
regexp_parser (2.9.2)
|
124
|
+
rexml (3.2.8)
|
125
|
+
strscan (>= 3.0.9)
|
124
126
|
rspec (3.13.0)
|
125
127
|
rspec-core (~> 3.13.0)
|
126
128
|
rspec-expectations (~> 3.13.0)
|
@@ -134,9 +136,7 @@ GEM
|
|
134
136
|
diff-lcs (>= 1.2.0, < 2.0)
|
135
137
|
rspec-support (~> 3.13.0)
|
136
138
|
rspec-support (3.13.1)
|
137
|
-
|
138
|
-
rexml
|
139
|
-
rubocop (1.63.5)
|
139
|
+
rubocop (1.64.0)
|
140
140
|
json (~> 2.3)
|
141
141
|
language_server-protocol (>= 3.17.0)
|
142
142
|
parallel (~> 1.10)
|
@@ -167,6 +167,7 @@ GEM
|
|
167
167
|
simplecov_json_formatter (~> 0.1)
|
168
168
|
simplecov-html (0.12.3)
|
169
169
|
simplecov_json_formatter (0.1.4)
|
170
|
+
strscan (3.1.0)
|
170
171
|
super_diff (0.12.1)
|
171
172
|
attr_extras (>= 6.2.4)
|
172
173
|
diff-lcs
|
@@ -176,11 +177,11 @@ GEM
|
|
176
177
|
concurrent-ruby (~> 1.0)
|
177
178
|
unicode-display_width (2.5.0)
|
178
179
|
uri (0.13.0)
|
179
|
-
webmock (3.23.
|
180
|
+
webmock (3.23.1)
|
180
181
|
addressable (>= 2.8.0)
|
181
182
|
crack (>= 0.3.2)
|
182
183
|
hashdiff (>= 0.4.0, < 2.0.0)
|
183
|
-
zeitwerk (2.6.
|
184
|
+
zeitwerk (2.6.15)
|
184
185
|
|
185
186
|
PLATFORMS
|
186
187
|
arm64-darwin-23
|
data/dor-services-client.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.required_ruby_version = '>= 3.0', '< 4'
|
26
26
|
|
27
27
|
spec.add_dependency 'activesupport', '>= 4.2', '< 8'
|
28
|
-
spec.add_dependency 'cocina-models', '~> 0.
|
28
|
+
spec.add_dependency 'cocina-models', '~> 0.97.0'
|
29
29
|
spec.add_dependency 'deprecation', '>= 0'
|
30
30
|
spec.add_dependency 'faraday', '~> 2.0'
|
31
31
|
spec.add_dependency 'faraday-retry'
|
@@ -12,16 +12,24 @@ module Dor
|
|
12
12
|
end
|
13
13
|
|
14
14
|
# Initializes a new workspace
|
15
|
-
# @param source [String] the path to the object
|
15
|
+
# @param source [String] the path to the object (optional)
|
16
|
+
# @param content [Boolean] determines if the content directory should be created (defaults to false)
|
17
|
+
# @param metadata [Boolean] determines if the metadata directory should be created (defaults to false)
|
16
18
|
# @raise [UnexpectedResponse] if the request is unsuccessful.
|
17
|
-
# @return
|
18
|
-
|
19
|
+
# @return [String] the path to the directory created
|
20
|
+
# rubocop:disable Metrics/AbcSize
|
21
|
+
def create(source: nil, content: false, metadata: false)
|
19
22
|
resp = connection.post do |req|
|
20
23
|
req.url workspace_path
|
21
|
-
req.params['source'] = source
|
24
|
+
req.params['source'] = source if source
|
25
|
+
req.params['content'] = content
|
26
|
+
req.params['metadata'] = metadata
|
22
27
|
end
|
28
|
+
return JSON.parse(resp.body)['path'] if resp.success?
|
29
|
+
|
23
30
|
raise_exception_based_on_response!(resp, object_identifier) unless resp.success?
|
24
31
|
end
|
32
|
+
# rubocop:enable Metrics/AbcSize
|
25
33
|
|
26
34
|
# Cleans up a workspace
|
27
35
|
# @raise [NotFoundResponse] when the response is a 404 (object not found)
|
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: 14.
|
4
|
+
version: 14.11.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-05-
|
12
|
+
date: 2024-05-29 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.
|
40
|
+
version: 0.97.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.
|
47
|
+
version: 0.97.0
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: deprecation
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
279
|
- !ruby/object:Gem::Version
|
280
280
|
version: '0'
|
281
281
|
requirements: []
|
282
|
-
rubygems_version: 3.
|
282
|
+
rubygems_version: 3.5.10
|
283
283
|
signing_key:
|
284
284
|
specification_version: 4
|
285
285
|
summary: A client for dor-services-app
|