hydra-remote_identifier 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/hydra/remote_identifier/remote_services/doi.rb +3 -3
- data/lib/hydra/remote_identifier/version.rb +1 -1
- data/spec/fixtures/cassettes/doi-create.yml +1 -1
- data/spec/lib/hydra/remote_identifier/remote_services/doi_spec.rb +1 -1
- data/spec/lib/hydra/remote_identifier_spec.rb +2 -2
- 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: 045f950a17af69c53188bd00c80da0bc556c679e
|
4
|
+
data.tar.gz: 39e23a0cb6de264e197f4141aa23640b800ef28a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b607515508c794824f35c0bd79e37d927d59a50d32e54815e61652b266cff4ad25a64c1bab8bcbe54f7fc455386b240bee2234143eed9553797e2cb2ca79aea7
|
7
|
+
data.tar.gz: 4694d8ed941e9a59d31bbd561230184d9bfa14f6391ef25ac42a1030467b455f7b95bac05b7a3dd44ad71c4cd1bcd49e210886cbd4e6ebff18fcd421c75bcbdd
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Hydra::RemoteIdentifier
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/hydra-remote_identifier.png)](http://badge.fury.io/rb/hydra-remote_identifier)
|
4
|
-
[![Build Status](https://travis-ci.org/
|
4
|
+
[![Build Status](https://travis-ci.org/projecthydra-labs/hydra-remote_identifier.png)](https://travis-ci.org/project-hydra-labs/hydra-remote_identifier)
|
5
5
|
|
6
6
|
Coordinate the registration and minting of remote identifiers for persisted
|
7
7
|
objects.
|
@@ -100,4 +100,4 @@ Hydra::RemoteIdentifier.configure do |config|
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
103
|
-
```
|
103
|
+
```
|
@@ -58,9 +58,9 @@ module Hydra::RemoteIdentifier
|
|
58
58
|
def data_for_create(payload)
|
59
59
|
data = []
|
60
60
|
data << "_target: #{payload.fetch(:target)}"
|
61
|
-
data << "datacite.creator: #{payload.fetch(:creator)}"
|
62
|
-
data << "datacite.title: #{payload.fetch(:title)}"
|
63
|
-
data << "datacite.publisher: #{payload.fetch(:publisher)}"
|
61
|
+
data << "datacite.creator: #{Array(payload.fetch(:creator)).join(', ')}"
|
62
|
+
data << "datacite.title: #{Array(payload.fetch(:title)).join('; ')}"
|
63
|
+
data << "datacite.publisher: #{Array(payload.fetch(:publisher)).join(', ')}"
|
64
64
|
data << "datacite.publicationyear: #{payload.fetch(:publicationyear)}"
|
65
65
|
data.join("\n")
|
66
66
|
end
|
@@ -7,7 +7,7 @@ http_interactions:
|
|
7
7
|
encoding: UTF-8
|
8
8
|
string: |-
|
9
9
|
_target: http://google.com
|
10
|
-
datacite.creator: Jeremy Friesen
|
10
|
+
datacite.creator: Jeremy Friesen, Rajesh Balekai
|
11
11
|
datacite.title: My Article
|
12
12
|
datacite.publisher: Me Myself and I
|
13
13
|
datacite.publicationyear: 2013
|
@@ -155,12 +155,12 @@ module Hydra::RemoteIdentifier
|
|
155
155
|
if ENV['DOI_API_USERNAME'] && ENV['DOI_API_PASSWORD']
|
156
156
|
|
157
157
|
let(:doi_options) {
|
158
|
-
|
158
|
+
RemoteServices::Doi::TEST_CONFIGURATION.merge(
|
159
159
|
username: ENV['DOI_API_USERNAME'],
|
160
160
|
password: ENV['DOI_API_PASSWORD'],
|
161
161
|
shoulder: 'doi:10.5072/FK2',
|
162
162
|
url: "https://ezid.lib.purdue.edu/"
|
163
|
-
|
163
|
+
)
|
164
164
|
}
|
165
165
|
|
166
166
|
context 'against live sandbox' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-remote_identifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|