toccatore 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/toccatore/datacite_related.rb +3 -3
- data/lib/toccatore/version.rb +1 -1
- data/spec/cli_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c949197fc708de905e4b05d736b9344b3e5d319
|
4
|
+
data.tar.gz: 758175d3ccf837bdcf56b6759137c0ab51a31e02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca83c0ae9ab948155fdadddc87311701150aa9706c53afe3e2fbb9d278efd0edb320903c94fad7e02ad568e99618a18cf96bd6b42914dbfdff0f54fb68ab90b
|
7
|
+
data.tar.gz: 99a03f05d49be0191044d4735a101fc731a93bac90de2e89423842c4322e2c83464ad6116a31a30449cbadf7170af4d1e5fe90bda1a796dc47d19694f26c8dd3
|
data/Gemfile.lock
CHANGED
@@ -35,9 +35,7 @@ module Toccatore
|
|
35
35
|
registration_agencies[prefix] = get_doi_ra(prefix) unless registration_agencies[prefix]
|
36
36
|
|
37
37
|
# check whether this is a DataCite DOI
|
38
|
-
if registration_agencies[prefix]
|
39
|
-
ssum
|
40
|
-
else
|
38
|
+
if %w(Crossref).include?(registration_agencies[prefix])
|
41
39
|
ssum << { "id" => SecureRandom.uuid,
|
42
40
|
"message_action" => "create",
|
43
41
|
"subj_id" => pid,
|
@@ -46,6 +44,8 @@ module Toccatore
|
|
46
44
|
"source_id" => "datacite",
|
47
45
|
"source_token" => options[:source_token],
|
48
46
|
"occurred_at" => item.fetch("minted") }
|
47
|
+
else
|
48
|
+
ssum
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
data/lib/toccatore/version.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toccatore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maremma
|