sdr-client 0.51.0 → 0.55.1

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: e5a2cd18ecaf634c0a7c7d13a0aa7ea6d2f9565e1ddabdd1ddf86da84bc31e02
4
- data.tar.gz: b0853d84dd50410af3bba02d508af19e72b960e283f6c8039c97025c3d407d20
3
+ metadata.gz: 6bbde1ddcec86f8c2368ce9b336dae6dc1f52dbcf774bd0e51df25f2ffb15256
4
+ data.tar.gz: 73b363c29c6b51383379eee5772eaf28b87ab98be850a848194a73986ba91d2c
5
5
  SHA512:
6
- metadata.gz: 07f9d50d287b8615bcb220d1905f4829324598b19c3c6aaa50860810386f482e1ead3a74a12ac585d74970a39028d22349d63eea079b26556e066a0f164513b0
7
- data.tar.gz: 786b70097619922079fa92e5ae7c3a6f32bc4db300e95118fe684dcc4c5e4c72ee64b0df895c90ea1af866d74038fe4c9925683119df15df5b22a05d90c3da1b
6
+ metadata.gz: dbfa9a16a0f897543c93efd08c5fc85de429cfa6457c0ba460361572f403c3b646bafed431eaa431e96ade03d5fe1c2ade8b62e08185df23069818bdb41e8e63
7
+ data.tar.gz: aa384461001ec16966c6287c9e595005d80a3e9a19c783b1793726ed7551190b4983fca8289f41bb9b2f336332b3732fea64d295249d5338664b593617876ba8
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2021-03-10 11:18:31 -0800 using RuboCop version 0.79.0.
3
+ # on 2021-03-12 13:21:16 -0600 using RuboCop version 0.79.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -15,15 +15,9 @@ Metrics/AbcSize:
15
15
  Metrics/MethodLength:
16
16
  Max: 15
17
17
 
18
- # Offense count: 1
19
- # Cop supports --auto-correct.
20
- Style/IfUnlessModifier:
21
- Exclude:
22
- - 'exe/sdr'
23
-
24
- # Offense count: 212
18
+ # Offense count: 231
25
19
  # Cop supports --auto-correct.
26
20
  # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
27
21
  # URISchemes: http, https
28
22
  Layout/LineLength:
29
- Max: 1261
23
+ Max: 132
data/README.md CHANGED
@@ -49,5 +49,5 @@ sdr --service-url https://sdr-api-server:3000 deposit --label 'hey there' \
49
49
  View the object:
50
50
  ```
51
51
  sdr --service-url https://sdr-api-server:3000 get druid:bw581ng3176
52
- {"type":"http://cocina.sul.stanford.edu/models/document.jsonld","externalIdentifier":"druid:bw581ng3176","label":"Something something better title","version":1,"access":{"access":"stanford","copyright":"This work is copyrighted by the creator.","download":"stanford","useAndReproductionStatement":"This document is available only to the Stanford faculty, staff and student community."},"administrative":{"hasAdminPolicy":"druid:zx485kb6348"},"description":{"title":[{"value":"Something something better title"}],"contributor":[{"name":[{"value":"Hodge, Amy"}],"type":"person","role":[{"value":"Author"},{"value":"author","uri":"http://id.loc.gov/vocabulary/relators/aut","source":{"code":"marcrelator","uri":"http://id.loc.gov/vocabulary/relators/"}},{"value":"Creator"}]}],"form":[{"structuredValue":[{"value":"Text","type":"type"},{"value":"Report","type":"subtype"}],"type":"resource type","source":{"value":"Stanford self-deposit resource types"}},{"value":"reports","type":"genre","uri":"http://vocab.getty.edu/aat/300027267","source":{"code":"aat"}},{"value":"text","type":"resource type","source":{"value":"MODS resource types"}}],"note":[{"value":";alkdfjlsadkjf;l","type":"summary"},{"value":"amyhodge@stanford.edu","type":"contact","displayLabel":"Contact"}],"subject":[{"value":"lkfj","type":"topic"},{"value":";kfj","type":"topic"},{"value":"fjwelkb","type":"topic"}]},"identification":{"sourceId":"hydrus:20"},"structural":{"contains":[{"type":"http://cocina.sul.stanford.edu/models/fileset.jsonld","externalIdentifier":"bw581ng3176_1","label":"Test file","version":1,"structural":{"contains":[{"type":"http://cocina.sul.stanford.edu/models/file.jsonld","externalIdentifier":"druid:bw581ng3176/test.txt","label":"test.txt","filename":"test.txt","size":11,"version":1,"hasMimeType":"text/plain","hasMessageDigests":[{"type":"sha1","digest":"5d39343e4bb48abd97f759828282f5ebbac56c5e"},{"type":"md5","digest":"63b8812b0c05722a9d6c51cbd2bfb54b"}],"access":{"access":"world","download":"world"},"administrative":{"sdrPreserve":true,"shelve":true}}]}}]}}
52
+ {"type":"http://cocina.sul.stanford.edu/models/document.jsonld","externalIdentifier":"druid:bw581ng3176","label":"Something something better title","version":1,"access":{"access":"stanford","copyright":"This work is copyrighted by the creator.","download":"stanford","useAndReproductionStatement":"This document is available only to the Stanford faculty, staff and student community."},"administrative":{"hasAdminPolicy":"druid:zx485kb6348"},"description":{"title":[{"value":"Something something better title"}],"contributor":[{"name":[{"value":"Hodge, Amy"}],"type":"person","role":[{"value":"Author"},{"value":"author","uri":"http://id.loc.gov/vocabulary/relators/aut","source":{"code":"marcrelator","uri":"http://id.loc.gov/vocabulary/relators/"}},{"value":"Creator"}]}],"form":[{"structuredValue":[{"value":"Text","type":"type"},{"value":"Report","type":"subtype"}],"type":"resource type","source":{"value":"Stanford self-deposit resource types"}},{"value":"reports","type":"genre","uri":"http://vocab.getty.edu/aat/300027267","source":{"code":"aat"}},{"value":"text","type":"resource type","source":{"value":"MODS resource types"}}],"note":[{"value":";alkdfjlsadkjf;l","type":"summary"},{"value":"amyhodge@stanford.edu","type":"contact","displayLabel":"Contact"}],"subject":[{"value":"lkfj","type":"topic"},{"value":";kfj","type":"topic"},{"value":"fjwelkb","type":"topic"}]},"identification":{"sourceId":"hydrus:20"},"structural":{"contains":[{"type":"http://cocina.sul.stanford.edu/models/resources/file.jsonld","externalIdentifier":"bw581ng3176_1","label":"Test file","version":1,"structural":{"contains":[{"type":"http://cocina.sul.stanford.edu/models/file.jsonld","externalIdentifier":"druid:bw581ng3176/test.txt","label":"test.txt","filename":"test.txt","size":11,"version":1,"hasMimeType":"text/plain","hasMessageDigests":[{"type":"sha1","digest":"5d39343e4bb48abd97f759828282f5ebbac56c5e"},{"type":"md5","digest":"63b8812b0c05722a9d6c51cbd2bfb54b"}],"access":{"access":"world","download":"world"},"administrative":{"sdrPreserve":true,"shelve":true}}]}}]}}
53
53
  ```
@@ -21,7 +21,7 @@ module SdrClient
21
21
 
22
22
  def as_json
23
23
  {
24
- "type": 'http://cocina.sul.stanford.edu/models/fileset.jsonld',
24
+ "type": 'http://cocina.sul.stanford.edu/models/resources/file.jsonld',
25
25
  "label": label,
26
26
  structural: {
27
27
  contains: files.map(&:as_json)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SdrClient
4
- VERSION = '0.51.0'
4
+ VERSION = '0.55.1'
5
5
  end
data/sdr-client.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ['lib']
29
29
 
30
30
  spec.add_dependency 'activesupport'
31
- spec.add_dependency 'cocina-models', '~> 0.54.0'
31
+ spec.add_dependency 'cocina-models', '~> 0.58.1'
32
32
  spec.add_dependency 'dry-monads'
33
33
  spec.add_dependency 'faraday', '>= 0.16'
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdr-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.51.0
4
+ version: 0.55.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-11 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.54.0
33
+ version: 0.58.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.54.0
40
+ version: 0.58.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dry-monads
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -224,7 +224,7 @@ metadata:
224
224
  homepage_uri: https://github.com/sul-dlss/sdr-client
225
225
  source_code_uri: https://github.com/sul-dlss/sdr-client
226
226
  changelog_uri: https://github.com/sul-dlss/sdr-client/releases
227
- post_install_message:
227
+ post_install_message:
228
228
  rdoc_options: []
229
229
  require_paths:
230
230
  - lib
@@ -239,8 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.0.6
243
- signing_key:
242
+ rubygems_version: 3.1.4
243
+ signing_key:
244
244
  specification_version: 4
245
245
  summary: The CLI for https://github.com/sul-dlss/sdr-api
246
246
  test_files: []