valkyrie_active_fedora 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: 885464a34b9b81470d0c6034123acda3e27a4e5e32ba37f2208b46cef831fa4b
4
- data.tar.gz: d8b18e50e14aba21712e0723fd7421c0f5a68919ad5af0ec1a5c8f75fba96123
3
+ metadata.gz: 193454c7f982820ec29a1515713b1970d3b28092713c19ef686b2cd570a95719
4
+ data.tar.gz: 10f433a1cdd81e61f8d207c5a06594ae2620aee1676645614eb7ad16f5995701
5
5
  SHA512:
6
- metadata.gz: 876b6f2e261d12c5168f215050f7db0b4f56ec602b42ff850acd1a229b4ea0a1a955c9df5145560fa9c026812b7c3f1cea8a1be03c911a863edbeaa7056560c5
7
- data.tar.gz: 2894ecd314aad31b25bf63f82ec71ea7f972c3173c702a50ec8ef1d53aa9e8e012e1666061f8c484d58e0ccbd410677573105a759beb45e2e59581efa66d26aa
6
+ metadata.gz: d5dfa47b334fd3478cbb75de50ea25814c938880d5cf60996c5fa937f577ed0224fa5afdbc11ffb7549e854960395040873565c2a2389c595b5879914b7c987c
7
+ data.tar.gz: b58a7d2de861387631e98e03c7c874a44546d08519fe84db24e9554d249c73435e20cd816286ab1f86d2d168b5854093de87dbb070ff12057440210b86fd943c
@@ -10,7 +10,7 @@ module ValkyrieActiveFedora
10
10
  # end
11
11
  class Base < ActiveFedora::Base
12
12
  def valkyrie_resource
13
- "Valkyrie::#{self.class}".constantize
13
+ "Valkyrie::#{self.class}".constantize.new
14
14
  rescue NameError
15
15
  nil
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module ValkyrieActiveFedora
2
- VERSION = '0.0.5'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
@@ -25,7 +25,7 @@ describe ValkyrieActiveFedora::Base do
25
25
  Valkyrie.send(:remove_const, :FooHistory)
26
26
  end
27
27
  it 'returns the Valkyrie class' do
28
- expect(foo_history.valkyrie_resource).to eq Valkyrie::FooHistory
28
+ expect(foo_history.valkyrie_resource).to be_kind_of Valkyrie::FooHistory
29
29
  end
30
30
  end
31
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valkyrie_active_fedora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - E. Lynette Rayle