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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4aa54400871b3c9e356f6750ba9aa9fbba6111869ad57bcfe548334296fbf146
4
- data.tar.gz: 8fede8b9a6e86517ebea6fa8f3ed0c5e3cb3b18966137a0d7133453bf5f67d1e
3
+ metadata.gz: a4ff1d8782c564f4dfdf2dce03267b11f9e60fc14648bd07da6a9882c169050e
4
+ data.tar.gz: 23f900ce6d47bf4a4b55646249306c49f0d41ef671f2c8ba30ad8ea1855ca000
5
5
  SHA512:
6
- metadata.gz: a0f5d93549e1357eb6f6a1470faeeb4b36dfc1f43676ffed68c148298c23f8a4263ac88befebd4d85ba54cdd0a2b9bc69c53eac8a038aa5ce18962c57cf8afaf
7
- data.tar.gz: 71cc7ac848b1c60744f122156706e88457da232e08184cff9c2b53fa32871f585743de9c1d87b26a96105f8c98d72b7221b5dfca8bcc828a3b50845089901a1b
6
+ metadata.gz: 99478138d6f6902b7f3efd07c92f5635f69ee43b4609135c92bb3c541454c95254da6f401de1be0051245e0a99f30de2c6cb2c19661bf2688a09bda789441a05
7
+ data.tar.gz: c7f45e1358d6550164a05b1ed966c6ac6cb1f993bd2ab3c570c7ae52ba70de50923c19a4907fbc1951cd8a1db2b82a05062b4b464fa3f6446b6ca50f7a37668e
@@ -18,7 +18,7 @@ jobs:
18
18
  uses: ruby/setup-ruby@v1
19
19
  with:
20
20
  bundler-cache: true
21
- ruby-version: 2.7
21
+ ruby-version: 3.2.2
22
22
  rubygems: latest
23
23
 
24
24
  - name: Release Gem
@@ -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 "rake", "~> 10.0"
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: "http://test.archivesspace.org/staff/api",
10
+ base_uri: "https://test.archivesspace.org/staff/api",
11
11
  base_repo: "",
12
12
  username: "admin",
13
13
  password: "admin",
@@ -7,7 +7,7 @@ require "archivesspace/client"
7
7
  # official sandbox
8
8
  config = ArchivesSpace::Configuration.new(
9
9
  {
10
- base_uri: "http://sandbox.archivesspace.org/api",
10
+ base_uri: "https://sandbox.archivesspace.org/api",
11
11
  base_repo: "",
12
12
  username: "admin",
13
13
  password: "admin",
@@ -7,7 +7,7 @@ require "archivesspace/client"
7
7
  # official sandbox
8
8
  config = ArchivesSpace::Configuration.new(
9
9
  {
10
- base_uri: "http://sandbox.archivesspace.org/api",
10
+ base_uri: "https://sandbox.archivesspace.org/api",
11
11
  base_repo: "",
12
12
  username: "admin",
13
13
  password: "admin",
@@ -7,7 +7,7 @@ require "archivesspace/client"
7
7
  # official sandbox
8
8
  config = ArchivesSpace::Configuration.new(
9
9
  {
10
- base_uri: "http://sandbox.archivesspace.org/api",
10
+ base_uri: "https://sandbox.archivesspace.org/api",
11
11
  base_repo: "",
12
12
  username: "admin",
13
13
  password: "admin",
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ArchivesSpace
4
4
  class Client
5
- VERSION = "0.3.0"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Cooper
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-29 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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.4.22
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
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.3
4
- before_install: gem install bundler -v 1.10.6