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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14d61cfc855fd0511c6edcf78f76a3ba92adad8d
4
- data.tar.gz: 32b946eb6a965502362b03978fe9fd31f62dbd5e
3
+ metadata.gz: 3c949197fc708de905e4b05d736b9344b3e5d319
4
+ data.tar.gz: 758175d3ccf837bdcf56b6759137c0ab51a31e02
5
5
  SHA512:
6
- metadata.gz: 8f6dd4249013ab2d738848542df78755526978ba0043ac75991e855dd3389f68fc54fa119d6cc4cee20c654f7dbccd8b15b3945aaa4f6b553d4ceb1b6985cbec
7
- data.tar.gz: d588055da5420519137cdebbaf9bcaeff3abe9842991ee410caa88be0e0939aecf651e415d839b833d00114b9bbda78b19ae0e8b0b9d3b03f49ead2c42277bd8
6
+ metadata.gz: 4ca83c0ae9ab948155fdadddc87311701150aa9706c53afe3e2fbb9d278efd0edb320903c94fad7e02ad568e99618a18cf96bd6b42914dbfdff0f54fb68ab90b
7
+ data.tar.gz: 99a03f05d49be0191044d4735a101fc731a93bac90de2e89423842c4322e2c83464ad6116a31a30449cbadf7170af4d1e5fe90bda1a796dc47d19694f26c8dd3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- toccatore (0.3.4)
4
+ toccatore (0.3.5)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  dotenv (~> 2.1, >= 2.1.1)
7
7
  gender_detector (~> 1.0)
@@ -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] == "DataCite"
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
@@ -1,3 +1,3 @@
1
1
  module Toccatore
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
data/spec/cli_spec.rb CHANGED
@@ -8,7 +8,7 @@ describe Toccatore::CLI do
8
8
 
9
9
  describe "version" do
10
10
  it 'has version' do
11
- expect { subject.__print_version }.to output("0.3.4\n").to_stdout
11
+ expect { subject.__print_version }.to output("0.3.5\n").to_stdout
12
12
  end
13
13
  end
14
14
 
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
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-13 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma