collectionspace-client 0.14.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git-blame-ignore-revs +8 -0
- data/.github/workflows/ci.yml +30 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +4 -8
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/Rakefile +12 -11
- data/bin/console +6 -6
- data/bin/rspec +1 -1
- data/collectionspace-client.gemspec +26 -25
- data/examples/batches.rb +50 -0
- data/examples/demo.rb +8 -8
- data/examples/media_with_external_file.rb +9 -9
- data/examples/purge_empty_vocabs.rb +8 -8
- data/examples/reports.rb +36 -169
- data/examples/reset_media_blob.rb +35 -0
- data/examples/search.rb +15 -15
- data/examples/update_password.rb +1 -1
- data/lib/collectionspace/client/batch.rb +55 -0
- data/lib/collectionspace/client/client.rb +16 -5
- data/lib/collectionspace/client/configuration.rb +2 -1
- data/lib/collectionspace/client/helpers.rb +107 -46
- data/lib/collectionspace/client/refname.rb +22 -22
- data/lib/collectionspace/client/report.rb +180 -0
- data/lib/collectionspace/client/request.rb +10 -9
- data/lib/collectionspace/client/response.rb +6 -6
- data/lib/collectionspace/client/search.rb +4 -4
- data/lib/collectionspace/client/service.rb +123 -117
- data/lib/collectionspace/client/template.rb +4 -4
- data/lib/collectionspace/client/templates/batch.xml.erb +18 -0
- data/lib/collectionspace/client/version.rb +1 -1
- data/lib/collectionspace/client.rb +18 -16
- metadata +27 -6
@@ -1,21 +1,23 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
3
|
+
require "httparty"
|
4
|
+
require "nokogiri"
|
5
|
+
require "uri"
|
6
6
|
|
7
7
|
# mixins required first
|
8
|
-
require
|
9
|
-
require
|
10
|
-
|
11
|
-
require
|
12
|
-
require
|
13
|
-
require
|
14
|
-
require
|
15
|
-
require
|
16
|
-
require
|
17
|
-
require
|
18
|
-
require
|
8
|
+
require "collectionspace/client/helpers"
|
9
|
+
require "collectionspace/client/template"
|
10
|
+
|
11
|
+
require "collectionspace/client/batch"
|
12
|
+
require "collectionspace/client/client"
|
13
|
+
require "collectionspace/client/configuration"
|
14
|
+
require "collectionspace/client/refname"
|
15
|
+
require "collectionspace/client/report"
|
16
|
+
require "collectionspace/client/request"
|
17
|
+
require "collectionspace/client/response"
|
18
|
+
require "collectionspace/client/search"
|
19
|
+
require "collectionspace/client/service"
|
20
|
+
require "collectionspace/client/version"
|
19
21
|
|
20
22
|
module CollectionSpace
|
21
23
|
class ArgumentError < StandardError; end
|
@@ -24,7 +26,7 @@ module CollectionSpace
|
|
24
26
|
|
25
27
|
class NotFoundError < StandardError; end
|
26
28
|
|
27
|
-
class PayloadError
|
29
|
+
class PayloadError < StandardError; end
|
28
30
|
|
29
|
-
class RequestError
|
31
|
+
class RequestError < StandardError; end
|
30
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: collectionspace-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Cooper
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '13.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '13.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0.21'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: standard
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: vcr
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '6.1'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '6.1'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: webmock
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,6 +199,8 @@ executables: []
|
|
185
199
|
extensions: []
|
186
200
|
extra_rdoc_files: []
|
187
201
|
files:
|
202
|
+
- ".git-blame-ignore-revs"
|
203
|
+
- ".github/workflows/ci.yml"
|
188
204
|
- ".github/workflows/publish.yml"
|
189
205
|
- ".gitignore"
|
190
206
|
- ".rspec"
|
@@ -198,22 +214,27 @@ files:
|
|
198
214
|
- bin/console
|
199
215
|
- bin/rspec
|
200
216
|
- collectionspace-client.gemspec
|
217
|
+
- examples/batches.rb
|
201
218
|
- examples/demo.rb
|
202
219
|
- examples/media_with_external_file.rb
|
203
220
|
- examples/purge_empty_vocabs.rb
|
204
221
|
- examples/reports.rb
|
222
|
+
- examples/reset_media_blob.rb
|
205
223
|
- examples/search.rb
|
206
224
|
- examples/update_password.rb
|
207
225
|
- lib/collectionspace/client.rb
|
226
|
+
- lib/collectionspace/client/batch.rb
|
208
227
|
- lib/collectionspace/client/client.rb
|
209
228
|
- lib/collectionspace/client/configuration.rb
|
210
229
|
- lib/collectionspace/client/helpers.rb
|
211
230
|
- lib/collectionspace/client/refname.rb
|
231
|
+
- lib/collectionspace/client/report.rb
|
212
232
|
- lib/collectionspace/client/request.rb
|
213
233
|
- lib/collectionspace/client/response.rb
|
214
234
|
- lib/collectionspace/client/search.rb
|
215
235
|
- lib/collectionspace/client/service.rb
|
216
236
|
- lib/collectionspace/client/template.rb
|
237
|
+
- lib/collectionspace/client/templates/batch.xml.erb
|
217
238
|
- lib/collectionspace/client/templates/reindex_by_csids.xml.erb
|
218
239
|
- lib/collectionspace/client/templates/reindex_by_doctype.xml.erb
|
219
240
|
- lib/collectionspace/client/templates/reindex_full_text.xml.erb
|
@@ -239,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
260
|
- !ruby/object:Gem::Version
|
240
261
|
version: '0'
|
241
262
|
requirements: []
|
242
|
-
rubygems_version: 3.
|
263
|
+
rubygems_version: 3.4.7
|
243
264
|
signing_key:
|
244
265
|
specification_version: 4
|
245
266
|
summary: CollectionSpace API client.
|