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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5843a507e487e1da137d521f9248440a4c8680a6fdbdcfcd8791a17788aeac3d
4
- data.tar.gz: ca2900a871814c6e9f3921dc319505e0edde39f6fe28ac437ff8e967d229fa06
3
+ metadata.gz: e0697be61e31e5bad32686e55e4472530705f6ec8503afcf40f99fff455928c1
4
+ data.tar.gz: da0395e15eb9185300b15677401a6abf5694cea69ee5a82e1d6d78c6de6ce5a0
5
5
  SHA512:
6
- metadata.gz: 1e663d3d99e82b8b5775d7a1f99bf0db9a4e2f5cb9684d4207c79d2181450e14ad8237dad041e21731aa0785512e0877dc6c358268fcfec2b925d9f6f4d1e225
7
- data.tar.gz: 3faa6fc0dff1ad7297d4b73075cad8deb23858fdce1cba4f0645cb346897d81a448159876314552d4df3688b35054110f0ce4844f063ad66558ea37298349b51
6
+ metadata.gz: 584f38fcd6d058a288b692e3e8ccba8a1d744d93e00df79ea86c5bbe4457bf3a522d4f3cd36c86200428431a30cee78e55d0141c1781a80367357eca597b5a51
7
+ data.tar.gz: 9f918af8cf25f20d4cf7f012decf8abaa48269fda865c2dd587f188f98356b7fcce2855288d1eae990cbe555b252d85ac4e4c5af2f7a5b6d23427aa1c030952d
data/.circleci/config.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  version: 2.1
2
2
  orbs:
3
- ruby-rails: sul-dlss/ruby-rails@4.1.0
3
+ ruby-rails: sul-dlss/ruby-rails@4.2.0
4
4
  workflows:
5
5
  build:
6
6
  jobs:
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-services-client (14.9.0)
4
+ dor-services-client (14.11.0)
5
5
  activesupport (>= 4.2, < 8)
6
- cocina-models (~> 0.96.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.2)
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.96.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 (0.23.10)
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.22.3)
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.9.2)
109
- commonmarker (~> 0.17)
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.7.3)
120
+ racc (1.8.0)
120
121
  rainbow (3.1.1)
121
122
  rake (13.2.1)
122
- regexp_parser (2.9.1)
123
- rexml (3.2.6)
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
- rss (0.3.0)
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.0)
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.13)
184
+ zeitwerk (2.6.15)
184
185
 
185
186
  PLATFORMS
186
187
  arm64-darwin-23
@@ -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.96.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'
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '14.9.0'
6
+ VERSION = '14.11.0'
7
7
  end
8
8
  end
9
9
  end
@@ -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 nil
18
- def create(source:)
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.9.0
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-17 00:00:00.000000000 Z
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.96.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.96.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.4.19
282
+ rubygems_version: 3.5.10
283
283
  signing_key:
284
284
  specification_version: 4
285
285
  summary: A client for dor-services-app