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: b96ecf3dd7c10241d67f8e45794d8d392f2dc5a8
4
- data.tar.gz: d50f078a9a4dbabfd9ab4e70fbe12f7535da198a
3
+ metadata.gz: 06bf8800b2023776c3dcaf064c25de6a3e01778b
4
+ data.tar.gz: 4619ca2b0114d02524d7045f5ecc07cf33791255
5
5
  SHA512:
6
- metadata.gz: 4427c065e94c4386c1f5b63a8f216c5d3b6a35107f9ae8eb59eedf56dbb284fad6587577956eeaf1aa407673581bbdc4ca4dbafe8fa5f35513058f5c0e429984
7
- data.tar.gz: 4c5081a38b8ccecee029f6b5bfb1239b2292b5d1b0fe298770527c939d1ef959d38c35f0f4131f1639ebba60c66dfd4a67d5b8d43def8b1e8d3a700a58abd7df
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
- self.configuration ||= Configuration.new
37
- @configuration_block.call(configuration)
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
 
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module RemoteIdentifier
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-remote_identifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen