archivesspace-client 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/publish.yml +1 -1
- data/archivesspace-client.gemspec +5 -2
- data/bin/console +21 -0
- data/examples/export.rb +1 -1
- data/examples/repo_and_user.rb +1 -1
- data/examples/test_connection.rb +1 -1
- data/examples/user_groups.rb +1 -1
- data/lib/archivesspace/client/version.rb +1 -1
- metadata +43 -8
- data/.travis.yml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ff1d8782c564f4dfdf2dce03267b11f9e60fc14648bd07da6a9882c169050e
|
4
|
+
data.tar.gz: 23f900ce6d47bf4a4b55646249306c49f0d41ef671f2c8ba30ad8ea1855ca000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99478138d6f6902b7f3efd07c92f5635f69ee43b4609135c92bb3c541454c95254da6f401de1be0051245e0a99f30de2c6cb2c19661bf2688a09bda789441a05
|
7
|
+
data.tar.gz: c7f45e1358d6550164a05b1ed966c6ac6cb1f993bd2ab3c570c7ae52ba70de50923c19a4907fbc1951cd8a1db2b82a05062b4b464fa3f6446b6ca50f7a37668e
|
@@ -14,12 +14,15 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = ""
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = %w[asclient]
|
17
19
|
spec.files = `git ls-files -z`.split("\x0")
|
18
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
20
|
spec.require_paths = ["lib"]
|
20
21
|
|
21
22
|
spec.add_development_dependency "aruba", "~> 2.0"
|
22
|
-
spec.add_development_dependency "
|
23
|
+
spec.add_development_dependency "capybara_discoball", "~> 0.1.0"
|
24
|
+
spec.add_development_dependency "json_spec", "~> 1.1", ">= 1.1.5"
|
25
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
23
26
|
spec.add_development_dependency "rspec", "3.6.0"
|
24
27
|
spec.add_development_dependency "rubocop", "1.56"
|
25
28
|
spec.add_development_dependency "standard", "1.31.0"
|
data/bin/console
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "archivesspace/client"
|
6
|
+
|
7
|
+
config = ArchivesSpace::Configuration.new(
|
8
|
+
{
|
9
|
+
base_uri: "https://test.archivesspace.org/staff/api",
|
10
|
+
base_repo: "",
|
11
|
+
username: "admin",
|
12
|
+
password: "admin",
|
13
|
+
page_size: 50,
|
14
|
+
throttle: 0,
|
15
|
+
verify_ssl: false
|
16
|
+
}
|
17
|
+
)
|
18
|
+
@client = ArchivesSpace::Client.new(config).login
|
19
|
+
|
20
|
+
require "irb"
|
21
|
+
IRB.start(__FILE__)
|
data/examples/export.rb
CHANGED
@@ -7,7 +7,7 @@ require "archivesspace/client"
|
|
7
7
|
# official sandbox
|
8
8
|
config = ArchivesSpace::Configuration.new(
|
9
9
|
{
|
10
|
-
base_uri: "
|
10
|
+
base_uri: "https://test.archivesspace.org/staff/api",
|
11
11
|
base_repo: "",
|
12
12
|
username: "admin",
|
13
13
|
password: "admin",
|
data/examples/repo_and_user.rb
CHANGED
@@ -7,7 +7,7 @@ require "archivesspace/client"
|
|
7
7
|
# official sandbox
|
8
8
|
config = ArchivesSpace::Configuration.new(
|
9
9
|
{
|
10
|
-
base_uri: "
|
10
|
+
base_uri: "https://sandbox.archivesspace.org/api",
|
11
11
|
base_repo: "",
|
12
12
|
username: "admin",
|
13
13
|
password: "admin",
|
data/examples/test_connection.rb
CHANGED
@@ -7,7 +7,7 @@ require "archivesspace/client"
|
|
7
7
|
# official sandbox
|
8
8
|
config = ArchivesSpace::Configuration.new(
|
9
9
|
{
|
10
|
-
base_uri: "
|
10
|
+
base_uri: "https://sandbox.archivesspace.org/api",
|
11
11
|
base_repo: "",
|
12
12
|
username: "admin",
|
13
13
|
password: "admin",
|
data/examples/user_groups.rb
CHANGED
@@ -7,7 +7,7 @@ require "archivesspace/client"
|
|
7
7
|
# official sandbox
|
8
8
|
config = ArchivesSpace::Configuration.new(
|
9
9
|
{
|
10
|
-
base_uri: "
|
10
|
+
base_uri: "https://sandbox.archivesspace.org/api",
|
11
11
|
base_repo: "",
|
12
12
|
username: "admin",
|
13
13
|
password: "admin",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archivesspace-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Cooper
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|
@@ -24,20 +24,54 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: capybara_discoball
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json_spec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.1'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 1.1.5
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '1.1'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.1.5
|
27
61
|
- !ruby/object:Gem::Dependency
|
28
62
|
name: rake
|
29
63
|
requirement: !ruby/object:Gem::Requirement
|
30
64
|
requirements:
|
31
65
|
- - "~>"
|
32
66
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
67
|
+
version: '13.0'
|
34
68
|
type: :development
|
35
69
|
prerelease: false
|
36
70
|
version_requirements: !ruby/object:Gem::Requirement
|
37
71
|
requirements:
|
38
72
|
- - "~>"
|
39
73
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
74
|
+
version: '13.0'
|
41
75
|
- !ruby/object:Gem::Dependency
|
42
76
|
name: rspec
|
43
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +215,8 @@ dependencies:
|
|
181
215
|
description: Interact with ArchivesSpace via the API.
|
182
216
|
email:
|
183
217
|
- mark.c.cooper@outlook.com
|
184
|
-
executables:
|
218
|
+
executables:
|
219
|
+
- asclient
|
185
220
|
extensions: []
|
186
221
|
extra_rdoc_files: []
|
187
222
|
files:
|
@@ -191,12 +226,12 @@ files:
|
|
191
226
|
- ".rspec"
|
192
227
|
- ".rubocop.yml"
|
193
228
|
- ".ruby-version"
|
194
|
-
- ".travis.yml"
|
195
229
|
- Gemfile
|
196
230
|
- LICENSE.txt
|
197
231
|
- README.md
|
198
232
|
- Rakefile
|
199
233
|
- archivesspace-client.gemspec
|
234
|
+
- bin/console
|
200
235
|
- examples/export.rb
|
201
236
|
- examples/password_reset.rb
|
202
237
|
- examples/repo_and_user.rb
|
@@ -248,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
283
|
- !ruby/object:Gem::Version
|
249
284
|
version: '0'
|
250
285
|
requirements: []
|
251
|
-
rubygems_version: 3.
|
286
|
+
rubygems_version: 3.5.9
|
252
287
|
signing_key:
|
253
288
|
specification_version: 4
|
254
289
|
summary: Interact with ArchivesSpace via the API.
|
data/.travis.yml
DELETED