active-fedora 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ 1.2.4
2
+
3
+ Bug: Base.file_objects_append wasn't saving the child object after modifying its RELS-EXT
4
+
1
5
  1.2.3
2
6
 
3
7
  Major: Switched flow of relationship assertions for file objects. Now children assert isPartOf rather than parents asserting hasCollectionMember (see HYDRA-70 and HYDRA-71)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.3
1
+ 1.2.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active-fedora}
8
- s.version = "1.2.3"
8
+ s.version = "1.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Zumwalt", "McClain Looney"]
12
- s.date = %q{2010-10-18}
12
+ s.date = %q{2010-10-20}
13
13
  s.description = %q{ActiveFedora provides for creating and managing objects in the Fedora Repository Architecture.}
14
14
  s.email = %q{matt.zumwalt@yourmediashelf.com}
15
15
  s.extra_rdoc_files = [
@@ -296,6 +296,7 @@ module ActiveFedora
296
296
  end
297
297
  end
298
298
  obj.add_relationship(:is_part_of, self)
299
+ obj.save
299
300
  end
300
301
 
301
302
  def collection_members_append(obj)
@@ -26,14 +26,16 @@ describe ActiveFedora::Base do
26
26
  end
27
27
 
28
28
  describe ".file_objects_append" do
29
- it "should make the file object being appended assert isPartOf pointing back at the current object" do
29
+ it "should make the file object being appended assert isPartOf pointing back at the current object and save the child" do
30
30
  mock_child = ActiveFedora::Base.new
31
31
  mock_child.expects(:add_relationship).with(:is_part_of, @base)
32
+ mock_child.expects(:save)
32
33
  @base.file_objects_append(mock_child)
33
34
  end
34
- it "should load the file object being appended if only a pid is provided" do
35
+ it "should load the file object being appended if only a pid is provided and save the child" do
35
36
  mock_child = mock("object")
36
37
  mock_child.expects(:add_relationship).with(:is_part_of, @base)
38
+ mock_child.expects(:save)
37
39
  ActiveFedora::Base.expects(:load_instance).with("_PID_").returns(mock_child)
38
40
  @base.file_objects_append("_PID_")
39
41
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 3
10
- version: 1.2.3
9
+ - 4
10
+ version: 1.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Zumwalt
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-18 00:00:00 -05:00
19
+ date: 2010-10-20 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency