active-fedora 7.0.4 → 7.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +1 -0
  3. data/History.txt +51 -1
  4. data/active-fedora.gemspec +19 -19
  5. data/lib/active_fedora.rb +1 -6
  6. data/lib/active_fedora/associations/builder/has_and_belongs_to_many.rb +1 -1
  7. data/lib/active_fedora/associations/collection_association.rb +1 -1
  8. data/lib/active_fedora/associations/has_and_belongs_to_many_association.rb +1 -1
  9. data/lib/active_fedora/attributes.rb +8 -0
  10. data/lib/active_fedora/base.rb +1 -1
  11. data/lib/active_fedora/callbacks.rb +1 -1
  12. data/lib/active_fedora/core.rb +13 -5
  13. data/lib/active_fedora/datastream_attribute.rb +1 -1
  14. data/lib/active_fedora/datastream_hash.rb +12 -6
  15. data/lib/active_fedora/fedora_attributes.rb +1 -1
  16. data/lib/active_fedora/file_configurator.rb +3 -3
  17. data/lib/active_fedora/fixture_loader.rb +2 -2
  18. data/lib/active_fedora/model.rb +2 -2
  19. data/lib/active_fedora/om_datastream.rb +2 -2
  20. data/lib/active_fedora/persistence.rb +22 -18
  21. data/lib/active_fedora/railtie.rb +5 -1
  22. data/lib/active_fedora/rdf.rb +11 -9
  23. data/lib/active_fedora/rdf/indexing.rb +1 -1
  24. data/lib/active_fedora/rdf/object_resource.rb +1 -1
  25. data/lib/active_fedora/rdf/rdf_datastream.rb +3 -3
  26. data/lib/active_fedora/relation/finder_methods.rb +16 -10
  27. data/lib/active_fedora/solr_instance_loader.rb +1 -1
  28. data/lib/active_fedora/solr_service.rb +1 -3
  29. data/lib/active_fedora/version.rb +1 -1
  30. data/spec/integration/attributes_spec.rb +4 -4
  31. data/spec/integration/base_spec.rb +32 -13
  32. data/spec/integration/complex_rdf_datastream_spec.rb +4 -4
  33. data/spec/integration/delete_all_spec.rb +1 -1
  34. data/spec/integration/load_from_solr_spec.rb +1 -1
  35. data/spec/integration/rdf_nested_attributes_spec.rb +4 -4
  36. data/spec/integration/scoped_query_spec.rb +6 -6
  37. data/spec/spec_helper.rb +5 -3
  38. data/spec/unit/attributes_spec.rb +19 -1
  39. data/spec/unit/builder/has_and_belongs_to_many_spec.rb +9 -0
  40. data/spec/unit/datastreams_spec.rb +4 -0
  41. data/spec/unit/file_configurator_spec.rb +5 -5
  42. data/spec/unit/logger_spec.rb +20 -0
  43. data/spec/unit/om_datastream_spec.rb +1 -1
  44. data/spec/unit/persistence_spec.rb +50 -0
  45. data/spec/unit/query_spec.rb +15 -5
  46. data/spec/unit/rdf_resource_datastream_spec.rb +3 -3
  47. data/spec/unit/rdfxml_rdf_datastream_spec.rb +1 -1
  48. data/spec/unit/solr_config_options_spec.rb +1 -1
  49. data/spec/unit/solr_service_spec.rb +1 -1
  50. metadata +33 -168
  51. data/lib/active_fedora/rdf/configurable.rb +0 -59
  52. data/lib/active_fedora/rdf/list.rb +0 -155
  53. data/lib/active_fedora/rdf/nested_attributes.rb +0 -130
  54. data/lib/active_fedora/rdf/node_config.rb +0 -57
  55. data/lib/active_fedora/rdf/properties.rb +0 -94
  56. data/lib/active_fedora/rdf/repositories.rb +0 -36
  57. data/lib/active_fedora/rdf/resource.rb +0 -328
  58. data/lib/active_fedora/rdf/term.rb +0 -188
  59. data/spec/unit/rdf_configurable_spec.rb +0 -37
  60. data/spec/unit/rdf_list_nested_attributes_spec.rb +0 -99
  61. data/spec/unit/rdf_list_spec.rb +0 -180
  62. data/spec/unit/rdf_properties_spec.rb +0 -81
  63. data/spec/unit/rdf_repositories_spec.rb +0 -28
  64. data/spec/unit/rdf_resource_spec.rb +0 -345
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveFedora::Associations::Builder::HasAndBelongsToMany do
4
+ describe "valid_options" do
5
+ subject { ActiveFedora::Associations::Builder::HasAndBelongsToMany.valid_options }
6
+ it { should eq [:class_name, :property, :before_add, :after_add, :before_remove, :after_remove,
7
+ :inverse_of, :solr_page_size, :autosave] }
8
+ end
9
+ end
@@ -96,6 +96,10 @@ describe ActiveFedora::Datastreams do
96
96
  subject.stub(:load_datastreams)
97
97
  subject.datastreams.should be_a_kind_of(ActiveFedora::DatastreamHash)
98
98
  end
99
+
100
+ it "should round-trip to/from YAML" do
101
+ YAML.load(subject.datastreams.to_yaml).inspect.should == subject.datastreams.inspect
102
+ end
99
103
  end
100
104
 
101
105
  describe "#configure_datastream" do
@@ -13,7 +13,7 @@ describe ActiveFedora::FileConfigurator do
13
13
 
14
14
  describe "#initialize" do
15
15
  it "should trigger configuration reset (to empty defaults)" do
16
- ActiveFedora::FileConfigurator.any_instance.should_receive(:reset!)
16
+ expect_any_instance_of(ActiveFedora::FileConfigurator).to receive(:reset!)
17
17
  ActiveFedora::FileConfigurator.new
18
18
  end
19
19
  end
@@ -88,7 +88,7 @@ describe ActiveFedora::FileConfigurator do
88
88
  Dir.should_receive(:getwd).and_return("/current/working/directory")
89
89
  File.should_receive(:file?).with("/current/working/directory/config/fedora.yml").and_return(false)
90
90
  File.should_receive(:file?).with(File.expand_path(File.join(File.dirname("__FILE__"),'config','fedora.yml'))).and_return(true)
91
- logger.should_receive(:warn).with("Using the default fedora.yml that comes with active-fedora. If you want to override this, pass the path to fedora.yml to ActiveFedora - ie. ActiveFedora.init(:fedora_config_path => '/path/to/fedora.yml') - or set Rails.root and put fedora.yml into \#{Rails.root}/config.")
91
+ expect(ActiveFedora::Base.logger).to receive(:warn).with("Using the default fedora.yml that comes with active-fedora. If you want to override this, pass the path to fedora.yml to ActiveFedora - ie. ActiveFedora.init(:fedora_config_path => '/path/to/fedora.yml') - or set Rails.root and put fedora.yml into \#{Rails.root}/config.")
92
92
  subject.get_config_path(:fedora).should eql(File.expand_path(File.join(File.dirname("__FILE__"),'config','fedora.yml')))
93
93
  end
94
94
  end
@@ -120,7 +120,7 @@ describe ActiveFedora::FileConfigurator do
120
120
  Dir.should_receive(:getwd).and_return("/current/working/directory")
121
121
  File.should_receive(:file?).with("/current/working/directory/config/predicate_mappings.yml").and_return(false)
122
122
  File.should_receive(:file?).with(File.expand_path(File.join(File.dirname("__FILE__"),'config','predicate_mappings.yml'))).and_return(true)
123
- logger.should_receive(:warn).with("Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into \#{Rails.root}/config.")
123
+ expect(ActiveFedora::Base.logger).to receive(:warn).with("Using the default predicate_mappings.yml that comes with active-fedora. If you want to override this, pass the path to predicate_mappings.yml to ActiveFedora - ie. ActiveFedora.init(:predicate_mappings_config_path => '/path/to/predicate_mappings.yml') - or set Rails.root and put predicate_mappings.yml into \#{Rails.root}/config.")
124
124
  subject.get_config_path(:predicate_mappings).should eql(File.expand_path(File.join(File.dirname("__FILE__"),'config','predicate_mappings.yml')))
125
125
  end
126
126
  end
@@ -165,7 +165,7 @@ describe ActiveFedora::FileConfigurator do
165
165
  Dir.stub(:getwd => "/current/working/directory")
166
166
  File.should_receive(:file?).with("/current/working/directory/config/solr.yml").and_return(false)
167
167
  File.should_receive(:file?).with(File.expand_path(File.join(File.dirname("__FILE__"),'config','solr.yml'))).and_return(true)
168
- logger.should_receive(:warn).with("Using the default solr.yml that comes with active-fedora. If you want to override this, pass the path to solr.yml to ActiveFedora - ie. ActiveFedora.init(:solr_config_path => '/path/to/solr.yml') - or set Rails.root and put solr.yml into \#{Rails.root}/config.")
168
+ expect(ActiveFedora::Base.logger).to receive(:warn).with("Using the default solr.yml that comes with active-fedora. If you want to override this, pass the path to solr.yml to ActiveFedora - ie. ActiveFedora.init(:solr_config_path => '/path/to/solr.yml') - or set Rails.root and put solr.yml into \#{Rails.root}/config.")
169
169
  subject.get_config_path(:solr).should eql(File.expand_path(File.join(File.dirname("__FILE__"),'config','solr.yml')))
170
170
  end
171
171
  end
@@ -292,7 +292,7 @@ describe ActiveFedora::FileConfigurator do
292
292
  it "loads the config that ships with this gem as a last choice" do
293
293
  Dir.stub(:getwd).and_return("/fake/path")
294
294
  subject.stub(:load_solrizer_config)
295
- logger.should_receive(:warn).with("Using the default fedora.yml that comes with active-fedora. If you want to override this, pass the path to fedora.yml to ActiveFedora - ie. ActiveFedora.init(:fedora_config_path => '/path/to/fedora.yml') - or set Rails.root and put fedora.yml into \#{Rails.root}/config.").exactly(3).times
295
+ expect(ActiveFedora::Base.logger).to receive(:warn).with("Using the default fedora.yml that comes with active-fedora. If you want to override this, pass the path to fedora.yml to ActiveFedora - ie. ActiveFedora.init(:fedora_config_path => '/path/to/fedora.yml') - or set Rails.root and put fedora.yml into \#{Rails.root}/config.").exactly(3).times
296
296
  subject.init
297
297
  expected_config = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "config"))
298
298
  subject.get_config_path(:fedora).should eql(expected_config+'/fedora.yml')
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveFedora::Base do
4
+ let(:logger1) { double }
5
+
6
+ before do
7
+ @initial_logger = ActiveFedora::Base.logger
8
+ ActiveFedora::Base.logger = logger1
9
+ end
10
+
11
+ after do
12
+ ActiveFedora::Base.logger = @initial_logger
13
+ end
14
+
15
+ it "Allows loggers to be set" do
16
+ expect(logger1).to receive(:warn).with("Hey")
17
+ ActiveFedora::Base.new.logger.warn "Hey"
18
+
19
+ end
20
+ end
@@ -127,7 +127,7 @@ describe ActiveFedora::OmDatastream do
127
127
  end
128
128
  it "should do nothing if field key is a string (must be an array or symbol). Will not accept xpath queries!" do
129
129
  xml_before = @mods_ds.to_xml
130
- logger.should_receive(:warn).with "WARNING: descMetadata ignoring {\"fubar\" => \"the role\"} because \"fubar\" is a String (only valid OM Term Pointers will be used). Make sure your html has the correct field_selector tags in it."
130
+ expect(ActiveFedora::Base.logger).to receive(:warn).with "WARNING: descMetadata ignoring {\"fubar\" => \"the role\"} because \"fubar\" is a String (only valid OM Term Pointers will be used). Make sure your html has the correct field_selector tags in it."
131
131
  @mods_ds.update_indexed_attributes( { "fubar"=>"the role" } ).should == {}
132
132
  @mods_ds.to_xml.should == xml_before
133
133
  end
@@ -44,4 +44,54 @@ describe ActiveFedora::Persistence do
44
44
  end
45
45
  end
46
46
  end
47
+
48
+ describe "destroy" do
49
+ subject { ActiveFedora::Base.create! }
50
+ it "should not clear the pid" do
51
+ subject.destroy
52
+ expect(subject.pid).not_to be_nil
53
+ end
54
+ end
55
+
56
+ describe "save" do
57
+ subject { ActiveFedora::Base.new }
58
+ context "when called with option :update_index=>false" do
59
+ context "on a new record" do
60
+ it "should not update the index" do
61
+ expect(subject).to receive(:persist).with(false)
62
+ subject.save(update_index: false)
63
+ end
64
+ end
65
+ context "on a persisted record" do
66
+ before do
67
+ allow(subject).to receive(:new_record?) { false }
68
+ allow(subject.inner_object).to receive(:save) { true }
69
+ end
70
+ it "should not update the index" do
71
+ expect(subject).to receive(:persist).with(false)
72
+ subject.save(update_index: false)
73
+ end
74
+ end
75
+ end
76
+ context "when called with option :update_index=>true" do
77
+ context "on create" do
78
+ before { allow(subject).to receive(:create_needs_index?) { false } }
79
+ it "should not override `create_needs_index?'" do
80
+ expect(subject).to receive(:persist).with(false)
81
+ subject.save(update_index: true)
82
+ end
83
+ end
84
+ context "on update" do
85
+ before do
86
+ allow(subject).to receive(:new_record?) { false }
87
+ allow(subject.inner_object).to receive(:save) { true }
88
+ allow(subject).to receive(:update_needs_index?) { false }
89
+ end
90
+ it "should not override `update_needs_index?'" do
91
+ expect(subject).to receive(:persist).with(false)
92
+ subject.save(update_index: true)
93
+ end
94
+ end
95
+ end
96
+ end
47
97
  end
@@ -44,21 +44,21 @@ describe ActiveFedora::Base do
44
44
  describe '#find' do
45
45
  describe "with :cast false" do
46
46
  describe "and a pid is specified" do
47
- it "should use SpecModel::Basic.allocate.init_with to instantiate an object" do
48
- SpecModel::Basic.any_instance.should_receive(:init_with).and_return(SpecModel::Basic.new )
47
+ it "should use SpecModel::Basic.allocate.init_with_object to instantiate an object" do
48
+ allow_any_instance_of(SpecModel::Basic).to receive(:init_with_object).and_return(SpecModel::Basic.new )
49
49
  ActiveFedora::DigitalObject.should_receive(:find).and_return(double("inner obj", :'new?'=>false))
50
50
  SpecModel::Basic.find("_PID_", cast: false).should be_a SpecModel::Basic
51
51
  end
52
52
  it "should raise an exception if it is not found" do
53
- Rubydora::Fc3Service.any_instance.should_receive(:object).and_raise(RestClient::ResourceNotFound)
53
+ allow_any_instance_of(Rubydora::Fc3Service).to receive(:object).and_raise(RestClient::ResourceNotFound)
54
54
  SpecModel::Basic.should_receive(:connection_for_pid).with("_PID_")
55
55
  lambda {SpecModel::Basic.find("_PID_")}.should raise_error ActiveFedora::ObjectNotFoundError
56
56
  end
57
57
  end
58
58
  end
59
59
  describe "with default :cast of true" do
60
- it "should use SpecModel::Basic.allocate.init_with to instantiate an object" do
61
- SpecModel::Basic.any_instance.should_receive(:init_with).and_return(double("Model", :adapt_to_cmodel=>SpecModel::Basic.new ))
60
+ it "should use SpecModel::Basic.allocate.init_with_object to instantiate an object" do
61
+ allow_any_instance_of(SpecModel::Basic).to receive(:init_with_object).and_return(double("Model", :adapt_to_cmodel=>SpecModel::Basic.new ))
62
62
  ActiveFedora::DigitalObject.should_receive(:find).and_return(double("inner obj", :'new?'=>false))
63
63
  SpecModel::Basic.find("_PID_")
64
64
  end
@@ -288,4 +288,14 @@ describe ActiveFedora::Base do
288
288
  ActiveFedora::Base.find_with_conditions('chunky:monkey').should == mock_result
289
289
  end
290
290
  end
