active-fedora 3.3.2 → 4.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +21 -22
- data/History.txt +9 -0
- data/README.textile +1 -1
- data/TODO +1 -0
- data/active-fedora.gemspec +3 -3
- data/config/fedora.yml +9 -3
- data/lib/active_fedora.rb +43 -33
- data/lib/active_fedora/base.rb +80 -31
- data/lib/active_fedora/config.rb +38 -0
- data/lib/active_fedora/content_model.rb +0 -6
- data/lib/active_fedora/datastream.rb +22 -0
- data/lib/active_fedora/delegating.rb +24 -25
- data/lib/active_fedora/digital_object.rb +2 -1
- data/lib/active_fedora/file_management.rb +1 -0
- data/lib/active_fedora/fixture_exporter.rb +1 -1
- data/lib/active_fedora/fixture_loader.rb +3 -3
- data/lib/active_fedora/metadata_datastream.rb +6 -0
- data/lib/active_fedora/model.rb +24 -5
- data/lib/active_fedora/nokogiri_datastream.rb +1 -0
- data/lib/active_fedora/ntriples_rdf_datastream.rb +0 -1
- data/lib/active_fedora/persistence.rb +2 -1
- data/lib/active_fedora/predicates.rb +27 -27
- data/lib/active_fedora/rdf_datastream.rb +104 -30
- data/lib/active_fedora/rels_ext_datastream.rb +14 -10
- data/lib/active_fedora/rubydora_connection.rb +4 -27
- data/lib/active_fedora/service_definitions.rb +2 -3
- data/lib/active_fedora/solr_digital_object.rb +22 -8
- data/lib/active_fedora/solr_service.rb +1 -1
- data/lib/active_fedora/unsaved_digital_object.rb +1 -4
- data/lib/active_fedora/version.rb +1 -1
- data/lib/tasks/active_fedora.rake +6 -6
- data/lib/tasks/active_fedora_dev.rake +0 -1
- data/spec/fixtures/mixed_rdf_descMetadata.nt +6 -0
- data/spec/fixtures/rails_root/config/fedora.yml +3 -1
- data/spec/fixtures/sharded_fedora.yml +11 -0
- data/spec/integration/base_file_management_spec.rb +6 -3
- data/spec/integration/base_find_by_fields_spec.rb +15 -16
- data/spec/integration/base_spec.rb +11 -178
- data/spec/integration/datastream_collections_spec.rb +1 -1
- data/spec/integration/full_featured_model_spec.rb +1 -2
- data/spec/integration/model_spec.rb +8 -9
- data/spec/integration/mods_article_integration_spec.rb +1 -1
- data/spec/integration/nokogiri_datastream_spec.rb +1 -1
- data/spec/integration/ntriples_datastream_spec.rb +80 -0
- data/spec/integration/rels_ext_datastream_spec.rb +0 -1
- data/spec/integration/semantic_node_spec.rb +18 -26
- data/spec/integration/solr_service_spec.rb +51 -1
- data/{lib/active_fedora → spec}/samples/hydra-mods_article_datastream.rb +0 -0
- data/{lib/active_fedora → spec}/samples/hydra-rights_metadata_datastream.rb +0 -0
- data/{lib/active_fedora → spec}/samples/marpa-dc_datastream.rb +0 -0
- data/spec/samples/models/hydrangea_article.rb +2 -2
- data/spec/samples/samples.rb +2 -0
- data/{lib/active_fedora → spec}/samples/special_thing.rb +3 -3
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/active_fedora_spec.rb +17 -50
- data/spec/unit/base_extra_spec.rb +4 -0
- data/spec/unit/base_file_management_spec.rb +5 -2
- data/spec/unit/base_spec.rb +692 -628
- data/spec/unit/config_spec.rb +19 -0
- data/spec/unit/content_model_spec.rb +1 -24
- data/spec/unit/datastream_collections_spec.rb +11 -14
- data/spec/unit/datastreams_spec.rb +49 -54
- data/spec/unit/model_spec.rb +24 -53
- data/spec/unit/nokogiri_datastream_spec.rb +6 -1
- data/spec/unit/ntriples_datastream_spec.rb +73 -0
- data/spec/unit/qualified_dublin_core_datastream_spec.rb +1 -1
- data/spec/unit/relationships_spec.rb +6 -3
- data/spec/unit/rels_ext_datastream_spec.rb +19 -0
- data/spec/unit/rubydora_connection_spec.rb +2 -56
- data/spec/unit/solr_service_spec.rb +3 -1
- data/spec/unit/unsaved_digital_object_spec.rb +2 -2
- metadata +46 -33
- data/lib/active_fedora/dcrdf_datastream.rb +0 -11
- data/lib/active_fedora/relationship.rb +0 -47
- data/lib/active_fedora/samples.rb +0 -3
- data/spec/integration/dc_rdf_datastream_spec.rb +0 -24
- data/spec/unit/dc_rdf_datastream_spec.rb +0 -50
- data/spec/unit/relationship_spec.rb +0 -92
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require "active_fedora/samples"
|
3
2
|
describe ActiveFedora::NokogiriDatastream do
|
4
3
|
|
5
4
|
before(:all) do
|
@@ -53,6 +52,12 @@ describe ActiveFedora::NokogiriDatastream do
|
|
53
52
|
ActiveFedora::NokogiriDatastream.xml_template.to_xml.should == "<?xml version=\"1.0\"?>\n<xml/>\n"
|
54
53
|
end
|
55
54
|
end
|
55
|
+
|
56
|
+
describe "an instance" do
|
57
|
+
subject { ActiveFedora::NokogiriDatastream.new(nil, nil) }
|
58
|
+
it{ should.respond_to? :to_solr }
|
59
|
+
its(:to_solr) {should == { }}
|
60
|
+
end
|
56
61
|
|
57
62
|
describe ".update_indexed_attributes" do
|
58
63
|
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe ActiveFedora::NtriplesRDFDatastream do
|
4
|
+
|
5
|
+
describe "an instance with content" do
|
6
|
+
before do
|
7
|
+
class MyDatastream < ActiveFedora::NtriplesRDFDatastream
|
8
|
+
map_predicates do |map|
|
9
|
+
map.created(:in => RDF::DC)
|
10
|
+
map.title(:in => RDF::DC)
|
11
|
+
map.publisher(:in => RDF::DC)
|
12
|
+
map.based_near(:in => RDF::FOAF)
|
13
|
+
map.related_url(:to => "seeAlso", :in => RDF::RDFS)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
@subject = MyDatastream.new(@inner_object, 'mixed_rdf')
|
17
|
+
@subject.content = File.new('spec/fixtures/mixed_rdf_descMetadata.nt').read
|
18
|
+
@subject.stubs(:pid => 'test:1')
|
19
|
+
@subject.stubs(:new? => false)
|
20
|
+
end
|
21
|
+
it "should have controlGroup" do
|
22
|
+
@subject.controlGroup.should == 'M'
|
23
|
+
end
|
24
|
+
it "should have mimeType" do
|
25
|
+
@subject.mimeType.should == 'text/plain'
|
26
|
+
end
|
27
|
+
it "should have dsid" do
|
28
|
+
@subject.dsid.should == 'mixed_rdf'
|
29
|
+
end
|
30
|
+
it "should have fields" do
|
31
|
+
@subject.created.should == ["2010-12-31"]
|
32
|
+
@subject.title.should == ["Title of work"]
|
33
|
+
@subject.publisher.should == ["Penn State"]
|
34
|
+
@subject.based_near.should == ["New York, NY, US"]
|
35
|
+
@subject.related_url.should == ["http://google.com/"]
|
36
|
+
end
|
37
|
+
it "should return fields that are TermProxies" do
|
38
|
+
@subject.created.should be_kind_of ActiveFedora::RDFDatastream::TermProxy
|
39
|
+
end
|
40
|
+
it "should have method missing" do
|
41
|
+
lambda{@subject.frank}.should raise_exception ActiveFedora::UnregisteredPredicateError
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should set fields" do
|
45
|
+
@subject.publisher = "St. Martin's Press"
|
46
|
+
@subject.publisher.should == ["St. Martin's Press"]
|
47
|
+
end
|
48
|
+
it "should append fields" do
|
49
|
+
@subject.publisher << "St. Martin's Press"
|
50
|
+
@subject.publisher.should == ["Penn State", "St. Martin's Press"]
|
51
|
+
end
|
52
|
+
it "should delete fields" do
|
53
|
+
@subject.related_url.delete("http://google.com/")
|
54
|
+
@subject.related_url.should == []
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe "a new instance" do
|
59
|
+
before do
|
60
|
+
class MyDatastream < ActiveFedora::NtriplesRDFDatastream
|
61
|
+
map_predicates do |map|
|
62
|
+
map.publisher(:in => RDF::DC)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
@subject = MyDatastream.new(@inner_object, 'mixed_rdf')
|
66
|
+
@subject.stubs(:pid => 'test:1')
|
67
|
+
end
|
68
|
+
it "should save and reload" do
|
69
|
+
@subject.publisher = ["St. Martin's Press"]
|
70
|
+
@subject.save
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -12,7 +12,7 @@ describe ActiveFedora::QualifiedDublinCoreDatastream do
|
|
12
12
|
before(:each) do
|
13
13
|
stub_get("_nextid_", ['RELS-EXT', 'sensitive_passages', 'significant_passages', 'dublin_core', 'properties'])
|
14
14
|
Rubydora::Repository.any_instance.stubs(:client).returns(@mock_client)
|
15
|
-
ActiveFedora::
|
15
|
+
ActiveFedora::Base.stubs(:assign_pid).returns("_nextid_")
|
16
16
|
@test_ds = ActiveFedora::QualifiedDublinCoreDatastream.new(nil, nil)
|
17
17
|
@test_ds.stubs(:content).returns('')
|
18
18
|
|
@@ -17,6 +17,8 @@ describe ActiveFedora::Relationships do
|
|
17
17
|
self.pid = inner_obj.pid
|
18
18
|
self
|
19
19
|
end
|
20
|
+
def self.connection_for_pid(pid)
|
21
|
+
end
|
20
22
|
|
21
23
|
def internal_uri
|
22
24
|
'info:fedora/' + pid.to_s
|
@@ -176,7 +178,7 @@ describe ActiveFedora::Relationships do
|
|
176
178
|
SpecNode.create_inbound_relationship_finders("constituents", :is_constituent_of, :inbound => true)
|
177
179
|
local_node = SpecNode.new
|
178
180
|
mock_repo = mock("repo")
|
179
|
-
mock_repo.expects(:
|
181
|
+
mock_repo.expects(:load_instance).never
|
180
182
|
local_node.expects(:pid).returns("test:sample_pid")
|
181
183
|
SpecNode.expects(:relationships_desc).returns({:inbound=>{"constituents"=>{:predicate=>:is_constituent_of}}}).at_least_once()
|
182
184
|
ActiveFedora::SolrService.instance.conn.expects(:query).with("is_constituent_of_s:info\\:fedora/test\\:sample_pid", :rows=>101).returns(solr_result)
|
@@ -228,7 +230,7 @@ describe ActiveFedora::Relationships do
|
|
228
230
|
end
|
229
231
|
|
230
232
|
describe " resulting finder" do
|
231
|
-
it "should read from relationships array and use Repository.
|
233
|
+
it "should read from relationships array and use Repository.load_instance to build an array of objects" do
|
232
234
|
SpecNode.create_outbound_relationship_finders("containers", :is_member_of)
|
233
235
|
local_node = SpecNode.new
|
234
236
|
local_node.expects(:ids_for_outbound).with(:is_member_of).returns(["my:_PID1_", "my:_PID2_", "my:_PID3_"])
|
@@ -248,7 +250,7 @@ describe ActiveFedora::Relationships do
|
|
248
250
|
SpecNode.create_outbound_relationship_finders("constituents", :is_constituent_of)
|
249
251
|
local_node = SpecNode.new
|
250
252
|
mock_repo = mock("repo")
|
251
|
-
mock_repo.expects(:
|
253
|
+
mock_repo.expects(:load_instance).never
|
252
254
|
local_node.expects(:rels_ext).returns(stub('rels-ext', :content=>''))
|
253
255
|
ActiveFedora::SolrService.instance.conn.expects(:query).returns(solr_result)
|
254
256
|
local_node.constituents(:response_format => :solr).should equal(solr_result)
|
@@ -377,6 +379,7 @@ describe ActiveFedora::Relationships do
|
|
377
379
|
describe '#inbound_relationship_names' do
|
378
380
|
before do
|
379
381
|
class MockRelationshipNames < SpecNode
|
382
|
+
include ActiveFedora::Relationships
|
380
383
|
register_relationship_desc(:self, "testing", :has_part, :type=>SpecNode)
|
381
384
|
create_relationship_name_methods("testing")
|
382
385
|
register_relationship_desc(:self, "testing2", :has_member, :type=>SpecNode)
|
@@ -144,4 +144,23 @@ describe ActiveFedora::RelsExtDatastream do
|
|
144
144
|
|
145
145
|
end
|
146
146
|
end
|
147
|
+
|
148
|
+
describe "#short_predicate" do
|
149
|
+
before(:all) do
|
150
|
+
@original_mapping = ActiveFedora::Predicates.predicate_config[:predicate_mapping]
|
151
|
+
end
|
152
|
+
after(:all) do
|
153
|
+
ActiveFedora::Predicates.predicate_config[:predicate_mapping] = @original_mapping
|
154
|
+
end
|
155
|
+
it "should find predicates regardless of order loaded or shared namespace prefixes" do
|
156
|
+
ActiveFedora::Predicates.predicate_config[:predicate_mapping] = {
|
157
|
+
"http://example.org/"=>{:ceo => 'Manager'},
|
158
|
+
"http://example.org/zoo/wolves/"=>{:alpha => 'Manager'},
|
159
|
+
"http://example.org/zoo/"=>{:keeper => 'Manager'}
|
160
|
+
}
|
161
|
+
ActiveFedora::RelsExtDatastream.short_predicate("http://example.org/zoo/Manager").should == :keeper
|
162
|
+
ActiveFedora::RelsExtDatastream.short_predicate("http://example.org/zoo/wolves/Manager").should == :alpha
|
163
|
+
ActiveFedora::RelsExtDatastream.short_predicate("http://example.org/Manager").should == :ceo
|
164
|
+
end
|
165
|
+
end
|
147
166
|
end
|
@@ -2,66 +2,12 @@ require 'spec_helper'
|
|
2
2
|
require 'active_fedora/rubydora_connection'
|
3
3
|
|
4
4
|
describe ActiveFedora::RubydoraConnection do
|
5
|
-
|
6
|
-
describe 'nextid' do
|
7
|
-
before do
|
8
|
-
@instance = ActiveFedora::RubydoraConnection.instance
|
9
|
-
end
|
10
|
-
it "should get nextid" do
|
11
|
-
one = @instance.nextid
|
12
|
-
two = @instance.nextid
|
13
|
-
one = one.gsub('changeme:', '').to_i
|
14
|
-
two = two.gsub('changeme:', '').to_i
|
15
|
-
two.should == one + 1
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
# Put methods whose tests require registering Fedora & Solr here.
|
20
|
-
# to allow tests to run fast, keep these to a minimum.
|
21
|
-
describe "connection" do
|
22
|
-
describe "That is new" do
|
23
|
-
before do
|
24
|
-
ActiveFedora::RubydoraConnection.instance.instance_variable_set(:@connection, nil)
|
25
|
-
end
|
26
|
-
it "should regiser instances with the appropriate urls" do
|
27
|
-
ActiveFedora.expects(:load_configs)
|
28
|
-
ActiveFedora::RubydoraConnection.instance.connection.should be_a Rubydora::Repository
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
describe 'connect' do
|
34
|
-
before do
|
35
|
-
@instance = ActiveFedora::RubydoraConnection.instance
|
36
|
-
@reconfig = { :force => true, :url => @instance.connection.client.url }.merge(@instance.connection.client.options)
|
37
|
-
end
|
38
|
-
|
39
|
-
after do
|
40
|
-
ActiveFedora::RubydoraConnection.connect @reconfig
|
41
|
-
end
|
42
|
-
|
43
|
-
it "shouldn't reconnect by default" do
|
44
|
-
client_id = @instance.connection.client.object_id
|
45
|
-
ActiveFedora::RubydoraConnection.connect :timeout => 3600
|
46
|
-
@instance.connection.client.object_id.should == client_id
|
47
|
-
end
|
48
|
-
|
49
|
-
it "should reconnect with force" do
|
50
|
-
client_id = @instance.connection.client.object_id
|
51
|
-
ActiveFedora::RubydoraConnection.connect :force => true
|
52
|
-
@instance.connection.client.object_id.should_not == client_id
|
53
|
-
end
|
54
|
-
|
5
|
+
describe 'initialize' do
|
55
6
|
it "should pass through valid options" do
|
56
|
-
ActiveFedora::RubydoraConnection.
|
7
|
+
@instance = ActiveFedora::RubydoraConnection.new :timeout => 3600, :fake_option => :missing, :force => true, :validateChecksum=>true
|
57
8
|
@instance.connection.client.options[:timeout].should == 3600
|
58
9
|
@instance.connection.config[:validateChecksum].should == true
|
59
10
|
@instance.connection.client.options.has_key?(:fake_option).should be_false
|
60
11
|
end
|
61
12
|
end
|
62
|
-
|
63
|
-
|
64
|
-
|
65
13
|
end
|
66
|
-
|
67
|
-
|
@@ -53,6 +53,8 @@ describe ActiveFedora::SolrService do
|
|
53
53
|
self.pid = inner_obj.pid
|
54
54
|
self
|
55
55
|
end
|
56
|
+
def self.connection_for_pid(pid)
|
57
|
+
end
|
56
58
|
end
|
57
59
|
@sample_solr_hits = [{"id"=>"my:_PID1_", "has_model_s"=>["info:fedora/afmodel:AudioRecord"]},
|
58
60
|
{"id"=>"my:_PID2_", "has_model_s"=>["info:fedora/afmodel:AudioRecord"]},
|
@@ -62,7 +64,7 @@ describe ActiveFedora::SolrService do
|
|
62
64
|
mocko = mock("input", :is_a? => false)
|
63
65
|
lambda {ActiveFedora::SolrService.reify_solr_results(mocko)}.should raise_error(ArgumentError)
|
64
66
|
end
|
65
|
-
it "should use Repository.
|
67
|
+
it "should use Repository.load_instance to instantiate objects" do
|
66
68
|
solr_result = mock("solr result", :is_a? => true)
|
67
69
|
solr_result.expects(:hits).returns(@sample_solr_hits)
|
68
70
|
ActiveFedora::SolrService.reify_solr_results(solr_result).map(&:pid).should == ["my:_PID1_", "my:_PID2_", "my:_PID3_"]
|
@@ -4,7 +4,7 @@ describe ActiveFedora::UnsavedDigitalObject do
|
|
4
4
|
|
5
5
|
describe "an unsaved instance" do
|
6
6
|
before do
|
7
|
-
@obj = ActiveFedora::UnsavedDigitalObject.new(
|
7
|
+
@obj = ActiveFedora::UnsavedDigitalObject.new(ActiveFedora::Base, 'bar')
|
8
8
|
end
|
9
9
|
it "should have ownerId property" do
|
10
10
|
@obj.ownerId = 'fooo'
|
@@ -14,7 +14,7 @@ describe ActiveFedora::UnsavedDigitalObject do
|
|
14
14
|
|
15
15
|
describe "#save" do
|
16
16
|
before :all do
|
17
|
-
obj = ActiveFedora::UnsavedDigitalObject.new(
|
17
|
+
obj = ActiveFedora::UnsavedDigitalObject.new(ActiveFedora::Base, 'bar')
|
18
18
|
obj.label = 'my label'
|
19
19
|
obj.ownerId = 'fooo'
|
20
20
|
@saved_obj = obj.save
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active-fedora
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15424151
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
7
|
+
- 4
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- rc
|
11
|
+
- 1
|
12
|
+
version: 4.0.0.rc1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- Matt Zumwalt
|
@@ -17,7 +19,7 @@ autorequire:
|
|
17
19
|
bindir: bin
|
18
20
|
cert_chain: []
|
19
21
|
|
20
|
-
date: 2012-
|
22
|
+
date: 2012-03-04 00:00:00 Z
|
21
23
|
dependencies:
|
22
24
|
- !ruby/object:Gem::Dependency
|
23
25
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -102,12 +104,12 @@ dependencies:
|
|
102
104
|
requirements:
|
103
105
|
- - ">="
|
104
106
|
- !ruby/object:Gem::Version
|
105
|
-
hash:
|
107
|
+
hash: 5
|
106
108
|
segments:
|
107
109
|
- 1
|
108
110
|
- 5
|
109
|
-
-
|
110
|
-
version: 1.5.
|
111
|
+
- 3
|
112
|
+
version: 1.5.3
|
111
113
|
requirement: *id006
|
112
114
|
name: om
|
113
115
|
type: :runtime
|
@@ -194,12 +196,12 @@ dependencies:
|
|
194
196
|
requirements:
|
195
197
|
- - ~>
|
196
198
|
- !ruby/object:Gem::Version
|
197
|
-
hash:
|
199
|
+
hash: 3
|
198
200
|
segments:
|
199
201
|
- 0
|
200
202
|
- 5
|
201
|
-
-
|
202
|
-
version: 0.5.
|
203
|
+
- 4
|
204
|
+
version: 0.5.4
|
203
205
|
requirement: *id012
|
204
206
|
name: rubydora
|
205
207
|
type: :runtime
|
@@ -280,12 +282,12 @@ dependencies:
|
|
280
282
|
requirements:
|
281
283
|
- - ~>
|
282
284
|
- !ruby/object:Gem::Version
|
283
|
-
hash:
|
285
|
+
hash: 21
|
284
286
|
segments:
|
285
287
|
- 1
|
286
288
|
- 2
|
287
|
-
-
|
288
|
-
version: 1.2.
|
289
|
+
- 5
|
290
|
+
version: 1.2.5
|
289
291
|
requirement: *id018
|
290
292
|
name: solrizer-fedora
|
291
293
|
type: :development
|
@@ -365,6 +367,7 @@ files:
|
|
365
367
|
- PostInstall.txt
|
366
368
|
- README.textile
|
367
369
|
- Rakefile
|
370
|
+
- TODO
|
368
371
|
- active-fedora.gemspec
|
369
372
|
- config/fedora.yml
|
370
373
|
- config/jetty.yml
|
@@ -385,12 +388,12 @@ files:
|
|
385
388
|
- lib/active_fedora/attribute_methods.rb
|
386
389
|
- lib/active_fedora/base.rb
|
387
390
|
- lib/active_fedora/callbacks.rb
|
391
|
+
- lib/active_fedora/config.rb
|
388
392
|
- lib/active_fedora/content_model.rb
|
389
393
|
- lib/active_fedora/datastream.rb
|
390
394
|
- lib/active_fedora/datastream_collections.rb
|
391
395
|
- lib/active_fedora/datastream_hash.rb
|
392
396
|
- lib/active_fedora/datastreams.rb
|
393
|
-
- lib/active_fedora/dcrdf_datastream.rb
|
394
397
|
- lib/active_fedora/delegating.rb
|
395
398
|
- lib/active_fedora/digital_object.rb
|
396
399
|
- lib/active_fedora/file_management.rb
|
@@ -410,16 +413,10 @@ files:
|
|
410
413
|
- lib/active_fedora/rdf_datastream.rb
|
411
414
|
- lib/active_fedora/rdf_xml_writer.rb
|
412
415
|
- lib/active_fedora/reflection.rb
|
413
|
-
- lib/active_fedora/relationship.rb
|
414
416
|
- lib/active_fedora/relationship_graph.rb
|
415
417
|
- lib/active_fedora/relationships.rb
|
416
418
|
- lib/active_fedora/rels_ext_datastream.rb
|
417
419
|
- lib/active_fedora/rubydora_connection.rb
|
418
|
-
- lib/active_fedora/samples.rb
|
419
|
-
- lib/active_fedora/samples/hydra-mods_article_datastream.rb
|
420
|
-
- lib/active_fedora/samples/hydra-rights_metadata_datastream.rb
|
421
|
-
- lib/active_fedora/samples/marpa-dc_datastream.rb
|
422
|
-
- lib/active_fedora/samples/special_thing.rb
|
423
420
|
- lib/active_fedora/semantic_node.rb
|
424
421
|
- lib/active_fedora/service_definitions.rb
|
425
422
|
- lib/active_fedora/solr_digital_object.rb
|
@@ -444,6 +441,7 @@ files:
|
|
444
441
|
- spec/fixtures/dublin_core_rdf_descMetadata.nt
|
445
442
|
- spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml
|
446
443
|
- spec/fixtures/minivan.jpg
|
444
|
+
- spec/fixtures/mixed_rdf_descMetadata.nt
|
447
445
|
- spec/fixtures/mods_articles/hydrangea_article1.xml
|
448
446
|
- spec/fixtures/oh_qdc.xml
|
449
447
|
- spec/fixtures/rails_root/config/fake_fedora.yml
|
@@ -453,6 +451,7 @@ files:
|
|
453
451
|
- spec/fixtures/rails_root/config/solr_mappings.yml
|
454
452
|
- spec/fixtures/rails_root/config/solr_mappings_af_0.1.yml
|
455
453
|
- spec/fixtures/rails_root/config/solr_mappings_bl_2.4.yml
|
454
|
+
- spec/fixtures/sharded_fedora.yml
|
456
455
|
- spec/fixtures/test_12.foxml.xml
|
457
456
|
- spec/hydrangea_fixture_mods_article1.foxml.xml
|
458
457
|
- spec/integration/associations_spec.rb
|
@@ -463,7 +462,6 @@ files:
|
|
463
462
|
- spec/integration/bug_spec.rb
|
464
463
|
- spec/integration/datastream_collections_spec.rb
|
465
464
|
- spec/integration/datastream_spec.rb
|
466
|
-
- spec/integration/dc_rdf_datastream_spec.rb
|
467
465
|
- spec/integration/full_featured_model_spec.rb
|
468
466
|
- spec/integration/metadata_datastream_helper_spec.rb
|
469
467
|
- spec/integration/metadata_datastream_spec.rb
|
@@ -471,6 +469,7 @@ files:
|
|
471
469
|
- spec/integration/mods_article_integration_spec.rb
|
472
470
|
- spec/integration/nested_attribute_spec.rb
|
473
471
|
- spec/integration/nokogiri_datastream_spec.rb
|
472
|
+
- spec/integration/ntriples_datastream_spec.rb
|
474
473
|
- spec/integration/rels_ext_datastream_spec.rb
|
475
474
|
- spec/integration/semantic_node_spec.rb
|
476
475
|
- spec/integration/solr_service_spec.rb
|
@@ -504,6 +503,9 @@ files:
|
|
504
503
|
- spec/rails3_test_app/spec/spec_helper.rb
|
505
504
|
- spec/rails3_test_app/spec/unit/rails_3_init.rb
|
506
505
|
- spec/rcov.opts
|
506
|
+
- spec/samples/hydra-mods_article_datastream.rb
|
507
|
+
- spec/samples/hydra-rights_metadata_datastream.rb
|
508
|
+
- spec/samples/marpa-dc_datastream.rb
|
507
509
|
- spec/samples/models/audio_record.rb
|
508
510
|
- spec/samples/models/hydrangea_article.rb
|
509
511
|
- spec/samples/models/image.rb
|
@@ -513,6 +515,8 @@ files:
|
|
513
515
|
- spec/samples/oral_history_sample.xml
|
514
516
|
- spec/samples/oral_history_sample_model.rb
|
515
517
|
- spec/samples/oral_history_xml.xml
|
518
|
+
- spec/samples/samples.rb
|
519
|
+
- spec/samples/special_thing.rb
|
516
520
|
- spec/spec.opts
|
517
521
|
- spec/spec_helper.rb
|
518
522
|
- spec/support/mock_fedora.rb
|
@@ -526,23 +530,23 @@ files:
|
|
526
530
|
- spec/unit/base_file_management_spec.rb
|
527
531
|
- spec/unit/base_spec.rb
|
528
532
|
- spec/unit/callback_spec.rb
|
533
|
+
- spec/unit/config_spec.rb
|
529
534
|
- spec/unit/content_model_spec.rb
|
530
535
|
- spec/unit/datastream_collections_spec.rb
|
531
536
|
- spec/unit/datastream_concurrency_spec.rb
|
532
537
|
- spec/unit/datastream_spec.rb
|
533
538
|
- spec/unit/datastreams_spec.rb
|
534
|
-
- spec/unit/dc_rdf_datastream_spec.rb
|
535
539
|
- spec/unit/has_many_collection_spec.rb
|
536
540
|
- spec/unit/inheritance_spec.rb
|
537
541
|
- spec/unit/metadata_datastream_spec.rb
|
538
542
|
- spec/unit/model_spec.rb
|
539
543
|
- spec/unit/nokogiri_datastream_spec.rb
|
544
|
+
- spec/unit/ntriples_datastream_spec.rb
|
540
545
|
- spec/unit/predicates_spec.rb
|
541
546
|
- spec/unit/property_spec.rb
|
542
547
|
- spec/unit/qualified_dublin_core_datastream_spec.rb
|
543
548
|
- spec/unit/rdf_xml_writer_spec.rb
|
544
549
|
- spec/unit/relationship_graph_spec.rb
|
545
|
-
- spec/unit/relationship_spec.rb
|
546
550
|
- spec/unit/relationships_spec.rb
|
547
551
|
- spec/unit/rels_ext_datastream_spec.rb
|
548
552
|
- spec/unit/rubydora_connection_spec.rb
|
@@ -572,12 +576,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
572
576
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
573
577
|
none: false
|
574
578
|
requirements:
|
575
|
-
- - "
|
579
|
+
- - ">"
|
576
580
|
- !ruby/object:Gem::Version
|
577
|
-
hash:
|
581
|
+
hash: 25
|
578
582
|
segments:
|
579
|
-
-
|
580
|
-
|
583
|
+
- 1
|
584
|
+
- 3
|
585
|
+
- 1
|
586
|
+
version: 1.3.1
|
581
587
|
requirements: []
|
582
588
|
|
583
589
|
rubyforge_project: rubyfedora
|
@@ -592,6 +598,7 @@ test_files:
|
|
592
598
|
- spec/fixtures/dublin_core_rdf_descMetadata.nt
|
593
599
|
- spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml
|
594
600
|
- spec/fixtures/minivan.jpg
|
601
|
+
- spec/fixtures/mixed_rdf_descMetadata.nt
|
595
602
|
- spec/fixtures/mods_articles/hydrangea_article1.xml
|
596
603
|
- spec/fixtures/oh_qdc.xml
|
597
604
|
- spec/fixtures/rails_root/config/fake_fedora.yml
|
@@ -601,6 +608,7 @@ test_files:
|
|
601
608
|
- spec/fixtures/rails_root/config/solr_mappings.yml
|
602
609
|
- spec/fixtures/rails_root/config/solr_mappings_af_0.1.yml
|
603
610
|
- spec/fixtures/rails_root/config/solr_mappings_bl_2.4.yml
|
611
|
+
- spec/fixtures/sharded_fedora.yml
|
604
612
|
- spec/fixtures/test_12.foxml.xml
|
605
613
|
- spec/hydrangea_fixture_mods_article1.foxml.xml
|
606
614
|
- spec/integration/associations_spec.rb
|
@@ -611,7 +619,6 @@ test_files:
|
|
611
619
|
- spec/integration/bug_spec.rb
|
612
620
|
- spec/integration/datastream_collections_spec.rb
|
613
621
|
- spec/integration/datastream_spec.rb
|
614
|
-
- spec/integration/dc_rdf_datastream_spec.rb
|
615
622
|
- spec/integration/full_featured_model_spec.rb
|
616
623
|
- spec/integration/metadata_datastream_helper_spec.rb
|
617
624
|
- spec/integration/metadata_datastream_spec.rb
|
@@ -619,6 +626,7 @@ test_files:
|
|
619
626
|
- spec/integration/mods_article_integration_spec.rb
|
620
627
|
- spec/integration/nested_attribute_spec.rb
|
621
628
|
- spec/integration/nokogiri_datastream_spec.rb
|
629
|
+
- spec/integration/ntriples_datastream_spec.rb
|
622
630
|
- spec/integration/rels_ext_datastream_spec.rb
|
623
631
|
- spec/integration/semantic_node_spec.rb
|
624
632
|
- spec/integration/solr_service_spec.rb
|
@@ -652,6 +660,9 @@ test_files:
|
|
652
660
|
- spec/rails3_test_app/spec/spec_helper.rb
|
653
661
|
- spec/rails3_test_app/spec/unit/rails_3_init.rb
|
654
662
|
- spec/rcov.opts
|
663
|
+
- spec/samples/hydra-mods_article_datastream.rb
|
664
|
+
- spec/samples/hydra-rights_metadata_datastream.rb
|
665
|
+
- spec/samples/marpa-dc_datastream.rb
|
655
666
|
- spec/samples/models/audio_record.rb
|
656
667
|
- spec/samples/models/hydrangea_article.rb
|
657
668
|
- spec/samples/models/image.rb
|
@@ -661,6 +672,8 @@ test_files:
|
|
661
672
|
- spec/samples/oral_history_sample.xml
|
662
673
|
- spec/samples/oral_history_sample_model.rb
|
663
674
|
- spec/samples/oral_history_xml.xml
|
675
|
+
- spec/samples/samples.rb
|
676
|
+
- spec/samples/special_thing.rb
|
664
677
|
- spec/spec.opts
|
665
678
|
- spec/spec_helper.rb
|
666
679
|
- spec/support/mock_fedora.rb
|
@@ -674,23 +687,23 @@ test_files:
|
|
674
687
|
- spec/unit/base_file_management_spec.rb
|
675
688
|
- spec/unit/base_spec.rb
|
676
689
|
- spec/unit/callback_spec.rb
|
690
|
+
- spec/unit/config_spec.rb
|
677
691
|
- spec/unit/content_model_spec.rb
|
678
692
|
- spec/unit/datastream_collections_spec.rb
|
679
693
|
- spec/unit/datastream_concurrency_spec.rb
|
680
694
|
- spec/unit/datastream_spec.rb
|
681
695
|
- spec/unit/datastreams_spec.rb
|
682
|
-
- spec/unit/dc_rdf_datastream_spec.rb
|
683
696
|
- spec/unit/has_many_collection_spec.rb
|
684
697
|
- spec/unit/inheritance_spec.rb
|
685
698
|
- spec/unit/metadata_datastream_spec.rb
|
686
699
|
- spec/unit/model_spec.rb
|
687
700
|
- spec/unit/nokogiri_datastream_spec.rb
|
701
|
+
- spec/unit/ntriples_datastream_spec.rb
|
688
702
|
- spec/unit/predicates_spec.rb
|
689
703
|
- spec/unit/property_spec.rb
|
690
704
|
- spec/unit/qualified_dublin_core_datastream_spec.rb
|
691
705
|
- spec/unit/rdf_xml_writer_spec.rb
|
692
706
|
- spec/unit/relationship_graph_spec.rb
|
693
|
-
- spec/unit/relationship_spec.rb
|
694
707
|
- spec/unit/relationships_spec.rb
|
695
708
|
- spec/unit/rels_ext_datastream_spec.rb
|
696
709
|
- spec/unit/rubydora_connection_spec.rb
|