sdr-client 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sdr_client/deposit.rb +6 -3
- data/lib/sdr_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85bf3bb61e2edeca3fd59c4bcb72e65c0ca8a6fa2555095059c774d6adbb5cd9
|
4
|
+
data.tar.gz: 29ef71e2e7778c28b8db875e7c910ee4f477857422d61d59774ab09b0fdb5852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61cc5ce0d28aeddbcd20273a7086d9b4dc0482b76f91b19002496b80e4db7d32471f9b8e827ffc800c58172fb3cf7d1f2ccdf920ca11bd88f5ac141002406703
|
7
|
+
data.tar.gz: c2149a463c52831fee474f8c43e00982fce4ea9f56da629f8b87f1889bb59630419ed6c8c5296b56b6985324195ff1bb700277cbdfa91e9de89388319689b461
|
data/lib/sdr_client/deposit.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'logger'
|
4
|
+
|
3
5
|
module SdrClient
|
4
6
|
# The namespace for the "deposit" command
|
5
7
|
module Deposit
|
@@ -13,7 +15,8 @@ module SdrClient
|
|
13
15
|
url:,
|
14
16
|
files: [],
|
15
17
|
files_metadata: {},
|
16
|
-
grouping_strategy: SingleFileGroupingStrategy
|
18
|
+
grouping_strategy: SingleFileGroupingStrategy,
|
19
|
+
logger: Logger.new(STDOUT))
|
17
20
|
token = Credentials.read
|
18
21
|
|
19
22
|
metadata = Request.new(label: label,
|
@@ -22,8 +25,8 @@ module SdrClient
|
|
22
25
|
collection: collection,
|
23
26
|
source_id: source_id,
|
24
27
|
catkey: catkey)
|
25
|
-
Process.new(metadata: metadata, url: url, token: token,
|
26
|
-
|
28
|
+
Process.new(metadata: metadata, url: url, token: token, files: files,
|
29
|
+
files_metadata: files_metadata, grouping_strategy: grouping_strategy, logger: logger).run
|
27
30
|
end
|
28
31
|
# rubocop:enable Metrics/ParameterLists
|
29
32
|
end
|
data/lib/sdr_client/version.rb
CHANGED