291
+
292
+ describe "#load_from_fedora" do
293
+ let(:relation) { ActiveFedora::Relation.new(ActiveFedora::Base) }
294
+ before { @obj = SpecModel::Basic.create(pid: "test:123") }
295
+ after { @obj.destroy }
296
+ it "should cast when klass == ActiveFedora::Base and cast argument is nil" do
297
+ expect(relation.send(:load_from_fedora, "test:123", nil)).to be_a SpecModel::Basic
298
+ end
299
+ end
300
+
291
301
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe ActiveFedora::RDFDatastream do
4
4
  before do
5
- class DummySubnode < ActiveFedora::Rdf::Resource
5
+ class DummySubnode < ActiveTriples::Resource
6
6
  property :title, :predicate => RDF::DC[:title], :class_name => RDF::Literal
7
7
  property :relation, :predicate => RDF::DC[:relation]
8
8
  end
@@ -216,9 +216,9 @@ describe ActiveFedora::RDFDatastream do
216
216
  subject.save
217
217
  @new_object.destroy
218
218
  end
219
- it "should give back an AF::Rdf::Resource" do
219
+ it "should give back an ActiveTriples::Resource" do
220
220
  subject.reload
221
- expect(subject.descMetadata.creator.first).to be_kind_of(ActiveFedora::Rdf::Resource)
221
+ expect(subject.descMetadata.creator.first).to be_kind_of(ActiveTriples::Resource)
222
222
  expect(subject.descMetadata.creator.first.rdf_subject).to eq @new_object.resource.rdf_subject
223
223
  end
224
224
  end
@@ -62,7 +62,7 @@ describe ActiveFedora::RdfxmlRDFDatastream do
62
62
  super
63
63
  end
64
64
 
65
- class Description < ActiveFedora::Rdf::Resource
65
+ class Description < ActiveTriples::Resource
66
66
  configure :type => DAMS.Description
67
67
  property :value, :predicate => RDF.value do |index|
68
68
  index.as :searchable
@@ -5,7 +5,7 @@ describe ActiveFedora do
5
5
  before(:all) do
6
6
  module SolrSpecModel
7
7
  class Basic < ActiveFedora::Base
8
- def init_with(inner_obj)
8
+ def init_with_object(inner_obj)
9
9
  end
10
10
  end
11
11
  end
@@ -38,7 +38,7 @@ describe ActiveFedora::SolrService do
38
38
  before(:all) do
39
39
  class AudioRecord
40
40
  attr_accessor :pid
41
- def init_with(inner_obj)
41
+ def init_with_object(inner_obj)
42
42
  self.pid = inner_obj.pid
43
43
  self
44
44
  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: 7.0.4
4
+ version: 7.1.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: 2014-06-10 00:00:00.000000000 Z
13
+ date: 2014-07-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.10.pre1
21
+ version: 1.0.10
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 1.0.10.pre1
28
+ version: 1.0.10
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: om
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 3.0.0
35
+ version: '3.1'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 3.0.0
42
+ version: '3.1'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: nom-xml
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -68,48 +68,34 @@ dependencies:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: 3.0.0
71
- - !ruby/object:Gem::Dependency
72
- name: mediashelf-loggable
73
- requirement: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- type: :runtime
79
- prerelease: false
80
- version_requirements: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- version: '0'
85
71
  - !ruby/object:Gem::Dependency
86
72
  name: rubydora
87
73
  requirement: !ruby/object:Gem::Requirement
88
74
  requirements:
89
75
  - - "~>"
90
76
  - !ruby/object:Gem::Version
91
- version: 1.7.4
77
+ version: '1.8'
92
78
  type: :runtime
93
79
  prerelease: false
94
80
  version_requirements: !ruby/object:Gem::Requirement
95
81
  requirements:
96
82
  - - "~>"
97
83
  - !ruby/object:Gem::Version
98
- version: 1.7.4
84
+ version: '1.8'
99
85
  - !ruby/object:Gem::Dependency
100
- name: linkeddata
86
+ name: active-triples
101
87
  requirement: !ruby/object:Gem::Requirement
102
88
  requirements:
103
- - - ">="
89
+ - - "~>"
104
90
  - !ruby/object:Gem::Version
