active-fedora 5.7.0 → 5.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d203bb23166b8052663ce948c2abf70dff30c060
4
- data.tar.gz: f2c73e2fc4d6fc6ce52686864c3f07d7c1cd951e
3
+ metadata.gz: 3b46cdb4a2b08e962eb11208d25c8d1b62c20002
4
+ data.tar.gz: a2db62d6d3c49b475e8cf1dd1faf1c64bd5e2799
5
5
  SHA512:
6
- metadata.gz: 9ad8ede6c8e065cccfa12c8b3e6675bb5c9cff1c3f766c7f2cf60d871069df7087be41857df4556751a13f9e93871fbb6e23626b9364929593d260bf6e1f99ea
7
- data.tar.gz: e30d9a768d58a756dfee0bf8cfa431a00aaca87a70f561b84c36cff1c700ef874ac7db68d482400cb389615ca30582f46366f72a2188e69dc3823d1c6ae46bf3
6
+ metadata.gz: c41953687706d6ee968dc502263d0cb3abc6fe66b32c74af20f0bf2f03d0cb8d8f8360c6684abf6938c2a8e6ef4012739038aea9ac8c1993a85436756d760008
7
+ data.tar.gz: c8ef58febdf589004777b45b83d079cce0df4beef6c35beebe4b4e7fbc50b7298535e8df56f8fc51a09744c72f83d47480027a5dd82de6b94a73d891b7c8a30a
@@ -112,6 +112,10 @@ module ActiveFedora
112
112
  @datastream_content ||= Nokogiri::XML(super).to_xml {|config| config.no_declaration}.strip
113
113
  end
114
114
 
115
+ def content
116
+ to_xml
117
+ end
118
+
115
119
  def content=(new_content)
116
120
  if inline?
117
121
  # inline datastreams may be transformed by fedora 3, so we test for equivalence instead of equality
@@ -428,6 +432,13 @@ module ActiveFedora
428
432
  def xml_loaded
429
433
  instance_variable_defined? :@ng_xml
430
434
  end
435
+
436
+ def reset_profile_attributes
437
+ super
438
+ if xml_loaded
439
+ @datastream_content = Nokogiri::XML(to_xml).to_xml {|config| config.no_declaration}.strip
440
+ end
441
+ end
431
442
 
432
443
  end
433
444
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "5.7.0"
2
+ VERSION = "5.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.7.0
4
+ version: 5.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-07 00:00:00.000000000 Z
13
+ date: 2013-10-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr