sdr-client 0.46.0 → 0.51.0.beta.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: 03f960a4e0245a634b0dd570d5aa9cbf2d47710cb0270a42c85be65441b161da
4
- data.tar.gz: b8a69629dc48374173ae15208e82af61c2aac21eedc9e234727a1319809d4900
3
+ metadata.gz: e1a5ea79a88c573cc2bcc1ad7b65dc70c851605c5b751c194b8d8a4964583866
4
+ data.tar.gz: 8fca52d71d9b464bf3f8f0bc1fc358ea16fabb35a668123409f1d25ad473f53e
5
5
  SHA512:
6
- metadata.gz: 9ce64288c52620f388d9c2303ef7ab9b9d3be61869bbb3ab97761689fcff9ceb9ca8e8115f11140c22d8ea280f257c1b4db2cff70103b082f3e9e3850f196d84
7
- data.tar.gz: 709dcfb8a27bceba47f4f3456cf6233b3b44c665fe0d542565cacb51db21777a8b2a0dc97355646cd93ac94ce7ee3dd1277a288a0f7127b021dc51093c4741d3
6
+ metadata.gz: 97538885a9045411dd55199dd374c634d8e788a1a521e2e0be9858c570eb258ca535d2ad8ee5a06dab2e9417b2e0454802dcc8ac0182c59f1ada76f521acd69f
7
+ data.tar.gz: bba512f3866ecaa1c4b5d58775acfb01ffae14ee9cd7c06c963906a0c2302b8f70a4a3e088752cc7648be993a6bd71bdff6b18388f01dde566efff9ca6363da1
@@ -7,13 +7,15 @@ module SdrClient
7
7
  # rubocop:disable Metrics/ParameterLists
8
8
  def initialize(external_identifier:, label:, filename:,
9
9
  access: 'world', preserve: true, shelve: true,
10
- mime_type: nil, md5: nil, sha1: nil, use: nil)
10
+ publish: true, mime_type: nil, md5: nil, sha1: nil,
11
+ use: nil)
11
12
  @external_identifier = external_identifier
12
13
  @label = label
13
14
  @filename = filename
14
15
  @access = access
15
16
  @preserve = preserve
16
17
  @shelve = shelve
18
+ @publish = publish
17
19
  @mime_type = mime_type
18
20
  @md5 = md5
19
21
  @sha1 = sha1
@@ -33,7 +35,8 @@ module SdrClient
33
35
  },
34
36
  administrative: {
35
37
  sdrPreserve: @preserve,
36
- shelve: @shelve
38
+ shelve: @shelve,
39
+ publish: @publish
37
40
  },
38
41
  version: 1,
39
42
  hasMessageDigests: message_digests
@@ -8,7 +8,7 @@ module SdrClient
8
8
  class MetadataBuilder
9
9
  # @param [Request] metadata information about the object
10
10
  # @param [Class] grouping_strategy class whose run method groups an array of uploads
11
- # Additional metadata includes access, preserve, shelve, md5, sha1
11
+ # Additional metadata includes access, preserve, shelve, publish, md5, sha1
12
12
  # @param [Logger] logger the logger to use
13
13
  def initialize(metadata:, grouping_strategy:, logger:)
14
14
  @metadata = metadata
@@ -10,7 +10,7 @@ module SdrClient
10
10
  # @param [String] type (http://cocina.sul.stanford.edu/models/object.jsonld) the required object type.
11
11
  # @param [Array<FileSet>] file_sets the file sets to attach.
12
12
  # @param [Hash<String, Hash<String, String>>] files_metadata file name, hash of additional file metadata
13
- # Additional metadata includes access, preserve, shelve, md5, sha1
13
+ # Additional metadata includes access, preserve, shelve, publish, md5, sha1
14
14
  # rubocop:disable Metrics/ParameterLists
15
15
  def initialize(label: nil,
16
16
  access: 'dark',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SdrClient
4
- VERSION = '0.46.0'
4
+ VERSION = '0.51.0.beta.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.49.0'
31
+ spec.add_dependency 'cocina-models', '~> 0.54.0.beta'
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.46.0
4
+ version: 0.51.0.beta.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-02-27 00:00:00.000000000 Z
11
+ date: 2021-03-10 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.49.0
33
+ version: 0.54.0.beta
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.49.0
40
+ version: 0.54.0.beta
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
@@ -235,12 +235,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
235
  version: '0'
236
236
  required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  requirements:
238
- - - ">="
238
+ - - ">"
239
239
  - !ruby/object:Gem::Version
240
- version: '0'
240
+ version: 1.3.1
241
241
  requirements: []
242
- rubygems_version: 3.1.2
243
- signing_key:
242
+ rubygems_version: 3.0.6
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: []