hydra-remote_identifier 0.4.3 → 0.4.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06bf8800b2023776c3dcaf064c25de6a3e01778b
|
4
|
+
data.tar.gz: 4619ca2b0114d02524d7045f5ecc07cf33791255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d15a5ddb6d06010753e69b532676790b699f2609ad202c054ba9736f3addf204e8cd7d4494d390b88251739e80467e467581ec56a0feec8ecd88a6599ecc85
|
7
|
+
data.tar.gz: 094898fa1278674a3257aae36458879ae97fa1a22a0bb1bfa1440daf6370179675236b97d1962ae6ca72df1b8c00168ad056b0142798c1955d568319bd7c135a
|
@@ -21,7 +21,7 @@ class Hydra::RemoteIdentifier::DoiGenerator < Rails::Generators::Base
|
|
21
21
|
|
22
22
|
data = []
|
23
23
|
data << ""
|
24
|
-
data << %( doi_credentials = Psych.load_file("#{credentials_path}"))
|
24
|
+
data << %( doi_credentials = Psych.load_file(Rails.root.join("#{credentials_path}")))
|
25
25
|
data << %( config.remote_service(:doi, doi_credentials) do |doi|)
|
26
26
|
data << %( doi.register(#{normalized_targets}) do |map|)
|
27
27
|
data << %( map.target #{options.fetch('target')})
|
@@ -33,8 +33,10 @@ module Hydra::RemoteIdentifier
|
|
33
33
|
attr_accessor :configuration
|
34
34
|
|
35
35
|
def configure!
|
36
|
-
|
37
|
-
|
36
|
+
if @configuration_block.respond_to?(:call)
|
37
|
+
self.configuration ||= Configuration.new
|
38
|
+
@configuration_block.call(configuration)
|
39
|
+
end
|
38
40
|
end
|
39
41
|
private :configure!
|
40
42
|
|