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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88b472a25583380ecb5baf994bfc73fe3d5d5a65
4
- data.tar.gz: 336e74b11670464b4cb545dabca319dd4f02f82d
3
+ metadata.gz: 045f950a17af69c53188bd00c80da0bc556c679e
4
+ data.tar.gz: 39e23a0cb6de264e197f4141aa23640b800ef28a
5
5
  SHA512:
6
- metadata.gz: 667c0f7acb4ceebd6f02114775600bd32c22919940e3a8471afd86a098cbc4e61cb20e01cf03624ec42d8f92630ad7e67dbf08a69e3b3d7a977c993df30c539c
7
- data.tar.gz: 3f05bbeae5546cd40d7485c056bbe831a3963de741f807c51ccc09445ff3baa7d7b37feca60ffa086cd0cc42b6107a6d535b6515c83a518f4d77f063a0d4f2cc
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/jeremyf/hydra-remote_identifier.png)](https://travis-ci.org/jeremyf/hydra-remote_identifier)
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
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module RemoteIdentifier
3
- VERSION = "0.6.4"
3
+ VERSION = "0.6.5"
4
4
  end
5
5
  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
@@ -9,7 +9,7 @@ module Hydra::RemoteIdentifier
9
9
  let(:payload) {
10
10
  {
11
11
  target: 'http://google.com',
12
- creator: 'Jeremy Friesen',
12
+ creator: ['Jeremy Friesen', 'Rajesh Balekai'],
13
13
  title: 'My Article',
14
14
  publisher: 'Me Myself and I',
15
15
  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
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-05-28 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport