active_fedora-crosswalks 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjY3Y2NjNDdhZDYwZmE0Nzc5ZWM1ZTlkNTNiM2ViYzVlODg0ZjNiZA==
4
+ ZWQxM2RiNDc1YmYyNjYxM2Y5MTE1ZTY0ZDgyOWQ2MzI5OTU1YmYzZg==
5
5
  data.tar.gz: !binary |-
6
- YzkwODY1N2VmNjExMzE2YmUyMmQwOWZlMTU0ZjVjOTcwMDllYTA0Zg==
6
+ YzE4NjE4YzExZGZmZDczZTNmZTU1Y2RhMWMxOGMzZDc1MWMzYTAwYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDY5OWI2YzE3YmMxYzI4OWYxZTg0YmNhMzdmZjljMmM2NWZhOGI1YzE4M2U1
10
- MGMwZmYxZTE5MjAzMjZjMTI1MjJiMTdlODI0MGI4NWVlYTBjYTg2MGQyMTQ5
11
- NmE2MmQwNjc0MzY3ZmFkOWYyNzJiZTgxZTE2NzNlZGJjNWJmYmU=
9
+ OWZiZGFlZTQ1YmRkN2JlOTEyNjNkMGJhNjdmNWRiNWY3M2FiMzI5MGQwNTll
10
+ ZDc5YWE5MTQ5OGM4ZTA2MjQ5NTQ2ZTMyNjExZWVkMDg1YzYwOGExM2M2NTRm
11
+ ZDM3YTk5MDMyYzA0ODFhYTk2MDhmMWRlZTFiZThjN2U2ZWY3ODY=
12
12
  data.tar.gz: !binary |-
13
- MWYxODdmOGRhZDNiYjE5YjA0OGI1NmE4NjdhYTMwYTlkYTY1ZGNlZGI2ZWVh
14
- MDNlZjM0ZjU2ZDc3NDMzMjI5NjQ2ZmM4ZGJmNWQ5Mzg1NmQxOWM3Y2E2YTVl
15
- YTY5ZDZmZWVlZTdmNDJjNmFlMTIzYmZjODE3OGVhMTA2ZjZmNjU=
13
+ YWU3NGNkMTY5YmRkZGRkY2YzNzA1ZmNhNGMzM2M5NzJjYWMwMWM0MGM3OGRk
14
+ YzU2YmU3N2M0ZDJhMzc2YzllYzAwOWI1Yzc5OTMwYjBkNjViNWFlMjQ4N2Jh
15
+ MGQ3ZDZkYWEyNzBkMjRiOGZjZGQwZDRjNTM0NTkzMzFjYTQxNTA=
@@ -66,6 +66,7 @@ module ActiveFedora
66
66
  def create_reader
67
67
  object, method, expected_args = source_accessor.get_reader
68
68
  crosswalker = self
69
+ return if object.respond_to?("unstubbed_#{method}".to_sym)
69
70
  object.singleton_class.class_eval do
70
71
  alias_method "unstubbed_#{method}".to_sym, method.to_sym
71
72
  end
@@ -78,6 +79,7 @@ module ActiveFedora
78
79
  def create_writer
79
80
  object, method, expected_args = source_accessor.get_writer
80
81
  crosswalker = self
82
+ return if object.respond_to?("unstubbed_#{method}".to_sym)
81
83
  object.singleton_class.class_eval do
82
84
  alias_method "unstubbed_#{method}".to_sym, method.to_sym
83
85
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveFedora
2
2
  module Crosswalks
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -16,6 +16,9 @@ describe ActiveFedora::Crosswalks::Crosswalkable do
16
16
  ds.crosswalk :field => :title, :to => :other_title, :in => :descMetadata
17
17
  end
18
18
  end
19
+ it "should be able to reload" do
20
+ expect {asset.load_datastreams}.not_to raise_error
21
+ end
19
22
  context "when a field is set" do
20
23
  context "on the source datastream" do
21
24
  before(:each) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_fedora-crosswalks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trey Terrell