active-fedora 6.7.6 → 6.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +29 -1
- data/active-fedora.gemspec +1 -1
- data/lib/active_fedora/datastreams.rb +1 -1
- data/lib/active_fedora/digital_object.rb +2 -2
- data/lib/active_fedora/version.rb +1 -1
- data/spec/integration/auditable_spec.rb +1 -1
- data/spec/integration/om_datastream_spec.rb +2 -2
- data/spec/unit/datastream_spec.rb +13 -7
- data/spec/unit/datastreams_spec.rb +1 -1
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46a78de49a9573826cf094f2f8921d992235d00d
|
4
|
+
data.tar.gz: 4bb2d7fe7f8000df1ee8b5019e55af47149d8b3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d51675b0bc6ab617eda83f7ea72036b5a106c8b921284db324138647416b2f06e532f39be7be4f567377568feb5becf3058702ea8b5088dc794b4a6a18cadc
|
7
|
+
data.tar.gz: a3a0dde5bfe9cbda4ecf18379defd12e9e361273cdc54f31e34c886ab93cc983a77c590b9720d18d79b85ebffa33230c619f3aa4cb4ed50107e3060e10bcba9c
|
data/History.txt
CHANGED
@@ -1,5 +1,33 @@
|
|
1
|
+
v6.7.7
|
2
|
+
Backported changes from master for rubydora 1.7.1+ compatibility (Fixes #354). Upgraded rubydora to ~> 1.7.4. [David Chandek-Stark]
|
3
|
+
|
4
|
+
v6.7.6
|
5
|
+
Patch ActiveFedora::SolrDigitalObject for Rubydora 1.7.0 compatibility. [David Chandek-Stark]
|
6
|
+
|
7
|
+
v6.7.5
|
8
|
+
Support for rubydora 1.7.0 [Justin Coyne]
|
9
|
+
|
10
|
+
v6.7.4
|
11
|
+
Restrict rdf to ~> 1.1.1.1 because rdf 1.1.2 breaks ActiveFedora [Justin Coyne]
|
12
|
+
|
13
|
+
v6.7.3
|
14
|
+
Force overwrite the blacklight configuration [Justin Coyne]
|
15
|
+
|
16
|
+
v6.7.2
|
17
|
+
ConfigGenerator should use a unique method name, not `generate` so that it doesn't cause an infinite loop [Justin Coyne]
|
18
|
+
|
19
|
+
v6.7.1
|
20
|
+
Force RDF data to be UTF-8 The RDF reader chokes on certain character combinations if the raw data is not encoded UTF-8. See https://github.com/ruby-rdf/rdf/issues/142 Fedora does not store character encoding, so by default they come back as ASCII-8BIT. [Justin Coyne]
|
21
|
+
Renaming invoke -> generate [Jeremy Friesen]
|
22
|
+
|
23
|
+
v6.7.0
|
24
|
+
Remove loading of rake tasks because they are already loaded in the railtie [Chris Colvard]
|
25
|
+
Added has_attributes to replace delegate_to [Justin Coyne]
|
26
|
+
|
1
27
|
v6.6.1
|
2
|
-
Don't try to track changes on delegates that are not attributes
|
28
|
+
Don't try to track changes on delegates that are not attributes [Justin Coyne]
|
29
|
+
Alter test so that it's compatible with the solr document produced by om 3.0.4 [Justin Coyne]
|
30
|
+
Fix test for Fedora 3.7 [Justin Coyne]
|
3
31
|
|
4
32
|
v6.6.0
|
5
33
|
Add _destroy method for building nested forms [Justin Coyne]
|
data/active-fedora.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.add_dependency('nom-xml', '>=0.5.1')
|
20
20
|
s.add_dependency("activesupport", '>= 3.0.0')
|
21
21
|
s.add_dependency("mediashelf-loggable")
|
22
|
-
s.add_dependency("rubydora", '~>
|
22
|
+
s.add_dependency("rubydora", '~> 1.7.4')
|
23
23
|
s.add_dependency("rdf", '~> 1.1.1.1')
|
24
24
|
s.add_dependency("rdf-rdfxml", '1.0.1')
|
25
25
|
s.add_dependency("deprecation")
|
@@ -4,10 +4,10 @@ module ActiveFedora
|
|
4
4
|
attr_accessor :original_class
|
5
5
|
|
6
6
|
module DatastreamBootstrap
|
7
|
-
def datastream_object_for dsid, ds_spec=nil
|
7
|
+
def datastream_object_for dsid, options={}, ds_spec=nil
|
8
8
|
# ds_spec is nil when called from Rubydora for existing datastreams, so it should not be autocreated
|
9
9
|
ds_spec ||= (original_class.ds_specs[dsid] || {}).merge(:autocreate=>false)
|
10
|
-
ds = ds_spec.fetch(:type, ActiveFedora::Datastream).new(self, dsid)
|
10
|
+
ds = ds_spec.fetch(:type, ActiveFedora::Datastream).new(self, dsid, options)
|
11
11
|
attributes = {}
|
12
12
|
attributes[:asOfDateTime] ||= asOfDateTime if self.respond_to? :asOfDateTime
|
13
13
|
attributes[:dsLabel] = ds_spec[:label] if ds_spec[:label].present?
|
@@ -22,7 +22,7 @@ describe ActiveFedora::Auditable do
|
|
22
22
|
record.action.should == "addDatastream"
|
23
23
|
record.component_id.should == "RELS-EXT"
|
24
24
|
record.responsibility.should == "fedoraAdmin"
|
25
|
-
record.date.
|
25
|
+
expect(DateTime.parse(record.date)).to eq DateTime.parse(@test_object.modified_date)
|
26
26
|
record.justification.should == ""
|
27
27
|
end
|
28
28
|
|
@@ -7,7 +7,7 @@ describe ActiveFedora::OmDatastream do
|
|
7
7
|
before(:all) do
|
8
8
|
class ModsArticle3 < ActiveFedora::Base
|
9
9
|
# Uses the Hydra MODS Article profile for tracking most of the descriptive metadata
|
10
|
-
has_metadata
|
10
|
+
has_metadata "descMetadata", type: Hydra::ModsArticleDatastream, control_group: 'X', autocreate: true
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -56,7 +56,7 @@ describe ActiveFedora::OmDatastream do
|
|
56
56
|
before(:all) do
|
57
57
|
class ModsArticle2 < ActiveFedora::Base
|
58
58
|
# Uses the Hydra MODS Article profile for tracking most of the descriptive metadata
|
59
|
-
has_metadata
|
59
|
+
has_metadata "descMetadata", type: Hydra::ModsArticleDatastream, autocreate: true
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
@@ -36,13 +36,19 @@ describe ActiveFedora::Datastream do
|
|
36
36
|
@test_datastream.validate_content_present.should be_true
|
37
37
|
end
|
38
38
|
|
39
|
-
|
40
|
-
@test_datastream.controlGroup = 'M'
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
39
|
+
context "on a Managed (M) datastream" do
|
40
|
+
before { @test_datastream.controlGroup = 'M' }
|
41
|
+
it "should be false when neither dsLocation nor content is present" do
|
42
|
+
@test_datastream.validate_content_present.should be_false
|
43
|
+
end
|
44
|
+
it "should be true when dsLocation is present" do
|
45
|
+
@test_datastream.dsLocation = "http://example.com/test/content/abcd"
|
46
|
+
@test_datastream.validate_content_present.should be_true
|
47
|
+
end
|
48
|
+
it "should be true when content is present" do
|
49
|
+
@test_datastream.content = "<foo><xmlelement/></foo>"
|
50
|
+
@test_datastream.validate_content_present.should be_true
|
51
|
+
end
|
46
52
|
end
|
47
53
|
|
48
54
|
it "should expect a dsLocation on an External (E) datastream" do
|
@@ -126,7 +126,7 @@ describe ActiveFedora::Datastreams do
|
|
126
126
|
|
127
127
|
describe "#datastream_from_spec" do
|
128
128
|
it "should fetch the rubydora datastream" do
|
129
|
-
subject.inner_object.should_receive(:datastream_object_for).with('dsid', {})
|
129
|
+
subject.inner_object.should_receive(:datastream_object_for).with('dsid', {}, {})
|
130
130
|
subject.datastream_from_spec({}, 'dsid')
|
131
131
|
end
|
132
132
|
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: 6.7.
|
4
|
+
version: 6.7.7
|
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: 2014-
|
13
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|
@@ -88,20 +88,14 @@ dependencies:
|
|
88
88
|
requirements:
|
89
89
|
- - ~>
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
92
|
-
- - '>='
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 1.6.5
|
91
|
+
version: 1.7.4
|
95
92
|
type: :runtime
|
96
93
|
prerelease: false
|
97
94
|
version_requirements: !ruby/object:Gem::Requirement
|
98
95
|
requirements:
|
99
96
|
- - ~>
|
100
97
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
102
|
-
- - '>='
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: 1.6.5
|
98
|
+
version: 1.7.4
|
105
99
|
- !ruby/object:Gem::Dependency
|
106
100
|
name: rdf
|
107
101
|
requirement: !ruby/object:Gem::Requirement
|
@@ -556,7 +550,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
556
550
|
version: '0'
|
557
551
|
requirements: []
|
558
552
|
rubyforge_project:
|
559
|
-
rubygems_version: 2.
|
553
|
+
rubygems_version: 2.2.2
|
560
554
|
signing_key:
|
561
555
|
specification_version: 4
|
562
556
|
summary: A convenience libary for manipulating documents in the Fedora Repository.
|