sdr-client 0.24.0 → 0.25.0
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/.rubocop_todo.yml +5 -4
- data/lib/sdr_client/deposit.rb +2 -0
- data/lib/sdr_client/deposit/request.rb +8 -2
- data/lib/sdr_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ba412736744579cc3c7730354944d6357027106ca021c60e7363071a441ac21
|
|
4
|
+
data.tar.gz: 808952a65481516130017e8215656062e06ed9386fbab4486eb2b00bf1e977a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbc1f0cb2fd1edf1b3af487cb585aab7304600cae177791d0861eeacfed8ba15caf8e59fd222def840e2e102656868e73869ec739fcc499fc40c0807b17ddaf8
|
|
7
|
+
data.tar.gz: 22a5983f2c7b3d77b70efbaab7a6e0280e9057cec80697c80759c4b6efd25fddfcd52c1b8b51c5bc4b819a42b9cabd09ecbb8abcb2522ba6ae2a25dfce2f97a7
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2020-
|
|
3
|
+
# on 2020-04-27 08:24:29 -0400 using RuboCop version 0.82.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
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
9
|
+
# Offense count: 2
|
|
10
|
+
# Configuration parameters: IgnoredMethods.
|
|
10
11
|
Metrics/AbcSize:
|
|
11
12
|
Max: 16
|
|
12
13
|
|
|
13
|
-
# Offense count:
|
|
14
|
+
# Offense count: 7
|
|
14
15
|
# Configuration parameters: CountComments, ExcludedMethods.
|
|
15
16
|
Metrics/MethodLength:
|
|
16
|
-
Max:
|
|
17
|
+
Max: 15
|
data/lib/sdr_client/deposit.rb
CHANGED
|
@@ -12,6 +12,7 @@ module SdrClient
|
|
|
12
12
|
type: BOOK_TYPE,
|
|
13
13
|
viewing_direction: nil,
|
|
14
14
|
access: 'dark',
|
|
15
|
+
download: 'none',
|
|
15
16
|
use_statement: nil,
|
|
16
17
|
copyright: nil,
|
|
17
18
|
apo:,
|
|
@@ -30,6 +31,7 @@ module SdrClient
|
|
|
30
31
|
metadata = Request.new(label: label,
|
|
31
32
|
type: type,
|
|
32
33
|
access: access,
|
|
34
|
+
download: download,
|
|
33
35
|
apo: apo,
|
|
34
36
|
use_statement: use_statement,
|
|
35
37
|
copyright: copyright,
|
|
@@ -14,6 +14,7 @@ module SdrClient
|
|
|
14
14
|
# rubocop:disable Metrics/ParameterLists
|
|
15
15
|
def initialize(label: nil,
|
|
16
16
|
access: 'dark',
|
|
17
|
+
download: 'none',
|
|
17
18
|
use_statement: nil,
|
|
18
19
|
copyright: nil,
|
|
19
20
|
apo:,
|
|
@@ -34,6 +35,7 @@ module SdrClient
|
|
|
34
35
|
@embargo_release_date = embargo_release_date
|
|
35
36
|
@embargo_access = embargo_access
|
|
36
37
|
@access = access
|
|
38
|
+
@download = download
|
|
37
39
|
@use_statement = use_statement
|
|
38
40
|
@copyright = copyright
|
|
39
41
|
@apo = apo
|
|
@@ -59,6 +61,7 @@ module SdrClient
|
|
|
59
61
|
def with_file_sets(file_sets)
|
|
60
62
|
Request.new(label: label,
|
|
61
63
|
access: access,
|
|
64
|
+
download: download,
|
|
62
65
|
apo: apo,
|
|
63
66
|
collection: collection,
|
|
64
67
|
copyright: copyright,
|
|
@@ -85,7 +88,7 @@ module SdrClient
|
|
|
85
88
|
|
|
86
89
|
attr_reader :access, :label, :file_sets, :source_id, :catkey, :apo, :collection,
|
|
87
90
|
:files_metadata, :embargo_release_date, :embargo_access,
|
|
88
|
-
:viewing_direction, :use_statement, :copyright
|
|
91
|
+
:viewing_direction, :use_statement, :copyright, :download
|
|
89
92
|
|
|
90
93
|
def administrative
|
|
91
94
|
{
|
|
@@ -108,7 +111,10 @@ module SdrClient
|
|
|
108
111
|
end
|
|
109
112
|
|
|
110
113
|
def access_struct
|
|
111
|
-
{
|
|
114
|
+
{
|
|
115
|
+
access: access,
|
|
116
|
+
download: download
|
|
117
|
+
}.tap do |json|
|
|
112
118
|
json[:useAndReproductionStatement] = use_statement if use_statement
|
|
113
119
|
json[:copyright] = copyright if copyright
|
|
114
120
|
|
data/lib/sdr_client/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|