active-fedora 6.2.0 → 6.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.mailmap +9 -0
- data/CONTRIBUTORS.md +25 -0
- data/History.txt +52 -0
- data/active-fedora.gemspec +1 -1
- data/config/jetty.yml +1 -1
- data/gemfiles/gemfile.rails4 +1 -1
- data/lib/active_fedora/associations.rb +16 -1
- data/lib/active_fedora/associations/association_collection.rb +20 -2
- data/lib/active_fedora/associations/has_and_belongs_to_many_association.rb +7 -0
- data/lib/active_fedora/base.rb +32 -8
- data/lib/active_fedora/datastream.rb +7 -0
- data/lib/active_fedora/datastreams.rb +1 -0
- data/lib/active_fedora/nested_attributes.rb +34 -9
- data/lib/active_fedora/reflection.rb +7 -25
- data/lib/active_fedora/solr_digital_object.rb +4 -0
- data/lib/active_fedora/solr_service.rb +12 -9
- data/lib/active_fedora/unsaved_digital_object.rb +3 -0
- data/lib/active_fedora/validations.rb +7 -0
- data/lib/active_fedora/version.rb +1 -1
- data/lib/tasks/active_fedora_dev.rake +2 -11
- data/spec/fixtures/mods_articles/{hydrangea_article1.xml → mods_article1.xml} +0 -0
- data/spec/fixtures/{hydrangea_fixture_mods_article1.foxml.xml → test_fixture_mods_article1.foxml.xml} +5 -5
- data/spec/fixtures/{hydrangea_fixture_mods_article2.foxml.xml → test_fixture_mods_article2.foxml.xml} +5 -5
- data/spec/integration/associations_spec.rb +116 -33
- data/spec/integration/base_spec.rb +13 -35
- data/spec/integration/datastream_collections_spec.rb +6 -5
- data/spec/integration/datastream_spec.rb +21 -18
- data/spec/integration/datastreams_spec.rb +1 -3
- data/spec/integration/model_spec.rb +6 -6
- data/spec/integration/mods_article_integration_spec.rb +2 -2
- data/spec/integration/nested_attribute_spec.rb +88 -10
- data/spec/integration/ntriples_datastream_spec.rb +1 -1
- data/spec/integration/om_datastream_spec.rb +22 -22
- data/spec/integration/solr_instance_loader_spec.rb +4 -4
- data/spec/integration/solr_service_spec.rb +1 -1
- data/spec/samples/models/{hydrangea_article.rb → mods_article.rb} +2 -2
- data/spec/samples/samples.rb +1 -1
- data/spec/unit/base_spec.rb +12 -12
- data/spec/unit/datastreams_spec.rb +0 -10
- data/spec/unit/has_and_belongs_to_many_collection_spec.rb +0 -27
- data/spec/unit/has_many_collection_spec.rb +0 -28
- data/spec/unit/om_datastream_spec.rb +6 -6
- data/spec/unit/query_spec.rb +2 -2
- data/spec/unit/solr_config_options_spec.rb +1 -1
- data/spec/unit/solr_service_spec.rb +9 -1
- data/spec/unit/validations_spec.rb +18 -11
- metadata +18 -10
@@ -2,10 +2,10 @@ require "active-fedora"
|
|
2
2
|
require_relative '../hydra-mods_article_datastream.rb'
|
3
3
|
require_relative '../hydra-rights_metadata_datastream.rb'
|
4
4
|
|
5
|
-
# This Model is used to load & index the
|
5
|
+
# This Model is used to load & index the test:fixture_mods_article1 fixture for use in tests.
|
6
6
|
#
|
7
7
|
# See lib/samples/sample_thing.rb for a fuller, annotated example of an ActiveFedora Model
|
8
|
-
class
|
8
|
+
class ModsArticle < ActiveFedora::Base
|
9
9
|
|
10
10
|
has_metadata :name => "descMetadata", :type=> Hydra::ModsArticleDatastream
|
11
11
|
has_metadata :name => "rightsMetadata", :type => Hydra::RightsMetadataDatastream
|
data/spec/samples/samples.rb
CHANGED
data/spec/unit/base_spec.rb
CHANGED
@@ -4,7 +4,7 @@ require 'spec_helper'
|
|
4
4
|
describe ActiveFedora::Base do
|
5
5
|
describe 'descendants' do
|
6
6
|
it "should record the decendants" do
|
7
|
-
ActiveFedora::Base.descendants.should include(
|
7
|
+
ActiveFedora::Base.descendants.should include(ModsArticle, SpecialThing)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
@@ -14,7 +14,7 @@ describe ActiveFedora::Base do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
context "When the repository is NOT sharded" do
|
17
|
-
subject {ActiveFedora::Base.connection_for_pid('
|
17
|
+
subject {ActiveFedora::Base.connection_for_pid('test:bar')}
|
18
18
|
before(:each) do
|
19
19
|
ActiveFedora.config.stub(:sharded?).and_return(false)
|
20
20
|
ActiveFedora::Base.fedora_connection = {}
|
@@ -29,7 +29,7 @@ describe ActiveFedora::Base do
|
|
29
29
|
# TODO: This juggling of Fedora credentials & establishing connections should be handled by an establish_fedora_connection method,
|
30
30
|
# possibly wrap it all into a fedora_connection method - MZ 06-05-2012
|
31
31
|
stubfedora = mock("Fedora")
|
32
|
-
stubfedora.should_receive(:connection).and_return(mock("Connection", :
|
32
|
+
stubfedora.should_receive(:connection).and_return(mock("Connection", :mint =>"sample:newpid"))
|
33
33
|
# Should use ActiveFedora.config.credentials as a single hash rather than an array of shards
|
34
34
|
ActiveFedora::RubydoraConnection.should_receive(:new).with(ActiveFedora.config.credentials).and_return(stubfedora)
|
35
35
|
ActiveFedora::Base.assign_pid(ActiveFedora::Base.new.inner_object)
|
@@ -37,7 +37,7 @@ describe ActiveFedora::Base do
|
|
37
37
|
end
|
38
38
|
describe "shard_index" do
|
39
39
|
it "should always return zero (the first and only connection)" do
|
40
|
-
ActiveFedora::Base.shard_index('
|
40
|
+
ActiveFedora::Base.shard_index('test:bar').should == 0
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -51,7 +51,7 @@ describe ActiveFedora::Base do
|
|
51
51
|
it "should always use the first shard to generate pids" do
|
52
52
|
stubhard1 = mock("Shard")
|
53
53
|
stubhard2 = mock("Shard")
|
54
|
-
stubhard1.should_receive(:connection).and_return(mock("Connection", :
|
54
|
+
stubhard1.should_receive(:connection).and_return(mock("Connection", :mint =>"sample:newpid"))
|
55
55
|
stubhard2.should_receive(:connection).never
|
56
56
|
ActiveFedora::Base.fedora_connection = {0 => stubhard1, 1 => stubhard2}
|
57
57
|
ActiveFedora::Base.assign_pid(ActiveFedora::Base.new.inner_object)
|
@@ -59,19 +59,19 @@ describe ActiveFedora::Base do
|
|
59
59
|
end
|
60
60
|
describe "shard_index" do
|
61
61
|
it "should use modulo of md5 of the pid to distribute objects across shards" do
|
62
|
-
ActiveFedora::Base.shard_index('
|
63
|
-
ActiveFedora::Base.shard_index('
|
62
|
+
ActiveFedora::Base.shard_index('test:bar').should == 0
|
63
|
+
ActiveFedora::Base.shard_index('test:nanana').should == 1
|
64
64
|
end
|
65
65
|
end
|
66
66
|
describe "the repository" do
|
67
|
-
describe "for
|
68
|
-
subject {ActiveFedora::Base.connection_for_pid('
|
67
|
+
describe "for test:bar" do
|
68
|
+
subject {ActiveFedora::Base.connection_for_pid('test:bar')}
|
69
69
|
it "should be shard1" do
|
70
70
|
subject.client.url.should == 'shard1'
|
71
71
|
end
|
72
72
|
end
|
73
|
-
describe "for
|
74
|
-
subject {ActiveFedora::Base.connection_for_pid('
|
73
|
+
describe "for test:baz" do
|
74
|
+
subject {ActiveFedora::Base.connection_for_pid('test:nanana')}
|
75
75
|
it "should be shard1" do
|
76
76
|
subject.client.url.should == 'shard2'
|
77
77
|
end
|
@@ -457,7 +457,7 @@ describe ActiveFedora::Base do
|
|
457
457
|
end
|
458
458
|
|
459
459
|
it "should call .to_solr on the relationships rels-ext is dirty" do
|
460
|
-
@test_object.add_relationship(:has_collection_member, "info:fedora/
|
460
|
+
@test_object.add_relationship(:has_collection_member, "info:fedora/test:member")
|
461
461
|
rels_ext = @test_object.rels_ext
|
462
462
|
rels_ext.should be_changed
|
463
463
|
@test_object.should_receive(:solrize_relationships)
|
@@ -175,16 +175,6 @@ describe ActiveFedora::Datastreams do
|
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
|
-
describe "#dc" do
|
179
|
-
it "should be the DC datastream" do
|
180
|
-
subject.dc.should be_kind_of ActiveFedora::Datastream
|
181
|
-
end
|
182
|
-
it "should be an inline datastream" do
|
183
|
-
subject.dc.controlGroup.should == 'X'
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
|
-
|
188
178
|
describe "#relsext" do
|
189
179
|
it "should be the RELS-EXT datastream" do
|
190
180
|
m = mock
|
@@ -29,31 +29,4 @@ describe ActiveFedora::Associations::HasAndBelongsToManyAssociation do
|
|
29
29
|
|
30
30
|
end
|
31
31
|
|
32
|
-
it "should call remove_relationship" do
|
33
|
-
subject = stub("subject", :new_record? => false, :pid => 'subject:a', :internal_uri => 'info:fedora/subject:a')
|
34
|
-
predicate = stub(:klass => mock.class, :options=>{:property=>'predicate'}, :class_name=> nil)
|
35
|
-
ActiveFedora::SolrService.stub(:query).and_return([])
|
36
|
-
ac = ActiveFedora::Associations::HasAndBelongsToManyAssociation.new(subject, predicate)
|
37
|
-
object = stub("object", :new_record? => false, :pid => 'object:b', :save => nil)
|
38
|
-
|
39
|
-
subject.should_receive(:remove_relationship).with('predicate', object)
|
40
|
-
|
41
|
-
ac.delete(object)
|
42
|
-
|
43
|
-
end
|
44
|
-
|
45
|
-
it "should call remove_relationship on subject and object when inverse_of given" do
|
46
|
-
subject = stub("subject", :new_record? => false, :pid => 'subject:a', :internal_uri => 'info:fedora/subject:a')
|
47
|
-
predicate = stub(:klass => mock.class, :options=>{:property=>'predicate', :inverse_of => 'inverse_predicate'}, :class_name=> nil)
|
48
|
-
ActiveFedora::SolrService.stub(:query).and_return([])
|
49
|
-
ac = ActiveFedora::Associations::HasAndBelongsToManyAssociation.new(subject, predicate)
|
50
|
-
object = stub("object", :new_record? => false, :pid => 'object:b', :save => nil)
|
51
|
-
|
52
|
-
subject.should_receive(:remove_relationship).with('predicate', object)
|
53
|
-
object.should_receive(:remove_relationship).with('inverse_predicate', subject)
|
54
|
-
|
55
|
-
ac.delete(object)
|
56
|
-
|
57
|
-
end
|
58
|
-
|
59
32
|
end
|
@@ -14,32 +14,4 @@ describe ActiveFedora::Associations::HasManyAssociation do
|
|
14
14
|
|
15
15
|
end
|
16
16
|
|
17
|
-
it "should call remove_relationship" do
|
18
|
-
subject = stub("subject", :new_record? => false, :pid => 'subject:a', :internal_uri => 'info:fedora/subject:a')
|
19
|
-
predicate = stub(:klass => mock.class, :options=>{:property=>'predicate'}, :class_name=> nil)
|
20
|
-
ActiveFedora::SolrService.stub(:query).and_return([])
|
21
|
-
ac = ActiveFedora::Associations::HasManyAssociation.new(subject, predicate)
|
22
|
-
object = stub("object", :new_record? => false, :pid => 'object:b', :save => nil)
|
23
|
-
|
24
|
-
object.should_receive(:remove_relationship).with('predicate', subject)
|
25
|
-
|
26
|
-
ac.delete(object)
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should be able to replace the collection" do
|
31
|
-
@owner = stub(:new_record? => false, :to_ary => nil, :internal_uri => 'info:fedora/changeme:99')
|
32
|
-
@reflection = stub(:klass => mock.class, :options=>{:property=>'predicate'}, :class_name=> nil)
|
33
|
-
ac = ActiveFedora::Associations::HasManyAssociation.new(@owner, @reflection)
|
34
|
-
@target = [stub(:to_ary => nil, :new_record? => false, :remove_relationship=>true), stub(:to_ary => nil, :new_record? => false, :remove_relationship=>true), stub(:to_ary => nil, :new_record? => false, :remove_relationship=>true)]
|
35
|
-
ac.target = @target
|
36
|
-
|
37
|
-
@expected1 = stub(:new_record? => false, :add_relationship=>true, :save=>true, :to_ary => nil)
|
38
|
-
@expected2 = stub(:new_record? => false, :add_relationship=>true, :save=>true, :to_ary => nil)
|
39
|
-
ac.replace([@expected1, @expected2])
|
40
|
-
ac.target.should == [@expected1, @expected2]
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
|
45
17
|
end
|
@@ -72,7 +72,7 @@ describe ActiveFedora::OmDatastream do
|
|
72
72
|
|
73
73
|
before(:each) do
|
74
74
|
@mods_ds = Hydra::ModsArticleDatastream.new(nil, 'descMetadata')
|
75
|
-
@mods_ds.content=fixture(File.join("mods_articles","
|
75
|
+
@mods_ds.content=fixture(File.join("mods_articles","mods_article1.xml")).read
|
76
76
|
end
|
77
77
|
|
78
78
|
it "should apply submitted hash to corresponding datastream field values" do
|
@@ -151,7 +151,7 @@ describe ActiveFedora::OmDatastream do
|
|
151
151
|
|
152
152
|
before(:each) do
|
153
153
|
@mods_ds = Hydra::ModsArticleDatastream.new(nil, 'modsDs')
|
154
|
-
@mods_ds.content=fixture(File.join("mods_articles","
|
154
|
+
@mods_ds.content=fixture(File.join("mods_articles","mods_article1.xml")).read
|
155
155
|
end
|
156
156
|
|
157
157
|
it "should call lookup with field_name and return the text values from each resulting node" do
|
@@ -271,7 +271,7 @@ describe ActiveFedora::OmDatastream do
|
|
271
271
|
describe '.get_values_from_solr' do
|
272
272
|
before(:each) do
|
273
273
|
@mods_ds = ActiveFedora::OmDatastream.new
|
274
|
-
@mods_ds.content=fixture(File.join("mods_articles","
|
274
|
+
@mods_ds.content=fixture(File.join("mods_articles","mods_article1.xml")).read
|
275
275
|
end
|
276
276
|
|
277
277
|
it "should return empty array if internal_solr_doc not set" do
|
@@ -327,7 +327,7 @@ describe ActiveFedora::OmDatastream do
|
|
327
327
|
describe '.update_values' do
|
328
328
|
before(:each) do
|
329
329
|
@mods_ds = ActiveFedora::OmDatastream.new
|
330
|
-
@mods_ds.content= fixture(File.join("mods_articles","
|
330
|
+
@mods_ds.content= fixture(File.join("mods_articles","mods_article1.xml")).read
|
331
331
|
end
|
332
332
|
|
333
333
|
it "should throw an exception if we have initialized the internal_solr_doc." do
|
@@ -349,7 +349,7 @@ describe ActiveFedora::OmDatastream do
|
|
349
349
|
|
350
350
|
it "should set changed to true" do
|
351
351
|
mods_ds = Hydra::ModsArticleDatastream.new
|
352
|
-
mods_ds.content=fixture(File.join("mods_articles","
|
352
|
+
mods_ds.content=fixture(File.join("mods_articles","mods_article1.xml")).read
|
353
353
|
mods_ds.update_values([{":person"=>"0"}, "role", "text"]=>{"0"=>"role1", "1"=>"role2", "2"=>"role3"})
|
354
354
|
mods_ds.should be_changed
|
355
355
|
end
|
@@ -359,7 +359,7 @@ describe ActiveFedora::OmDatastream do
|
|
359
359
|
|
360
360
|
before(:each) do
|
361
361
|
@mods_ds = ActiveFedora::OmDatastream.new
|
362
|
-
@mods_ds.content=fixture(File.join("mods_articles","
|
362
|
+
@mods_ds.content=fixture(File.join("mods_articles","mods_article1.xml")).read
|
363
363
|
end
|
364
364
|
|
365
365
|
it "should call OM::XML::term_values if internal_solr_doc is not set and return values from xml" do
|
data/spec/unit/query_spec.rb
CHANGED
@@ -7,7 +7,7 @@ describe ActiveFedora::Base do
|
|
7
7
|
class Basic < ActiveFedora::Base
|
8
8
|
end
|
9
9
|
end
|
10
|
-
@model_query = ActiveFedora::SolrService.solr_name("has_model", :symbol) + "
|
10
|
+
@model_query = "_query_:\"{!raw f=" + ActiveFedora::SolrService.solr_name("has_model", :symbol) + "}info:fedora/afmodel:SpecModel_Basic" + "\""
|
11
11
|
@sort_query = ActiveFedora::SolrService.solr_name("system_create", :stored_sortable, type: :date) + ' asc'
|
12
12
|
end
|
13
13
|
|
@@ -185,7 +185,7 @@ describe ActiveFedora::Base do
|
|
185
185
|
it "should count without a class specified" do
|
186
186
|
mock_result = {'response'=>{'numFound'=>7}}
|
187
187
|
ActiveFedora::SolrService.should_receive(:query).with("foo:bar", :rows=>0, :raw=>true).and_return(mock_result)
|
188
|
-
ActiveFedora::Base.count(:conditions=>'foo:bar').should == 7
|
188
|
+
ActiveFedora::Base.count(:conditions=>'foo:bar').should == 7
|
189
189
|
end
|
190
190
|
end
|
191
191
|
|
@@ -34,7 +34,7 @@ describe ActiveFedora do
|
|
34
34
|
|
35
35
|
it "should be used by ActiveFedora::Base#find_with_conditions" do
|
36
36
|
mock_response = mock("SolrResponse")
|
37
|
-
ActiveFedora::SolrService.should_receive(:query).with("
|
37
|
+
ActiveFedora::SolrService.should_receive(:query).with("_query_:\"{!raw f=#{ActiveFedora::SolrService.solr_name("has_model", :symbol)}}info:fedora/afmodel:SolrSpecModel_Basic\" AND " + SOLR_DOCUMENT_ID + ':"changeme\\:30"', {:sort => ["#{ActiveFedora::SolrService.solr_name("system_create", :stored_sortable, type: :date)} asc"]}).and_return(mock_response)
|
38
38
|
|
39
39
|
SolrSpecModel::Basic.find_with_conditions(:id=>"changeme:30").should equal(mock_response)
|
40
40
|
end
|
@@ -59,7 +59,8 @@ describe ActiveFedora::SolrService do
|
|
59
59
|
|
60
60
|
describe '#construct_query_for_pids' do
|
61
61
|
it "should generate a useable solr query from an array of Fedora pids" do
|
62
|
-
ActiveFedora::SolrService.construct_query_for_pids(["my:_PID1_", "my:_PID2_", "my:_PID3_"]).should == 'id:
|
62
|
+
ActiveFedora::SolrService.construct_query_for_pids(["my:_PID1_", "my:_PID2_", "my:_PID3_"]).should == '_query_:"{!raw f=id}my:_PID1_" OR _query_:"{!raw f=id}my:_PID2_" OR _query_:"{!raw f=id}my:_PID3_"'
|
63
|
+
|
63
64
|
end
|
64
65
|
it "should return a valid solr query even if given an empty array as input" do
|
65
66
|
ActiveFedora::SolrService.construct_query_for_pids([""]).should == "id:NEVER_USE_THIS_ID"
|
@@ -90,6 +91,13 @@ describe ActiveFedora::SolrService do
|
|
90
91
|
ActiveFedora::SolrService.stub(:instance =>stub("instance", :conn=>mock_conn))
|
91
92
|
ActiveFedora::SolrService.count('querytext').should == 7
|
92
93
|
end
|
94
|
+
it "should accept query args" do
|
95
|
+
mock_conn = mock("Connection")
|
96
|
+
stub_result = {'response' => {'numFound'=>'7'}}
|
97
|
+
mock_conn.should_receive(:get).with('select', :params=>{:rows=>0, :q=>'querytext', :qt=>'standard', :fq=>'filter'}).and_return(stub_result)
|
98
|
+
ActiveFedora::SolrService.stub(:instance =>stub("instance", :conn=>mock_conn))
|
99
|
+
ActiveFedora::SolrService.count('querytext', :fq=>'filter', :rows=>10).should == 7
|
100
|
+
end
|
93
101
|
end
|
94
102
|
describe ".add" do
|
95
103
|
it "should call solr" do
|
@@ -8,35 +8,42 @@ describe ActiveFedora::Base do
|
|
8
8
|
m.field "swank", :text
|
9
9
|
end
|
10
10
|
delegate :fubar, :to=>'someData'
|
11
|
-
delegate :swank, :to=>'someData'
|
11
|
+
delegate :swank, :to=>'someData', unique: true
|
12
12
|
|
13
13
|
validates_presence_of :fubar
|
14
14
|
validates_length_of :swank, :minimum=>5
|
15
15
|
|
16
16
|
end
|
17
17
|
end
|
18
|
+
|
19
|
+
subject { ValidationStub.new }
|
20
|
+
|
18
21
|
after :all do
|
19
22
|
Object.send(:remove_const, :ValidationStub)
|
20
23
|
end
|
21
24
|
|
22
25
|
describe "a valid object" do
|
23
26
|
before do
|
24
|
-
|
27
|
+
subject.attributes={ fubar:'here', swank:'long enough'}
|
25
28
|
end
|
26
29
|
|
27
|
-
it
|
28
|
-
@obj.should_not be_valid
|
29
|
-
end
|
30
|
+
it { should be_valid}
|
30
31
|
end
|
31
32
|
describe "an invalid object" do
|
32
33
|
before do
|
33
|
-
|
34
|
+
subject.attributes={ swank:'smal'}
|
34
35
|
end
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
36
|
+
it "should have errors" do
|
37
|
+
subject.should_not be_valid
|
38
|
+
subject.errors[:fubar].should == ["can't be blank"]
|
39
|
+
subject.errors[:swank].should == ["is too short (minimum is 5 characters)"]
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "required terms" do
|
44
|
+
it "should be required" do
|
45
|
+
subject.required?(:fubar).should be_true
|
46
|
+
subject.required?(:swank).should be_false
|
40
47
|
end
|
41
48
|
end
|
42
49
|
|
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.
|
4
|
+
version: 6.3.0
|
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-06-
|
13
|
+
date: 2013-06-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|
@@ -89,6 +89,9 @@ dependencies:
|
|
89
89
|
- - ~>
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '1.6'
|
92
|
+
- - '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 1.6.5
|
92
95
|
type: :runtime
|
93
96
|
prerelease: false
|
94
97
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -96,6 +99,9 @@ dependencies:
|
|
96
99
|
- - ~>
|
97
100
|
- !ruby/object:Gem::Version
|
98
101
|
version: '1.6'
|
102
|
+
- - '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 1.6.5
|
99
105
|
- !ruby/object:Gem::Dependency
|
100
106
|
name: rdf
|
101
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -276,8 +282,10 @@ extra_rdoc_files:
|
|
276
282
|
files:
|
277
283
|
- .gitignore
|
278
284
|
- .gitmodules
|
285
|
+
- .mailmap
|
279
286
|
- .travis.yml
|
280
287
|
- CONSOLE_GETTING_STARTED.textile
|
288
|
+
- CONTRIBUTORS.md
|
281
289
|
- Gemfile
|
282
290
|
- History.txt
|
283
291
|
- LICENSE
|
@@ -387,11 +395,9 @@ files:
|
|
387
395
|
- spec/fixtures/dino.jpg
|
388
396
|
- spec/fixtures/dino_jpg_no_file_ext
|
389
397
|
- spec/fixtures/dublin_core_rdf_descMetadata.nt
|
390
|
-
- spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml
|
391
|
-
- spec/fixtures/hydrangea_fixture_mods_article2.foxml.xml
|
392
398
|
- spec/fixtures/minivan.jpg
|
393
399
|
- spec/fixtures/mixed_rdf_descMetadata.nt
|
394
|
-
- spec/fixtures/mods_articles/
|
400
|
+
- spec/fixtures/mods_articles/mods_article1.xml
|
395
401
|
- spec/fixtures/rails_root/config/fake_fedora.yml
|
396
402
|
- spec/fixtures/rails_root/config/fedora.yml
|
397
403
|
- spec/fixtures/rails_root/config/predicate_mappings.yml
|
@@ -402,6 +408,8 @@ files:
|
|
402
408
|
- spec/fixtures/sharded_fedora.yml
|
403
409
|
- spec/fixtures/solr_rdf_descMetadata.nt
|
404
410
|
- spec/fixtures/test_12.foxml.xml
|
411
|
+
- spec/fixtures/test_fixture_mods_article1.foxml.xml
|
412
|
+
- spec/fixtures/test_fixture_mods_article2.foxml.xml
|
405
413
|
- spec/hydrangea_fixture_mods_article1.foxml.xml
|
406
414
|
- spec/integration/associations_spec.rb
|
407
415
|
- spec/integration/base_spec.rb
|
@@ -457,8 +465,8 @@ files:
|
|
457
465
|
- spec/samples/hydra-rights_metadata_datastream.rb
|
458
466
|
- spec/samples/marpa-dc_datastream.rb
|
459
467
|
- spec/samples/models/audio_record.rb
|
460
|
-
- spec/samples/models/hydrangea_article.rb
|
461
468
|
- spec/samples/models/image.rb
|
469
|
+
- spec/samples/models/mods_article.rb
|
462
470
|
- spec/samples/models/oral_history.rb
|
463
471
|
- spec/samples/models/seminar.rb
|
464
472
|
- spec/samples/models/seminar_audio_file.rb
|
@@ -551,11 +559,9 @@ test_files:
|
|
551
559
|
- spec/fixtures/dino.jpg
|
552
560
|
- spec/fixtures/dino_jpg_no_file_ext
|
553
561
|
- spec/fixtures/dublin_core_rdf_descMetadata.nt
|
554
|
-
- spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml
|
555
|
-
- spec/fixtures/hydrangea_fixture_mods_article2.foxml.xml
|
556
562
|
- spec/fixtures/minivan.jpg
|
557
563
|
- spec/fixtures/mixed_rdf_descMetadata.nt
|
558
|
-
- spec/fixtures/mods_articles/
|
564
|
+
- spec/fixtures/mods_articles/mods_article1.xml
|
559
565
|
- spec/fixtures/rails_root/config/fake_fedora.yml
|
560
566
|
- spec/fixtures/rails_root/config/fedora.yml
|
561
567
|
- spec/fixtures/rails_root/config/predicate_mappings.yml
|
@@ -566,6 +572,8 @@ test_files:
|
|
566
572
|
- spec/fixtures/sharded_fedora.yml
|
567
573
|
- spec/fixtures/solr_rdf_descMetadata.nt
|
568
574
|
- spec/fixtures/test_12.foxml.xml
|
575
|
+
- spec/fixtures/test_fixture_mods_article1.foxml.xml
|
576
|
+
- spec/fixtures/test_fixture_mods_article2.foxml.xml
|
569
577
|
- spec/hydrangea_fixture_mods_article1.foxml.xml
|
570
578
|
- spec/integration/associations_spec.rb
|
571
579
|
- spec/integration/base_spec.rb
|
@@ -621,8 +629,8 @@ test_files:
|
|
621
629
|
- spec/samples/hydra-rights_metadata_datastream.rb
|
622
630
|
- spec/samples/marpa-dc_datastream.rb
|
623
631
|
- spec/samples/models/audio_record.rb
|
624
|
-
- spec/samples/models/hydrangea_article.rb
|
625
632
|
- spec/samples/models/image.rb
|
633
|
+
- spec/samples/models/mods_article.rb
|
626
634
|
- spec/samples/models/oral_history.rb
|
627
635
|
- spec/samples/models/seminar.rb
|
628
636
|
- spec/samples/models/seminar_audio_file.rb
|