105
- version: '0'
91
+ version: 0.2.2
106
92
  type: :runtime
107
93
  prerelease: false
108
94
  version_requirements: !ruby/object:Gem::Requirement
109
95
  requirements:
110
- - - ">="
96
+ - - "~>"
111
97
  - !ruby/object:Gem::Version
112
- version: '0'
98
+ version: 0.2.2
113
99
  - !ruby/object:Gem::Dependency
114
100
  name: rdf-rdfxml
115
101
  requirement: !ruby/object:Gem::Requirement
@@ -196,18 +182,32 @@ dependencies:
196
182
  version: 1.4.0
197
183
  - !ruby/object:Gem::Dependency
198
184
  name: rspec
185
+ requirement: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: '2.99'
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - "~>"
195
+ - !ruby/object:Gem::Version
196
+ version: '2.99'
197
+ - !ruby/object:Gem::Dependency
198
+ name: rspec-its
199
199
  requirement: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - ">="
202
202
  - !ruby/object:Gem::Version
203
- version: 2.9.0
203
+ version: '0'
204
204
  type: :development
205
205
  prerelease: false
206
206
  version_requirements: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - ">="
209
209
  - !ruby/object:Gem::Version
210
- version: 2.9.0
210
+ version: '0'
211
211
  - !ruby/object:Gem::Dependency
212
212
  name: equivalent-xml
213
213
  requirement: !ruby/object:Gem::Requirement
@@ -277,6 +277,7 @@ files:
277
277
  - ".gitignore"
278
278
  - ".gitmodules"
279
279
  - ".mailmap"
280
+ - ".rspec"
280
281
  - ".travis.yml"
281
282
  - CONTRIBUTING.md
282
283
  - CONTRIBUTORS.md
@@ -348,20 +349,12 @@ files:
348
349
  - lib/active_fedora/querying.rb
349
350
  - lib/active_fedora/railtie.rb
350
351
  - lib/active_fedora/rdf.rb
351
- - lib/active_fedora/rdf/configurable.rb
352
352
  - lib/active_fedora/rdf/identifiable.rb
353
353
  - lib/active_fedora/rdf/indexing.rb
354
- - lib/active_fedora/rdf/list.rb
355
- - lib/active_fedora/rdf/nested_attributes.rb
356
- - lib/active_fedora/rdf/node_config.rb
357
354
  - lib/active_fedora/rdf/ntriples_rdf_datastream.rb
358
355
  - lib/active_fedora/rdf/object_resource.rb
359
- - lib/active_fedora/rdf/properties.rb
360
356
  - lib/active_fedora/rdf/rdf_datastream.rb
361
357
  - lib/active_fedora/rdf/rdfxml_rdf_datastream.rb
362
- - lib/active_fedora/rdf/repositories.rb
363
- - lib/active_fedora/rdf/resource.rb
364
- - lib/active_fedora/rdf/term.rb
365
358
  - lib/active_fedora/rdf_xml_writer.rb
366
359
  - lib/active_fedora/reflection.rb
367
360
  - lib/active_fedora/relation.rb
@@ -494,6 +487,7 @@ files:
494
487
  - spec/unit/base_datastream_management_spec.rb
495
488
  - spec/unit/base_extra_spec.rb
496
489
  - spec/unit/base_spec.rb
490
+ - spec/unit/builder/has_and_belongs_to_many_spec.rb
497
491
  - spec/unit/callback_spec.rb
498
492
  - spec/unit/code_configurator_spec.rb
499
493
  - spec/unit/config_spec.rb
@@ -506,6 +500,7 @@ files:
506
500
  - spec/unit/has_and_belongs_to_many_collection_spec.rb
507
501
  - spec/unit/has_many_collection_spec.rb
508
502
  - spec/unit/inheritance_spec.rb
503
+ - spec/unit/logger_spec.rb
509
504
  - spec/unit/model_spec.rb
510
505
  - spec/unit/nom_datastream_spec.rb
511
506
  - spec/unit/ntriples_datastream_spec.rb
@@ -515,14 +510,8 @@ files:
515
510
  - spec/unit/property_spec.rb
516
511
  - spec/unit/qualified_dublin_core_datastream_spec.rb
