active-fedora 9.13.0 → 10.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -19
- data/lib/active_fedora.rb +0 -17
- data/lib/active_fedora/associations.rb +0 -16
- data/lib/active_fedora/associations/builder/association.rb +3 -19
- data/lib/active_fedora/associations/builder/has_and_belongs_to_many.rb +1 -3
- data/lib/active_fedora/attached_files.rb +2 -108
- data/lib/active_fedora/attributes.rb +4 -100
- data/lib/active_fedora/core.rb +0 -6
- data/lib/active_fedora/datastreams.rb +0 -2
- data/lib/active_fedora/errors.rb +0 -9
- data/lib/active_fedora/file.rb +9 -22
- data/lib/active_fedora/file_configurator.rb +1 -32
- data/lib/active_fedora/identifiable.rb +0 -6
- data/lib/active_fedora/ldp_resource.rb +0 -12
- data/lib/active_fedora/qualified_dublin_core_datastream.rb +1 -1
- data/lib/active_fedora/query_result_builder.rb +0 -17
- data/lib/active_fedora/rdf/datastream_indexing.rb +0 -11
- data/lib/active_fedora/rdf/indexing_service.rb +1 -1
- data/lib/active_fedora/rdf/rdf_datastream.rb +0 -10
- data/lib/active_fedora/relation/finder_methods.rb +2 -21
- data/lib/active_fedora/solr_query_builder.rb +0 -16
- data/lib/active_fedora/solr_service.rb +2 -89
- data/lib/active_fedora/version.rb +1 -1
- data/lib/active_fedora/versionable.rb +0 -8
- data/spec/config_helper.rb +0 -4
- data/spec/integration/attached_files_spec.rb +1 -108
- data/spec/integration/attributes_spec.rb +14 -94
- data/spec/integration/direct_container_spec.rb +2 -2
- data/spec/integration/file_spec.rb +23 -13
- data/spec/integration/indexing_spec.rb +4 -4
- data/spec/integration/json_serialization_spec.rb +4 -57
- data/spec/integration/ntriples_datastream_spec.rb +77 -139
- data/spec/integration/relation_delegation_spec.rb +16 -18
- data/spec/integration/{model_spec.rb → scoping_spec.rb} +10 -14
- data/spec/integration/solr_hit_spec.rb +4 -20
- data/spec/integration/solr_instance_loader_spec.rb +1 -13
- data/spec/integration/versionable_spec.rb +0 -9
- data/spec/samples/models/mods_article.rb +1 -6
- data/spec/spec_helper.rb +0 -3
- data/spec/unit/attached_files_spec.rb +29 -127
- data/spec/unit/attributes_spec.rb +51 -475
- data/spec/unit/base_active_model_spec.rb +12 -47
- data/spec/unit/base_extra_spec.rb +1 -1
- data/spec/unit/code_configurator_spec.rb +2 -10
- data/spec/unit/core_spec.rb +3 -18
- data/spec/unit/file_configurator_spec.rb +0 -80
- data/spec/unit/file_spec.rb +0 -6
- data/spec/unit/has_and_belongs_to_many_association_spec.rb +0 -7
- data/spec/unit/inheritance_spec.rb +0 -12
- data/spec/unit/ntriples_datastream_spec.rb +2 -74
- data/spec/unit/property_spec.rb +0 -3
- data/spec/unit/query_spec.rb +0 -7
- data/spec/unit/querying_spec.rb +24 -0
- data/spec/unit/rdf/indexing_service_spec.rb +32 -20
- data/spec/unit/rdf_resource_datastream_spec.rb +37 -97
- data/spec/unit/solr_query_builder_spec.rb +0 -8
- data/spec/unit/solr_service_spec.rb +0 -13
- metadata +6 -19
- data/config/predicate_mappings.yml +0 -51
- data/lib/active_fedora/attributes/om_attribute.rb +0 -26
- data/lib/active_fedora/attributes/rdf_datastream_attribute.rb +0 -44
- data/lib/active_fedora/attributes/stream_attribute.rb +0 -43
- data/lib/active_fedora/datastream.rb +0 -9
- data/lib/active_fedora/model.rb +0 -31
- data/lib/active_fedora/predicates.rb +0 -122
- data/lib/active_fedora/simple_datastream.rb +0 -92
- data/spec/fixtures/rails_root/config/predicate_mappings.yml +0 -31
- data/spec/integration/field_to_solr_name_spec.rb +0 -36
- data/spec/unit/base_datastream_management_spec.rb +0 -19
- data/spec/unit/model_spec.rb +0 -30
- data/spec/unit/predicates_spec.rb +0 -126
- data/spec/unit/simple_datastream_spec.rb +0 -101
@@ -3,26 +3,11 @@ require 'spec_helper'
|
|
3
3
|
describe ActiveFedora::RDF::IndexingService do
|
4
4
|
before do
|
5
5
|
class MyDatastream < ActiveFedora::NtriplesRDFDatastream
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
property :title, predicate: ::RDF::Vocab::DC.title do |index|
|
12
|
-
index.as :stored_searchable, :sortable
|
13
|
-
index.type :text
|
14
|
-
end
|
15
|
-
property :publisher, predicate: ::RDF::Vocab::DC.publisher do |index|
|
16
|
-
index.as :facetable, :sortable, :stored_searchable
|
17
|
-
end
|
18
|
-
property :based_near, predicate: ::RDF::FOAF.based_near do |index|
|
19
|
-
index.as :facetable, :stored_searchable
|
20
|
-
index.type :text
|
21
|
-
end
|
22
|
-
property :related_url, predicate: ::RDF::RDFS.seeAlso do |index|
|
23
|
-
index.as :stored_searchable
|
24
|
-
end
|
25
|
-
end
|
6
|
+
property :created, predicate: ::RDF::Vocab::DC.created
|
7
|
+
property :title, predicate: ::RDF::Vocab::DC.title
|
8
|
+
property :publisher, predicate: ::RDF::Vocab::DC.publisher
|
9
|
+
property :based_near, predicate: ::RDF::FOAF.based_near
|
10
|
+
property :related_url, predicate: ::RDF::RDFS.seeAlso
|
26
11
|
property :rights, predicate: ::RDF::Vocab::DC.rights
|
27
12
|
end
|
28
13
|
end
|
@@ -42,6 +27,33 @@ describe ActiveFedora::RDF::IndexingService do
|
|
42
27
|
end
|
43
28
|
end
|
44
29
|
|
30
|
+
let(:index_config) do
|
31
|
+
{}.tap do |index_config|
|
32
|
+
index_config[:created] = ActiveFedora::Indexing::Map::IndexObject.new(:created) do |index|
|
33
|
+
index.as :sortable, :displayable
|
34
|
+
index.type :date
|
35
|
+
end
|
36
|
+
index_config[:title] = ActiveFedora::Indexing::Map::IndexObject.new(:title) do |index|
|
37
|
+
index.as :stored_searchable, :sortable
|
38
|
+
index.type :text
|
39
|
+
end
|
40
|
+
index_config[:publisher] = ActiveFedora::Indexing::Map::IndexObject.new(:publisher) do |index|
|
41
|
+
index.as :facetable, :sortable, :stored_searchable
|
42
|
+
end
|
43
|
+
index_config[:based_near] = ActiveFedora::Indexing::Map::IndexObject.new(:based_near) do |index|
|
44
|
+
index.as :facetable, :stored_searchable
|
45
|
+
index.type :text
|
46
|
+
end
|
47
|
+
index_config[:related_url] = ActiveFedora::Indexing::Map::IndexObject.new(:related_url) do |index|
|
48
|
+
index.as :stored_searchable
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
before do
|
54
|
+
allow(MyDatastream).to receive(:index_config).and_return(index_config)
|
55
|
+
end
|
56
|
+
|
45
57
|
let(:indexer) { described_class.new(f2) }
|
46
58
|
|
47
59
|
describe "#generate_solr_document" do
|
@@ -8,17 +8,10 @@ describe ActiveFedora::RDFDatastream do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
class DummyResource < ActiveFedora::RDFDatastream
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
property :license, predicate: ::RDF::Vocab::DC[:license], class_name: DummySubnode do |index|
|
16
|
-
index.as :searchable, :displayable
|
17
|
-
end
|
18
|
-
property :creator, predicate: ::RDF::Vocab::DC[:creator], class_name: 'DummyAsset' do |index|
|
19
|
-
index.as :searchable
|
20
|
-
end
|
21
|
-
end
|
11
|
+
property :title, predicate: ::RDF::Vocab::DC[:title], class_name: ::RDF::Literal
|
12
|
+
property :license, predicate: ::RDF::Vocab::DC[:license], class_name: DummySubnode
|
13
|
+
property :creator, predicate: ::RDF::Vocab::DC[:creator], class_name: 'DummyAsset'
|
14
|
+
|
22
15
|
def serialization_format
|
23
16
|
:ntriples
|
24
17
|
end
|
@@ -26,10 +19,7 @@ describe ActiveFedora::RDFDatastream do
|
|
26
19
|
|
27
20
|
class DummyAsset < ActiveFedora::Base
|
28
21
|
has_subresource 'descMetadata', class_name: 'DummyResource'
|
29
|
-
|
30
|
-
has_attributes :title, :license, datastream: 'descMetadata', multiple: true
|
31
|
-
has_attributes :relation, datastream: 'descMetadata', at: [:license, :relation], multiple: false
|
32
|
-
end
|
22
|
+
property :something, predicate: ::RDF::URI('http://example.com/thing')
|
33
23
|
end
|
34
24
|
end
|
35
25
|
|
@@ -39,65 +29,20 @@ describe ActiveFedora::RDFDatastream do
|
|
39
29
|
Object.send(:remove_const, "DummySubnode")
|
40
30
|
end
|
41
31
|
|
42
|
-
subject {
|
43
|
-
|
44
|
-
describe "#to_solr" do
|
45
|
-
before { subject.descMetadata.title = "bla" }
|
46
|
-
|
47
|
-
it "does not be blank" do
|
48
|
-
expect(subject.to_solr).not_to be_blank
|
49
|
-
end
|
50
|
-
|
51
|
-
it "solrizes" do
|
52
|
-
expect(subject.to_solr["desc_metadata__title_teim"]).to eq ["bla"]
|
53
|
-
end
|
54
|
-
|
55
|
-
context "with ActiveFedora::Base resources" do
|
56
|
-
let(:dummy_asset) { DummyAsset.new }
|
57
|
-
|
58
|
-
before do
|
59
|
-
allow(dummy_asset).to receive(:uri).and_return("http://foo")
|
60
|
-
subject.descMetadata.creator = dummy_asset
|
61
|
-
end
|
62
|
-
|
63
|
-
it "solrizes objects" do
|
64
|
-
expect(subject.to_solr["desc_metadata__creator_teim"]).to eq ["http://foo"]
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
context "with ActiveTriples resources" do
|
69
|
-
before { subject.descMetadata.license = DummySubnode.new('http://example.org/blah') }
|
70
|
-
|
71
|
-
it "solrizes uris" do
|
72
|
-
expect(subject.to_solr["desc_metadata__license_teim"]).to eq ['http://example.org/blah']
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
describe "delegation" do
|
78
|
-
it "retrieves values" do
|
79
|
-
subject.descMetadata.title = "bla"
|
80
|
-
expect(subject.title).to eq ["bla"]
|
81
|
-
end
|
82
|
-
|
83
|
-
it "sets values" do
|
84
|
-
subject.title = ["blah"]
|
85
|
-
expect(subject.descMetadata.title).to eq ["blah"]
|
86
|
-
end
|
87
|
-
end
|
32
|
+
subject { DummyResource.new("#{ActiveFedora.fedora.host}/test/test:1") }
|
88
33
|
|
89
34
|
describe "attribute setting" do
|
90
35
|
context "on text attributes" do
|
91
36
|
before do
|
92
|
-
subject.
|
37
|
+
subject.title = "bla"
|
93
38
|
end
|
94
39
|
|
95
40
|
it "lets you access" do
|
96
|
-
expect(subject.
|
41
|
+
expect(subject.title).to eq ["bla"]
|
97
42
|
end
|
98
43
|
|
99
44
|
it "marks it as changed" do
|
100
|
-
expect(subject
|
45
|
+
expect(subject).to be_changed
|
101
46
|
end
|
102
47
|
|
103
48
|
context "after it is persisted" do
|
@@ -107,7 +52,7 @@ describe ActiveFedora::RDFDatastream do
|
|
107
52
|
end
|
108
53
|
|
109
54
|
it "is persisted" do
|
110
|
-
expect(subject.
|
55
|
+
expect(subject.resource).to be_persisted
|
111
56
|
end
|
112
57
|
|
113
58
|
context "and it's reloaded" do
|
@@ -116,29 +61,29 @@ describe ActiveFedora::RDFDatastream do
|
|
116
61
|
end
|
117
62
|
|
118
63
|
it "is accessible after being saved" do
|
119
|
-
expect(subject.
|
64
|
+
expect(subject.title).to eq ["bla"]
|
120
65
|
end
|
121
66
|
|
122
67
|
it "serializes to content" do
|
123
|
-
expect(subject.
|
68
|
+
expect(subject.content).not_to be_blank
|
124
69
|
end
|
125
70
|
end
|
126
71
|
|
127
72
|
context "and it is found again" do
|
128
73
|
before do
|
129
|
-
@object =
|
74
|
+
@object = DummyResource.new(subject.uri)
|
130
75
|
end
|
131
76
|
|
132
77
|
it "serializes to content" do
|
133
|
-
expect(@object.
|
78
|
+
expect(@object.content).not_to be_blank
|
134
79
|
end
|
135
80
|
|
136
81
|
it "is accessible after being saved" do
|
137
|
-
expect(@object.
|
82
|
+
expect(@object.title).to eq ["bla"]
|
138
83
|
end
|
139
84
|
|
140
85
|
it "has datastream content" do
|
141
|
-
expect(@object.
|
86
|
+
expect(@object.remote_content).not_to be_blank
|
142
87
|
end
|
143
88
|
end
|
144
89
|
end
|
@@ -149,15 +94,15 @@ describe ActiveFedora::RDFDatastream do
|
|
149
94
|
before do
|
150
95
|
dummy = DummySubnode.new
|
151
96
|
dummy.title = 'subbla'
|
152
|
-
subject.
|
97
|
+
subject.license = dummy
|
153
98
|
end
|
154
99
|
|
155
100
|
it "lets you access" do
|
156
|
-
expect(subject.
|
101
|
+
expect(subject.license.first.title).to eq ['subbla']
|
157
102
|
end
|
158
103
|
|
159
104
|
it "marks it as changed" do
|
160
|
-
expect(subject
|
105
|
+
expect(subject).to be_changed
|
161
106
|
end
|
162
107
|
end
|
163
108
|
context "persisted to repository" do
|
@@ -168,15 +113,15 @@ describe ActiveFedora::RDFDatastream do
|
|
168
113
|
# We want to have to manually persist to the repository.
|
169
114
|
# Parent objects shouldn't be persisting children they share with other parents
|
170
115
|
dummy.persist!
|
171
|
-
subject.
|
116
|
+
subject.license = dummy
|
172
117
|
end
|
173
118
|
|
174
119
|
it "lets you access" do
|
175
|
-
expect(subject.
|
120
|
+
expect(subject.license.first.title).to eq ['subbla']
|
176
121
|
end
|
177
122
|
|
178
123
|
it "marks it as changed" do
|
179
|
-
expect(subject
|
124
|
+
expect(subject).to be_changed
|
180
125
|
end
|
181
126
|
end
|
182
127
|
end
|
@@ -184,38 +129,36 @@ describe ActiveFedora::RDFDatastream do
|
|
184
129
|
|
185
130
|
describe "relationships" do
|
186
131
|
before do
|
187
|
-
@new_object = DummyAsset.
|
188
|
-
@new_object.title = ["subbla"]
|
189
|
-
@new_object.save
|
132
|
+
@new_object = DummyAsset.create(something: ["subbla"])
|
190
133
|
subject.title = ["bla"]
|
191
|
-
subject.
|
134
|
+
subject.creator = @new_object
|
192
135
|
end
|
193
136
|
|
194
137
|
it "has accessible relationship attributes" do
|
195
|
-
expect(subject.
|
138
|
+
expect(subject.creator.first.something).to eq ["subbla"]
|
196
139
|
end
|
197
140
|
|
198
141
|
it "lets me get to an AF:Base object" do
|
199
142
|
subject.save
|
200
|
-
subject.
|
201
|
-
expect(
|
143
|
+
resource = DummyResource.new(subject.uri)
|
144
|
+
expect(resource.creator.first).to be_kind_of(ActiveFedora::Base)
|
202
145
|
end
|
203
146
|
|
204
147
|
context "when the AF:Base object is deleted" do
|
205
148
|
before do
|
206
149
|
subject.save
|
150
|
+
@resource = DummyResource.new(subject.uri)
|
207
151
|
@new_object.destroy
|
208
152
|
end
|
209
153
|
it "gives back an ActiveTriples::Resource" do
|
210
|
-
|
211
|
-
expect(
|
212
|
-
expect(subject.descMetadata.creator.first.rdf_subject).to eq @new_object.resource.rdf_subject
|
154
|
+
expect(@resource.creator.first).to be_kind_of(ActiveTriples::Resource)
|
155
|
+
expect(@resource.creator.first.rdf_subject).to eq @new_object.resource.rdf_subject
|
213
156
|
end
|
214
157
|
end
|
215
158
|
|
216
159
|
it "allows for deep attributes to be set directly" do
|
217
|
-
subject.
|
218
|
-
expect(subject.
|
160
|
+
subject.creator.first.something = ["Bla"]
|
161
|
+
expect(subject.creator.first.something).to eq ["Bla"]
|
219
162
|
end
|
220
163
|
|
221
164
|
context "when the subject is set with base_uri" do
|
@@ -224,7 +167,7 @@ describe ActiveFedora::RDFDatastream do
|
|
224
167
|
DummyResource.resource_class.configure base_uri: 'http://example.org/'
|
225
168
|
new_object = DummyAsset.new
|
226
169
|
new_object.save
|
227
|
-
subject.
|
170
|
+
subject.creator = new_object
|
228
171
|
end
|
229
172
|
after do
|
230
173
|
DummyResource.resource_class.configure base_uri: @old_uri
|
@@ -232,32 +175,29 @@ describe ActiveFedora::RDFDatastream do
|
|
232
175
|
|
233
176
|
it "lets me get to an AF:Base object" do
|
234
177
|
subject.save
|
235
|
-
subject.
|
236
|
-
expect(
|
178
|
+
resource = DummyResource.new(subject.uri)
|
179
|
+
expect(resource.creator.first).to be_kind_of(ActiveFedora::Base)
|
237
180
|
end
|
238
181
|
end
|
239
182
|
|
240
183
|
context "when the object with a relationship is saved" do
|
241
184
|
before do
|
242
185
|
subject.save
|
243
|
-
@object = subject.class.find(subject.id)
|
244
186
|
end
|
245
187
|
|
246
188
|
it "is retrievable" do
|
247
|
-
expect(subject.
|
189
|
+
expect(subject.creator.first.something).to eq ["subbla"]
|
248
190
|
end
|
249
191
|
end
|
250
192
|
|
251
193
|
context "when the object with a relationship is frozen" do
|
252
194
|
before do
|
253
195
|
subject.save
|
254
|
-
@object = subject.class.find(subject.id)
|
255
|
-
@object.freeze
|
256
196
|
subject.freeze
|
257
197
|
end
|
258
198
|
|
259
199
|
it "is retrievable" do
|
260
|
-
expect(subject.
|
200
|
+
expect(subject.creator.first.something).to eq ["subbla"]
|
261
201
|
end
|
262
202
|
end
|
263
203
|
end
|
@@ -1,14 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe ActiveFedora::SolrQueryBuilder do
|
4
|
-
describe "raw_query" do
|
5
|
-
it "generates a raw query clause" do
|
6
|
-
Deprecation.silence(described_class) do
|
7
|
-
expect(described_class.raw_query('id', "my:_ID1_")).to eq '_query_:"{!raw f=id}my:_ID1_"'
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
4
|
describe "construct_query" do
|
13
5
|
it "generates a query clause" do
|
14
6
|
expect(described_class.construct_query('id' => "my:_ID1_")).to eq '_query_:"{!field f=id}my:_ID1_"'
|
@@ -14,12 +14,6 @@ describe ActiveFedora::SolrService do
|
|
14
14
|
expect(RSolr).to receive(:connect).with(read_timeout: 120, open_timeout: 120, url: 'http://localhost:8080/solr')
|
15
15
|
described_class.register.conn
|
16
16
|
end
|
17
|
-
it "accepts host arg into constructor" do
|
18
|
-
expect(RSolr).to receive(:connect).with(read_timeout: 120, open_timeout: 120, url: 'http://fubar')
|
19
|
-
Deprecation.silence(described_class) do
|
20
|
-
described_class.register('http://fubar').conn
|
21
|
-
end
|
22
|
-
end
|
23
17
|
it "clobbers options" do
|
24
18
|
expect(RSolr).to receive(:connect).with(read_timeout: 120, open_timeout: 120, url: 'http://localhost:8080/solr', autocommit: :off, foo: :bar)
|
25
19
|
described_class.register(autocommit: :off, foo: :bar).conn
|
@@ -48,13 +42,6 @@ describe ActiveFedora::SolrService do
|
|
48
42
|
end
|
49
43
|
end
|
50
44
|
|
51
|
-
describe '#construct_query_for_pids' do
|
52
|
-
it "generates a useable solr query from an array of Fedora ids" do
|
53
|
-
expect(Deprecation).to receive(:warn)
|
54
|
-
expect(described_class.construct_query_for_pids(["my:_ID1_", "my:_ID2_", "my:_ID3_"])).to eq '{!terms f=id}my:_ID1_,my:_ID2_,my:_ID3_'
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
45
|
describe "#get" do
|
59
46
|
it "calls solr" do
|
60
47
|
mock_conn = double("Connection")
|
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:
|
4
|
+
version: 10.0.0.beta1
|
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: 2016-05-
|
13
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|
@@ -377,7 +377,6 @@ files:
|
|
377
377
|
- Rakefile
|
378
378
|
- active-fedora.gemspec
|
379
379
|
- config/fedora.yml
|
380
|
-
- config/predicate_mappings.yml
|
381
380
|
- config/service_mappings.yml
|
382
381
|
- config/solr.yml
|
383
382
|
- lib/active-fedora.rb
|
@@ -439,12 +438,9 @@ files:
|
|
439
438
|
- lib/active_fedora/attributes.rb
|
440
439
|
- lib/active_fedora/attributes/active_triple_attribute.rb
|
441
440
|
- lib/active_fedora/attributes/node_config.rb
|
442
|
-
- lib/active_fedora/attributes/om_attribute.rb
|
443
441
|
- lib/active_fedora/attributes/primary_key.rb
|
444
442
|
- lib/active_fedora/attributes/property_builder.rb
|
445
|
-
- lib/active_fedora/attributes/rdf_datastream_attribute.rb
|
446
443
|
- lib/active_fedora/attributes/serializers.rb
|
447
|
-
- lib/active_fedora/attributes/stream_attribute.rb
|
448
444
|
- lib/active_fedora/autosave_association.rb
|
449
445
|
- lib/active_fedora/base.rb
|
450
446
|
- lib/active_fedora/caching_connection.rb
|
@@ -461,7 +457,6 @@ files:
|
|
461
457
|
- lib/active_fedora/core.rb
|
462
458
|
- lib/active_fedora/core/fedora_id_translator.rb
|
463
459
|
- lib/active_fedora/core/fedora_uri_translator.rb
|
464
|
-
- lib/active_fedora/datastream.rb
|
465
460
|
- lib/active_fedora/datastreams.rb
|
466
461
|
- lib/active_fedora/datastreams/nokogiri_datastreams.rb
|
467
462
|
- lib/active_fedora/default_model_mapper.rb
|
@@ -495,7 +490,6 @@ files:
|
|
495
490
|
- lib/active_fedora/loadable_from_json.rb
|
496
491
|
- lib/active_fedora/locale/en.yml
|
497
492
|
- lib/active_fedora/log_subscriber.rb
|
498
|
-
- lib/active_fedora/model.rb
|
499
493
|
- lib/active_fedora/model_classifier.rb
|
500
494
|
- lib/active_fedora/nested_attributes.rb
|
501
495
|
- lib/active_fedora/nom_datastream.rb
|
@@ -508,7 +502,6 @@ files:
|
|
508
502
|
- lib/active_fedora/orders/target_proxy.rb
|
509
503
|
- lib/active_fedora/pathing.rb
|
510
504
|
- lib/active_fedora/persistence.rb
|
511
|
-
- lib/active_fedora/predicates.rb
|
512
505
|
- lib/active_fedora/profile_indexing_service.rb
|
513
506
|
- lib/active_fedora/property.rb
|
514
507
|
- lib/active_fedora/qualified_dublin_core_datastream.rb
|
@@ -546,7 +539,6 @@ files:
|
|
546
539
|
- lib/active_fedora/scoping/default.rb
|
547
540
|
- lib/active_fedora/scoping/named.rb
|
548
541
|
- lib/active_fedora/serialization.rb
|
549
|
-
- lib/active_fedora/simple_datastream.rb
|
550
542
|
- lib/active_fedora/solr_hit.rb
|
551
543
|
- lib/active_fedora/solr_instance_loader.rb
|
552
544
|
- lib/active_fedora/solr_query_builder.rb
|
@@ -624,7 +616,6 @@ files:
|
|
624
616
|
- spec/fixtures/mods_articles/mods_article1.xml
|
625
617
|
- spec/fixtures/rails_root/config/fake_fedora.yml
|
626
618
|
- spec/fixtures/rails_root/config/fedora.yml
|
627
|
-
- spec/fixtures/rails_root/config/predicate_mappings.yml
|
628
619
|
- spec/fixtures/rails_root/config/solr.yml
|
629
620
|
- spec/fixtures/rails_root/config/solr_mappings.yml
|
630
621
|
- spec/fixtures/rails_root/config/solr_mappings_af_0.1.yml
|
@@ -649,7 +640,6 @@ files:
|
|
649
640
|
- spec/integration/directly_contains_one_association_spec.rb
|
650
641
|
- spec/integration/eradicate_spec.rb
|
651
642
|
- spec/integration/fedora_solr_sync_spec.rb
|
652
|
-
- spec/integration/field_to_solr_name_spec.rb
|
653
643
|
- spec/integration/file_fixity_spec.rb
|
654
644
|
- spec/integration/file_spec.rb
|
655
645
|
- spec/integration/generators/fedora_generator_spec.rb
|
@@ -662,7 +652,6 @@ files:
|
|
662
652
|
- spec/integration/indirect_container_spec.rb
|
663
653
|
- spec/integration/json_serialization_spec.rb
|
664
654
|
- spec/integration/marshal_spec.rb
|
665
|
-
- spec/integration/model_spec.rb
|
666
655
|
- spec/integration/nested_attribute_spec.rb
|
667
656
|
- spec/integration/nested_hash_resources_spec.rb
|
668
657
|
- spec/integration/ntriples_datastream_spec.rb
|
@@ -673,6 +662,7 @@ files:
|
|
673
662
|
- spec/integration/relation_delegation_spec.rb
|
674
663
|
- spec/integration/relation_spec.rb
|
675
664
|
- spec/integration/scoped_query_spec.rb
|
665
|
+
- spec/integration/scoping_spec.rb
|
676
666
|
- spec/integration/solr_hit_spec.rb
|
677
667
|
- spec/integration/solr_instance_loader_spec.rb
|
678
668
|
- spec/integration/versionable_spec.rb
|
@@ -694,7 +684,6 @@ files:
|
|
694
684
|
- spec/unit/attributes_spec.rb
|
695
685
|
- spec/unit/base_active_model_spec.rb
|
696
686
|
- spec/unit/base_cma_spec.rb
|
697
|
-
- spec/unit/base_datastream_management_spec.rb
|
698
687
|
- spec/unit/base_extra_spec.rb
|
699
688
|
- spec/unit/base_spec.rb
|
700
689
|
- spec/unit/builder/has_and_belongs_to_many_spec.rb
|
@@ -728,7 +717,6 @@ files:
|
|
728
717
|
- spec/unit/loadable_from_json_spec.rb
|
729
718
|
- spec/unit/logger_spec.rb
|
730
719
|
- spec/unit/model_classifier_spec.rb
|
731
|
-
- spec/unit/model_spec.rb
|
732
720
|
- spec/unit/nom_datastream_spec.rb
|
733
721
|
- spec/unit/ntriples_datastream_spec.rb
|
734
722
|
- spec/unit/om_datastream_spec.rb
|
@@ -738,12 +726,12 @@ files:
|
|
738
726
|
- spec/unit/orders/reflection_spec.rb
|
739
727
|
- spec/unit/pathing_spec.rb
|
740
728
|
- spec/unit/persistence_spec.rb
|
741
|
-
- spec/unit/predicates_spec.rb
|
742
729
|
- spec/unit/property_predicate_spec.rb
|
743
730
|
- spec/unit/property_spec.rb
|
744
731
|
- spec/unit/qualified_dublin_core_datastream_spec.rb
|
745
732
|
- spec/unit/query_result_builder_spec.rb
|
746
733
|
- spec/unit/query_spec.rb
|
734
|
+
- spec/unit/querying_spec.rb
|
747
735
|
- spec/unit/rdf/indexing_service_spec.rb
|
748
736
|
- spec/unit/rdf_datastream_spec.rb
|
749
737
|
- spec/unit/rdf_resource_datastream_spec.rb
|
@@ -757,7 +745,6 @@ files:
|
|
757
745
|
- spec/unit/schema_indexing_strategy_spec.rb
|
758
746
|
- spec/unit/scoping_spec.rb
|
759
747
|
- spec/unit/serializers_spec.rb
|
760
|
-
- spec/unit/simple_datastream_spec.rb
|
761
748
|
- spec/unit/solr_config_options_spec.rb
|
762
749
|
- spec/unit/solr_hit_spec.rb
|
763
750
|
- spec/unit/solr_query_builder_spec.rb
|
@@ -780,9 +767,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
780
767
|
version: '2.0'
|
781
768
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
782
769
|
requirements:
|
783
|
-
- - "
|
770
|
+
- - ">"
|
784
771
|
- !ruby/object:Gem::Version
|
785
|
-
version:
|
772
|
+
version: 1.3.1
|
786
773
|
requirements: []
|
787
774
|
rubyforge_project:
|
788
775
|
rubygems_version: 2.5.1
|