collectionspace-client 0.3.0 → 0.14.1
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/.github/workflows/publish.yml +42 -0
- data/.gitignore +4 -0
- data/.ruby-version +1 -0
- data/Gemfile +2 -0
- data/README.md +11 -14
- data/Rakefile +41 -0
- data/bin/console +26 -0
- data/bin/rspec +29 -0
- data/collectionspace-client.gemspec +2 -0
- data/examples/demo.rb +2 -0
- data/examples/media_with_external_file.rb +2 -0
- data/examples/purge_empty_vocabs.rb +2 -0
- data/examples/reports.rb +178 -0
- data/examples/search.rb +17 -4
- data/examples/update_password.rb +1 -31
- data/lib/collectionspace/client/client.rb +4 -2
- data/lib/collectionspace/client/configuration.rb +15 -14
- data/lib/collectionspace/client/helpers.rb +131 -10
- data/lib/collectionspace/client/refname.rb +114 -0
- data/lib/collectionspace/client/request.rb +2 -0
- data/lib/collectionspace/client/response.rb +11 -0
- data/lib/collectionspace/client/search.rb +7 -3
- data/lib/collectionspace/client/service.rb +198 -0
- data/lib/collectionspace/client/template.rb +26 -0
- data/lib/collectionspace/client/templates/reindex_by_csids.xml.erb +10 -0
- data/lib/collectionspace/client/templates/reindex_by_doctype.xml.erb +5 -0
- data/lib/collectionspace/client/templates/reindex_full_text.xml.erb +51 -0
- data/lib/collectionspace/client/templates/report.xml.erb +16 -0
- data/lib/collectionspace/client/templates/reset_media_blob.xml.erb +6 -0
- data/lib/collectionspace/client/version.rb +3 -1
- data/lib/collectionspace/client.rb +11 -0
- metadata +44 -3
@@ -1,19 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'httparty'
|
2
4
|
require 'nokogiri'
|
3
5
|
require 'uri'
|
4
6
|
|
5
7
|
# mixins required first
|
6
8
|
require 'collectionspace/client/helpers'
|
9
|
+
require 'collectionspace/client/template'
|
7
10
|
|
8
11
|
require 'collectionspace/client/client'
|
9
12
|
require 'collectionspace/client/configuration'
|
13
|
+
require 'collectionspace/client/refname'
|
10
14
|
require 'collectionspace/client/request'
|
11
15
|
require 'collectionspace/client/response'
|
12
16
|
require 'collectionspace/client/search'
|
17
|
+
require 'collectionspace/client/service'
|
13
18
|
require 'collectionspace/client/version'
|
14
19
|
|
15
20
|
module CollectionSpace
|
16
21
|
class ArgumentError < StandardError; end
|
22
|
+
|
23
|
+
class DuplicateIdFound < StandardError; end
|
24
|
+
|
25
|
+
class NotFoundError < StandardError; end
|
26
|
+
|
17
27
|
class PayloadError < StandardError; end
|
28
|
+
|
18
29
|
class RequestError < StandardError; end
|
19
30
|
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.14.1
|
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: 2022-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rake
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,6 +136,20 @@ dependencies:
|
|
122
136
|
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.21'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.21'
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
154
|
name: vcr
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,27 +185,40 @@ executables: []
|
|
157
185
|
extensions: []
|
158
186
|
extra_rdoc_files: []
|
159
187
|
files:
|
188
|
+
- ".github/workflows/publish.yml"
|
160
189
|
- ".gitignore"
|
161
190
|
- ".rspec"
|
162
191
|
- ".rubocop.yml"
|
192
|
+
- ".ruby-version"
|
163
193
|
- ".travis.yml"
|
164
194
|
- Gemfile
|
165
195
|
- LICENSE.txt
|
166
196
|
- README.md
|
167
197
|
- Rakefile
|
198
|
+
- bin/console
|
199
|
+
- bin/rspec
|
168
200
|
- collectionspace-client.gemspec
|
169
201
|
- examples/demo.rb
|
170
202
|
- examples/media_with_external_file.rb
|
171
203
|
- examples/purge_empty_vocabs.rb
|
204
|
+
- examples/reports.rb
|
172
205
|
- examples/search.rb
|
173
206
|
- examples/update_password.rb
|
174
207
|
- lib/collectionspace/client.rb
|
175
208
|
- lib/collectionspace/client/client.rb
|
176
209
|
- lib/collectionspace/client/configuration.rb
|
177
210
|
- lib/collectionspace/client/helpers.rb
|
211
|
+
- lib/collectionspace/client/refname.rb
|
178
212
|
- lib/collectionspace/client/request.rb
|
179
213
|
- lib/collectionspace/client/response.rb
|
180
214
|
- lib/collectionspace/client/search.rb
|
215
|
+
- lib/collectionspace/client/service.rb
|
216
|
+
- lib/collectionspace/client/template.rb
|
217
|
+
- lib/collectionspace/client/templates/reindex_by_csids.xml.erb
|
218
|
+
- lib/collectionspace/client/templates/reindex_by_doctype.xml.erb
|
219
|
+
- lib/collectionspace/client/templates/reindex_full_text.xml.erb
|
220
|
+
- lib/collectionspace/client/templates/report.xml.erb
|
221
|
+
- lib/collectionspace/client/templates/reset_media_blob.xml.erb
|
181
222
|
- lib/collectionspace/client/version.rb
|
182
223
|
homepage: https://github.com/lyrasis/collectionspace-client.git
|
183
224
|
licenses:
|
@@ -198,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
239
|
- !ruby/object:Gem::Version
|
199
240
|
version: '0'
|
200
241
|
requirements: []
|
201
|
-
rubygems_version: 3.
|
242
|
+
rubygems_version: 3.3.18
|
202
243
|
signing_key:
|
203
244
|
specification_version: 4
|
204
245
|
summary: CollectionSpace API client.
|