517
512
  - spec/unit/query_spec.rb
518
- - spec/unit/rdf_configurable_spec.rb
519
513
  - spec/unit/rdf_datastream_spec.rb
520
- - spec/unit/rdf_list_nested_attributes_spec.rb
521
- - spec/unit/rdf_list_spec.rb
522
- - spec/unit/rdf_properties_spec.rb
523
- - spec/unit/rdf_repositories_spec.rb
524
514
  - spec/unit/rdf_resource_datastream_spec.rb
525
- - spec/unit/rdf_resource_spec.rb
526
515
  - spec/unit/rdf_xml_writer_spec.rb
527
516
  - spec/unit/rdfxml_rdf_datastream_spec.rb
528
517
  - spec/unit/relationship_graph_spec.rb
@@ -566,129 +555,5 @@ rubygems_version: 2.2.2
566
555
  signing_key:
567
556
  specification_version: 4
568
557
  summary: A convenience libary for manipulating documents in the Fedora Repository.
569
- test_files:
570
- - spec/config_helper.rb
571
- - spec/fixtures/damsObjectModel.xml
572
- - spec/fixtures/dino.jpg
573
- - spec/fixtures/dino_jpg_no_file_ext
574
- - spec/fixtures/dublin_core_rdf_descMetadata.nt
575
- - spec/fixtures/minivan.jpg
576
- - spec/fixtures/mixed_rdf_descMetadata.nt
577
- - spec/fixtures/mods_articles/mods_article1.xml
578
- - spec/fixtures/rails_root/config/fake_fedora.yml
579
- - spec/fixtures/rails_root/config/fedora.yml
580
- - spec/fixtures/rails_root/config/predicate_mappings.yml
581
- - spec/fixtures/rails_root/config/solr.yml
582
- - spec/fixtures/rails_root/config/solr_mappings.yml
583
- - spec/fixtures/rails_root/config/solr_mappings_af_0.1.yml
584
- - spec/fixtures/rails_root/config/solr_mappings_bl_2.4.yml
585
- - spec/fixtures/sharded_fedora.yml
586
- - spec/fixtures/solr_rdf_descMetadata.nt
587
- - spec/integration/associations_spec.rb
588
- - spec/integration/attributes_spec.rb
589
- - spec/integration/auditable_spec.rb
590
- - spec/integration/autosave_association_spec.rb
591
- - spec/integration/base_spec.rb
592
- - spec/integration/belongs_to_association_spec.rb
593
- - spec/integration/bug_spec.rb
594
- - spec/integration/collection_association_spec.rb
595
- - spec/integration/complex_rdf_datastream_spec.rb
596
- - spec/integration/datastream_collections_spec.rb
597
- - spec/integration/datastream_spec.rb
598
- - spec/integration/datastreams_spec.rb
599
- - spec/integration/delete_all_spec.rb
600
- - spec/integration/fedora_solr_sync_spec.rb
601
- - spec/integration/field_to_solr_name_spec.rb
602
- - spec/integration/full_featured_model_spec.rb
603
- - spec/integration/has_and_belongs_to_many_associations_spec.rb
604
- - spec/integration/has_many_associations_spec.rb
605
- - spec/integration/json_serialization_spec.rb
606
- - spec/integration/load_from_solr_spec.rb
607
- - spec/integration/model_spec.rb
608
- - spec/integration/nested_attribute_spec.rb
609
- - spec/integration/ntriples_datastream_spec.rb
610
- - spec/integration/om_datastream_spec.rb
611
- - spec/integration/persistence_spec.rb
612
- - spec/integration/rdf_nested_attributes_spec.rb
613
- - spec/integration/relation_delegation_spec.rb
614
- - spec/integration/relation_spec.rb
615
- - spec/integration/rels_ext_datastream_spec.rb
616
- - spec/integration/scoped_query_spec.rb
617
- - spec/integration/solr_instance_loader_spec.rb
618
- - spec/integration/solr_service_spec.rb
619
- - spec/rcov.opts
620
- - spec/samples/hydra-mods_article_datastream.rb
621
- - spec/samples/hydra-rights_metadata_datastream.rb
622
- - spec/samples/marpa-dc_datastream.rb
623
- - spec/samples/models/audio_record.rb
624
- - spec/samples/models/image.rb
625
- - spec/samples/models/mods_article.rb
626
- - spec/samples/models/oral_history.rb
627
- - spec/samples/models/seminar.rb
628
- - spec/samples/models/seminar_audio_file.rb
629
- - spec/samples/oral_history_sample.xml
630
- - spec/samples/oral_history_sample_model.rb
631
- - spec/samples/oral_history_xml.xml
632
- - spec/samples/samples.rb
633
- - spec/samples/special_thing.rb
634
- - spec/spec.opts
635
- - spec/spec_helper.rb
636
- - spec/support/an_active_model.rb
637
- - spec/support/freeze_mocks.rb
638
- - spec/support/mock_fedora.rb
639
- - spec/unit/active_fedora_spec.rb
640
- - spec/unit/attributes_spec.rb
641
- - spec/unit/base_active_model_spec.rb
642
- - spec/unit/base_cma_spec.rb
643
- - spec/unit/base_datastream_management_spec.rb
644
- - spec/unit/base_extra_spec.rb
645
- - spec/unit/base_spec.rb
646
- - spec/unit/callback_spec.rb
647
- - spec/unit/code_configurator_spec.rb
648
- - spec/unit/config_spec.rb
649
- - spec/unit/content_model_spec.rb
650
- - spec/unit/core_spec.rb
651
- - spec/unit/datastream_collections_spec.rb
652
- - spec/unit/datastream_spec.rb
653
- - spec/unit/datastreams_spec.rb
654
- - spec/unit/file_configurator_spec.rb
655
- - spec/unit/has_and_belongs_to_many_collection_spec.rb
656
- - spec/unit/has_many_collection_spec.rb
657
- - spec/unit/inheritance_spec.rb
658
- - spec/unit/model_spec.rb
659
- - spec/unit/nom_datastream_spec.rb
660
- - spec/unit/ntriples_datastream_spec.rb
661
- - spec/unit/om_datastream_spec.rb
662
- - spec/unit/persistence_spec.rb
663
- - spec/unit/predicates_spec.rb
664
- - spec/unit/property_spec.rb
665
- - spec/unit/qualified_dublin_core_datastream_spec.rb
666
- - spec/unit/query_spec.rb
667
- - spec/unit/rdf_configurable_spec.rb
668
- - spec/unit/rdf_datastream_spec.rb
669
- - spec/unit/rdf_list_nested_attributes_spec.rb
670
- - spec/unit/rdf_list_spec.rb
671
- - spec/unit/rdf_properties_spec.rb
672
- - spec/unit/rdf_repositories_spec.rb
673
- - spec/unit/rdf_resource_datastream_spec.rb
674
- - spec/unit/rdf_resource_spec.rb
675
- - spec/unit/rdf_xml_writer_spec.rb
676
- - spec/unit/rdfxml_rdf_datastream_spec.rb
677
- - spec/unit/relationship_graph_spec.rb
678
- - spec/unit/reload_on_save_spec.rb
679
- - spec/unit/rels_ext_datastream_spec.rb
680
- - spec/unit/rspec_matchers/belong_to_associated_active_fedora_object_matcher_spec.rb
681
- - spec/unit/rspec_matchers/have_many_associated_active_fedora_objects_matcher_spec.rb
682
- - spec/unit/rspec_matchers/have_predicate_matcher_spec.rb
683
- - spec/unit/rspec_matchers/match_fedora_datastream_matcher_spec.rb
684
- - spec/unit/rubydora_connection_spec.rb
685
- - spec/unit/semantic_node_spec.rb
686
- - spec/unit/serializers_spec.rb
687
- - spec/unit/service_definitions_spec.rb
688
- - spec/unit/simple_datastream_spec.rb
689
- - spec/unit/solr_config_options_spec.rb
690
- - spec/unit/solr_digital_object_spec.rb
691
- - spec/unit/solr_service_spec.rb
692
- - spec/unit/unsaved_digital_object_spec.rb
693
- - spec/unit/validations_spec.rb
558
+ test_files: []
694
559
  has_rdoc: