active-fedora 1.2.3 → 1.2.4
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.
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/active-fedora.gemspec +2 -2
- data/lib/active_fedora/base.rb +1 -0
- data/spec/unit/base_file_management_spec.rb +4 -2
- metadata +4 -4
data/History.txt
CHANGED
@@ -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.
|
1
|
+
1.2.4
|
data/active-fedora.gemspec
CHANGED
@@ -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.
|
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-
|
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 = [
|
data/lib/active_fedora/base.rb
CHANGED
@@ -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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
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-
|
19
|
+
date: 2010-10-20 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|