valkyrie 0.1.0 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ctags +2 -0
- data/.rubocop.yml +5 -0
- data/.rubocop_todo.yml +3 -0
- data/CHANGELOG.md +43 -0
- data/Gemfile +0 -4
- data/LICENSE +15 -0
- data/README.md +13 -8
- data/Rakefile +15 -1
- data/bin/jetty_wait +14 -0
- data/bin/rspec +29 -0
- data/browserslist +3 -0
- data/circle.yml +17 -0
- data/config/fedora.yml +10 -0
- data/db/migrate/20161007101725_create_orm_resources.rb +9 -1
- data/db/migrate/20171011224121_create_path_gin_index.rb +6 -0
- data/db/migrate/20171204224121_create_internal_resource_index.rb +6 -0
- data/db/migrate/20180212092225_create_updated_at_index.rb +6 -0
- data/lib/generators/valkyrie/templates/resource_spec.rb.erb +1 -1
- data/lib/valkyrie.rb +1 -7
- data/lib/valkyrie/change_set.rb +21 -7
- data/lib/valkyrie/engine.rb +2 -0
- data/lib/valkyrie/id.rb +1 -0
- data/lib/valkyrie/indexers/access_controls_indexer.rb +50 -6
- data/lib/valkyrie/metadata_adapter.rb +29 -1
- data/lib/valkyrie/persistence.rb +27 -0
- data/lib/valkyrie/persistence/buffered_persister.rb +17 -1
- data/lib/valkyrie/persistence/composite_persister.rb +14 -2
- data/lib/valkyrie/persistence/custom_query_container.rb +63 -0
- data/lib/valkyrie/persistence/delete_tracking_buffer.rb +8 -0
- data/lib/valkyrie/persistence/fedora.rb +3 -0
- data/lib/valkyrie/persistence/fedora/list_node.rb +5 -2
- data/lib/valkyrie/persistence/fedora/metadata_adapter.rb +13 -11
- data/lib/valkyrie/persistence/fedora/ordered_list.rb +2 -2
- data/lib/valkyrie/persistence/fedora/ordered_reader.rb +3 -2
- data/lib/valkyrie/persistence/fedora/permissive_schema.rb +75 -0
- data/lib/valkyrie/persistence/fedora/persister.rb +22 -0
- data/lib/valkyrie/persistence/fedora/persister/model_converter.rb +110 -25
- data/lib/valkyrie/persistence/fedora/persister/orm_converter.rb +49 -17
- data/lib/valkyrie/persistence/fedora/persister/resource_factory.rb +2 -0
- data/lib/valkyrie/persistence/fedora/query_service.rb +46 -3
- data/lib/valkyrie/persistence/memory.rb +5 -0
- data/lib/valkyrie/persistence/memory/metadata_adapter.rb +6 -1
- data/lib/valkyrie/persistence/memory/persister.rb +19 -1
- data/lib/valkyrie/persistence/memory/query_service.rb +49 -8
- data/lib/valkyrie/persistence/postgres.rb +2 -0
- data/lib/valkyrie/persistence/postgres/metadata_adapter.rb +8 -1
- data/lib/valkyrie/persistence/postgres/orm.rb +1 -0
- data/lib/valkyrie/persistence/postgres/orm/resource.rb +12 -0
- data/lib/valkyrie/persistence/postgres/orm_converter.rb +99 -74
- data/lib/valkyrie/persistence/postgres/persister.rb +16 -0
- data/lib/valkyrie/persistence/postgres/query_service.rb +94 -6
- data/lib/valkyrie/persistence/postgres/resource_converter.rb +3 -1
- data/lib/valkyrie/persistence/postgres/resource_factory.rb +5 -5
- data/lib/valkyrie/persistence/solr.rb +2 -0
- data/lib/valkyrie/persistence/solr/composite_indexer.rb +29 -0
- data/lib/valkyrie/persistence/solr/metadata_adapter.rb +26 -1
- data/lib/valkyrie/persistence/solr/model_converter.rb +38 -8
- data/lib/valkyrie/persistence/solr/orm_converter.rb +43 -20
- data/lib/valkyrie/persistence/solr/persister.rb +16 -0
- data/lib/valkyrie/persistence/solr/queries.rb +3 -0
- data/lib/valkyrie/persistence/solr/queries/default_paginator.rb +2 -0
- data/lib/valkyrie/persistence/solr/queries/find_all_query.rb +3 -1
- data/lib/valkyrie/persistence/solr/queries/find_by_id_query.rb +4 -2
- data/lib/valkyrie/persistence/solr/queries/find_inverse_references_query.rb +2 -0
- data/lib/valkyrie/persistence/solr/queries/find_many_by_ids_query.rb +21 -0
- data/lib/valkyrie/persistence/solr/queries/find_members_query.rb +13 -5
- data/lib/valkyrie/persistence/solr/queries/find_references_query.rb +7 -3
- data/lib/valkyrie/persistence/solr/query_service.rb +30 -2
- data/lib/valkyrie/persistence/solr/repository.rb +14 -2
- data/lib/valkyrie/persistence/solr/resource_factory.rb +3 -1
- data/lib/valkyrie/resource.rb +11 -4
- data/lib/valkyrie/resource/access_controls.rb +13 -0
- data/lib/valkyrie/specs/shared_specs.rb +1 -2
- data/lib/valkyrie/specs/shared_specs/change_set.rb +75 -0
- data/lib/valkyrie/specs/shared_specs/metadata_adapter.rb +3 -0
- data/lib/valkyrie/specs/shared_specs/persister.rb +145 -15
- data/lib/valkyrie/specs/shared_specs/queries.rb +153 -27
- data/lib/valkyrie/specs/shared_specs/storage_adapter.rb +8 -3
- data/lib/valkyrie/storage.rb +29 -0
- data/lib/valkyrie/storage/disk.rb +17 -5
- data/lib/valkyrie/storage/fedora.rb +14 -1
- data/lib/valkyrie/storage/memory.rb +15 -2
- data/lib/valkyrie/storage_adapter.rb +26 -4
- data/lib/valkyrie/types.rb +65 -7
- data/lib/valkyrie/version.rb +1 -1
- data/solr/config/_rest_managed.json +3 -0
- data/solr/config/admin-extra.html +31 -0
- data/solr/config/elevate.xml +36 -0
- data/solr/config/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/config/protwords.txt +21 -0
- data/solr/config/schema.xml +366 -0
- data/solr/config/scripts.conf +24 -0
- data/solr/config/solrconfig.xml +322 -0
- data/solr/config/spellings.txt +2 -0
- data/solr/config/stopwords.txt +58 -0
- data/solr/config/stopwords_en.txt +58 -0
- data/solr/config/synonyms.txt +31 -0
- data/solr/config/xslt/example.xsl +132 -0
- data/solr/config/xslt/example_atom.xsl +67 -0
- data/solr/config/xslt/example_rss.xsl +66 -0
- data/solr/config/xslt/luke.xsl +337 -0
- data/solr/solr.xml +35 -0
- data/tasks/dev.rake +66 -0
- data/valkyrie.gemspec +6 -6
- metadata +58 -63
- data/lib/valkyrie/decorators/decorator_list.rb +0 -15
- data/lib/valkyrie/decorators/decorator_with_arguments.rb +0 -14
- data/lib/valkyrie/derivative_service.rb +0 -42
- data/lib/valkyrie/file_characterization_service.rb +0 -42
- data/lib/valkyrie/local_file_service.rb +0 -11
- data/lib/valkyrie/persist_derivatives.rb +0 -29
- data/lib/valkyrie/persistence/postgres/queries.rb +0 -8
- data/lib/valkyrie/persistence/postgres/queries/find_inverse_references_query.rb +0 -31
- data/lib/valkyrie/persistence/postgres/queries/find_members_query.rb +0 -33
- data/lib/valkyrie/persistence/postgres/queries/find_references_query.rb +0 -33
- data/lib/valkyrie/specs/shared_specs/derivative_service.rb +0 -30
- data/lib/valkyrie/specs/shared_specs/file_characterization_service.rb +0 -33
data/solr/solr.xml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<!--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
-->
|
18
|
+
|
19
|
+
<!--
|
20
|
+
All (relative) paths are relative to the installation path
|
21
|
+
|
22
|
+
persistent: Save changes made via the API to this file
|
23
|
+
sharedLib: path to a lib directory that will be shared across all cores
|
24
|
+
-->
|
25
|
+
<solr persistent="false" sharedLib="lib">
|
26
|
+
|
27
|
+
<!--
|
28
|
+
adminPath: RequestHandler path to manage cores.
|
29
|
+
If 'null' (or absent), cores will not be manageable via REST
|
30
|
+
-->
|
31
|
+
<cores adminPath="/admin/cores" defaultCoreName="development">
|
32
|
+
<core name="development" instanceDir="development-core" />
|
33
|
+
<core name="test" instanceDir="test-core" />
|
34
|
+
</cores>
|
35
|
+
</solr>
|
data/tasks/dev.rake
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
namespace :server do
|
4
|
+
desc "Start solr and fedora servers for testing"
|
5
|
+
task :test do
|
6
|
+
require 'solr_wrapper'
|
7
|
+
require 'fcrepo_wrapper'
|
8
|
+
SolrWrapper.wrap(shared_solr_opts.merge(port: 8984, instance_dir: 'tmp/blacklight-core-test')) do |solr|
|
9
|
+
solr.with_collection(name: "blacklight-core-test", dir: Pathname.new(__dir__).join("..", "solr", "config").to_s) do
|
10
|
+
SolrWrapper.wrap(shared_solr_opts.merge(port: 8985, instance_dir: 'tmp/hydra-test')) do |solr2|
|
11
|
+
solr2.with_collection(name: "hydra-test", dir: Pathname.new(__dir__).join("..", "solr", "config").to_s) do
|
12
|
+
FcrepoWrapper.wrap(shared_fedora_opts.merge(port: 8988, fcrepo_home_dir: "tmp/fcrepo4-test-data")) do |_fcrepo|
|
13
|
+
puts "Setup two solr servers & Fedora"
|
14
|
+
loop do
|
15
|
+
sleep(1)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "Cleanup test servers"
|
25
|
+
task :clean_test do
|
26
|
+
require 'solr_wrapper'
|
27
|
+
require 'fcrepo_wrapper'
|
28
|
+
SolrWrapper.instance(shared_solr_opts.merge(port: 8984, instance_dir: 'tmp/blacklight-core-test')).remove_instance_dir!
|
29
|
+
SolrWrapper.instance(shared_solr_opts.merge(port: 8985, instance_dir: 'tmp/hydra-test')).remove_instance_dir!
|
30
|
+
FcrepoWrapper.default_instance(shared_fedora_opts.merge(port: 8988, fcrepo_home_dir: "tmp/fcrepo4-test-data")).remove_instance_dir!
|
31
|
+
puts "Cleaned up test solr & fedora servers."
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Start solr and fedora servers for development"
|
35
|
+
task :development do
|
36
|
+
require 'solr_wrapper'
|
37
|
+
require 'fcrepo_wrapper'
|
38
|
+
|
39
|
+
SolrWrapper.wrap(shared_solr_opts.merge(port: 8983, instance_dir: 'tmp/blacklight-core')) do |solr|
|
40
|
+
solr.with_collection(name: "blacklight-core", dir: Pathname.new(__dir__).join("..", "solr", "config").to_s) do
|
41
|
+
SolrWrapper.wrap(shared_solr_opts.merge(port: 8987, instance_dir: 'tmp/hydra-dev')) do |solr2|
|
42
|
+
solr2.with_collection(name: "hydra-dev", dir: Pathname.new(__dir__).join("..", "solr", "config").to_s) do
|
43
|
+
FcrepoWrapper.wrap(shared_fedora_opts.merge(port: 8986, fcrepo_home_dir: "fcrepo4-dev-data")) do |_fcrepo|
|
44
|
+
puts "Setup two solr servers & Fedora"
|
45
|
+
loop do
|
46
|
+
sleep(1)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def shared_solr_opts
|
56
|
+
opts = { managed: true, verbose: true, persist: false, download_dir: "tmp" }
|
57
|
+
opts[:version] = ENV['SOLR_VERSION'] if ENV['SOLR_VERSION']
|
58
|
+
opts
|
59
|
+
end
|
60
|
+
|
61
|
+
def shared_fedora_opts
|
62
|
+
opts = { managed: true, verbose: true, enable_jms: false, download_dir: "tmp" }
|
63
|
+
opts[:version] = ENV['FCREPO_VERSION'] if ENV['FCREPO_VERSION']
|
64
|
+
opts
|
65
|
+
end
|
66
|
+
end
|
data/valkyrie.gemspec
CHANGED
@@ -27,15 +27,15 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency 'active-fedora'
|
28
28
|
spec.add_dependency 'activesupport'
|
29
29
|
spec.add_dependency 'activerecord'
|
30
|
+
spec.add_dependency 'railties' # To use generators and engines
|
30
31
|
spec.add_dependency 'reform'
|
31
32
|
spec.add_dependency 'reform-rails'
|
32
|
-
|
33
|
+
# pg 1.0 is not compatable with Rails 5 yet.
|
34
|
+
# https://stackoverflow.com/a/48201362
|
35
|
+
spec.add_dependency 'pg', '< 1.0'
|
33
36
|
spec.add_dependency 'json-ld'
|
34
37
|
spec.add_dependency 'json'
|
35
38
|
spec.add_dependency 'active-triples'
|
36
|
-
spec.add_dependency 'hydra-access-controls'
|
37
|
-
spec.add_dependency 'hydra-derivatives'
|
38
|
-
spec.add_dependency 'ruby_tika_app'
|
39
39
|
|
40
40
|
spec.add_development_dependency "bundler", "~> 1.13"
|
41
41
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -46,7 +46,7 @@ Gem::Specification.new do |spec|
|
|
46
46
|
spec.add_development_dependency "simplecov"
|
47
47
|
spec.add_development_dependency "coveralls"
|
48
48
|
spec.add_development_dependency "bixby"
|
49
|
-
spec.add_development_dependency 'rubocop', '~> 0.48.0'
|
50
|
-
spec.add_development_dependency 'rubocop-rails'
|
51
49
|
spec.add_development_dependency 'yard'
|
50
|
+
spec.add_development_dependency 'solr_wrapper'
|
51
|
+
spec.add_development_dependency 'fcrepo_wrapper'
|
52
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valkyrie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trey Pendragon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -123,35 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: reform-rails
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: pg
|
126
|
+
name: railties
|
155
127
|
requirement: !ruby/object:Gem::Requirement
|
156
128
|
requirements:
|
157
129
|
- - ">="
|
@@ -165,7 +137,7 @@ dependencies:
|
|
165
137
|
- !ruby/object:Gem::Version
|
166
138
|
version: '0'
|
167
139
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
140
|
+
name: reform
|
169
141
|
requirement: !ruby/object:Gem::Requirement
|
170
142
|
requirements:
|
171
143
|
- - ">="
|
@@ -179,7 +151,7 @@ dependencies:
|
|
179
151
|
- !ruby/object:Gem::Version
|
180
152
|
version: '0'
|
181
153
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
154
|
+
name: reform-rails
|
183
155
|
requirement: !ruby/object:Gem::Requirement
|
184
156
|
requirements:
|
185
157
|
- - ">="
|
@@ -193,21 +165,21 @@ dependencies:
|
|
193
165
|
- !ruby/object:Gem::Version
|
194
166
|
version: '0'
|
195
167
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
168
|
+
name: pg
|
197
169
|
requirement: !ruby/object:Gem::Requirement
|
198
170
|
requirements:
|
199
|
-
- - "
|
171
|
+
- - "<"
|
200
172
|
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
173
|
+
version: '1.0'
|
202
174
|
type: :runtime
|
203
175
|
prerelease: false
|
204
176
|
version_requirements: !ruby/object:Gem::Requirement
|
205
177
|
requirements:
|
206
|
-
- - "
|
178
|
+
- - "<"
|
207
179
|
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
180
|
+
version: '1.0'
|
209
181
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
182
|
+
name: json-ld
|
211
183
|
requirement: !ruby/object:Gem::Requirement
|
212
184
|
requirements:
|
213
185
|
- - ">="
|
@@ -221,7 +193,7 @@ dependencies:
|
|
221
193
|
- !ruby/object:Gem::Version
|
222
194
|
version: '0'
|
223
195
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
196
|
+
name: json
|
225
197
|
requirement: !ruby/object:Gem::Requirement
|
226
198
|
requirements:
|
227
199
|
- - ">="
|
@@ -235,7 +207,7 @@ dependencies:
|
|
235
207
|
- !ruby/object:Gem::Version
|
236
208
|
version: '0'
|
237
209
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
210
|
+
name: active-triples
|
239
211
|
requirement: !ruby/object:Gem::Requirement
|
240
212
|
requirements:
|
241
213
|
- - ">="
|
@@ -375,21 +347,21 @@ dependencies:
|
|
375
347
|
- !ruby/object:Gem::Version
|
376
348
|
version: '0'
|
377
349
|
- !ruby/object:Gem::Dependency
|
378
|
-
name:
|
350
|
+
name: yard
|
379
351
|
requirement: !ruby/object:Gem::Requirement
|
380
352
|
requirements:
|
381
|
-
- - "
|
353
|
+
- - ">="
|
382
354
|
- !ruby/object:Gem::Version
|
383
|
-
version: 0
|
355
|
+
version: '0'
|
384
356
|
type: :development
|
385
357
|
prerelease: false
|
386
358
|
version_requirements: !ruby/object:Gem::Requirement
|
387
359
|
requirements:
|
388
|
-
- - "
|
360
|
+
- - ">="
|
389
361
|
- !ruby/object:Gem::Version
|
390
|
-
version: 0
|
362
|
+
version: '0'
|
391
363
|
- !ruby/object:Gem::Dependency
|
392
|
-
name:
|
364
|
+
name: solr_wrapper
|
393
365
|
requirement: !ruby/object:Gem::Requirement
|
394
366
|
requirements:
|
395
367
|
- - ">="
|
@@ -403,7 +375,7 @@ dependencies:
|
|
403
375
|
- !ruby/object:Gem::Version
|
404
376
|
version: '0'
|
405
377
|
- !ruby/object:Gem::Dependency
|
406
|
-
name:
|
378
|
+
name: fcrepo_wrapper
|
407
379
|
requirement: !ruby/object:Gem::Requirement
|
408
380
|
requirements:
|
409
381
|
- - ">="
|
@@ -423,20 +395,32 @@ executables: []
|
|
423
395
|
extensions: []
|
424
396
|
extra_rdoc_files: []
|
425
397
|
files:
|
398
|
+
- ".ctags"
|
426
399
|
- ".gitignore"
|
427
400
|
- ".rspec"
|
428
401
|
- ".rubocop.yml"
|
402
|
+
- ".rubocop_todo.yml"
|
403
|
+
- CHANGELOG.md
|
429
404
|
- Gemfile
|
405
|
+
- LICENSE
|
430
406
|
- README.md
|
431
407
|
- Rakefile
|
432
408
|
- bin/console
|
409
|
+
- bin/jetty_wait
|
410
|
+
- bin/rspec
|
433
411
|
- bin/setup
|
412
|
+
- browserslist
|
413
|
+
- circle.yml
|
414
|
+
- config/fedora.yml
|
434
415
|
- config/valkyrie.yml
|
435
416
|
- db/config.yml
|
436
417
|
- db/migrate/20160111215816_enable_uuid_extension.rb
|
437
418
|
- db/migrate/20161007101725_create_orm_resources.rb
|
438
419
|
- db/migrate/20170124135846_add_model_type_to_orm_resources.rb
|
439
420
|
- db/migrate/20170531004548_change_model_type_to_internal_model.rb
|
421
|
+
- db/migrate/20171011224121_create_path_gin_index.rb
|
422
|
+
- db/migrate/20171204224121_create_internal_resource_index.rb
|
423
|
+
- db/migrate/20180212092225_create_updated_at_index.rb
|
440
424
|
- db/schema.rb
|
441
425
|
- db/seeds.rb
|
442
426
|
- lib/config/database_connection.rb
|
@@ -446,25 +430,21 @@ files:
|
|
446
430
|
- lib/valkyrie.rb
|
447
431
|
- lib/valkyrie/adapter_container.rb
|
448
432
|
- lib/valkyrie/change_set.rb
|
449
|
-
- lib/valkyrie/decorators/decorator_list.rb
|
450
|
-
- lib/valkyrie/decorators/decorator_with_arguments.rb
|
451
|
-
- lib/valkyrie/derivative_service.rb
|
452
433
|
- lib/valkyrie/engine.rb
|
453
|
-
- lib/valkyrie/file_characterization_service.rb
|
454
434
|
- lib/valkyrie/id.rb
|
455
435
|
- lib/valkyrie/indexers/access_controls_indexer.rb
|
456
|
-
- lib/valkyrie/local_file_service.rb
|
457
436
|
- lib/valkyrie/metadata_adapter.rb
|
458
|
-
- lib/valkyrie/persist_derivatives.rb
|
459
437
|
- lib/valkyrie/persistence.rb
|
460
438
|
- lib/valkyrie/persistence/buffered_persister.rb
|
461
439
|
- lib/valkyrie/persistence/composite_persister.rb
|
440
|
+
- lib/valkyrie/persistence/custom_query_container.rb
|
462
441
|
- lib/valkyrie/persistence/delete_tracking_buffer.rb
|
463
442
|
- lib/valkyrie/persistence/fedora.rb
|
464
443
|
- lib/valkyrie/persistence/fedora/list_node.rb
|
465
444
|
- lib/valkyrie/persistence/fedora/metadata_adapter.rb
|
466
445
|
- lib/valkyrie/persistence/fedora/ordered_list.rb
|
467
446
|
- lib/valkyrie/persistence/fedora/ordered_reader.rb
|
447
|
+
- lib/valkyrie/persistence/fedora/permissive_schema.rb
|
468
448
|
- lib/valkyrie/persistence/fedora/persister.rb
|
469
449
|
- lib/valkyrie/persistence/fedora/persister/model_converter.rb
|
470
450
|
- lib/valkyrie/persistence/fedora/persister/orm_converter.rb
|
@@ -480,14 +460,11 @@ files:
|
|
480
460
|
- lib/valkyrie/persistence/postgres/orm/resource.rb
|
481
461
|
- lib/valkyrie/persistence/postgres/orm_converter.rb
|
482
462
|
- lib/valkyrie/persistence/postgres/persister.rb
|
483
|
-
- lib/valkyrie/persistence/postgres/queries.rb
|
484
|
-
- lib/valkyrie/persistence/postgres/queries/find_inverse_references_query.rb
|
485
|
-
- lib/valkyrie/persistence/postgres/queries/find_members_query.rb
|
486
|
-
- lib/valkyrie/persistence/postgres/queries/find_references_query.rb
|
487
463
|
- lib/valkyrie/persistence/postgres/query_service.rb
|
488
464
|
- lib/valkyrie/persistence/postgres/resource_converter.rb
|
489
465
|
- lib/valkyrie/persistence/postgres/resource_factory.rb
|
490
466
|
- lib/valkyrie/persistence/solr.rb
|
467
|
+
- lib/valkyrie/persistence/solr/composite_indexer.rb
|
491
468
|
- lib/valkyrie/persistence/solr/metadata_adapter.rb
|
492
469
|
- lib/valkyrie/persistence/solr/model_converter.rb
|
493
470
|
- lib/valkyrie/persistence/solr/orm_converter.rb
|
@@ -497,6 +474,7 @@ files:
|
|
497
474
|
- lib/valkyrie/persistence/solr/queries/find_all_query.rb
|
498
475
|
- lib/valkyrie/persistence/solr/queries/find_by_id_query.rb
|
499
476
|
- lib/valkyrie/persistence/solr/queries/find_inverse_references_query.rb
|
477
|
+
- lib/valkyrie/persistence/solr/queries/find_many_by_ids_query.rb
|
500
478
|
- lib/valkyrie/persistence/solr/queries/find_members_query.rb
|
501
479
|
- lib/valkyrie/persistence/solr/queries/find_references_query.rb
|
502
480
|
- lib/valkyrie/persistence/solr/query_service.rb
|
@@ -506,10 +484,9 @@ files:
|
|
506
484
|
- lib/valkyrie/resource.rb
|
507
485
|
- lib/valkyrie/resource/access_controls.rb
|
508
486
|
- lib/valkyrie/specs/shared_specs.rb
|
487
|
+
- lib/valkyrie/specs/shared_specs/change_set.rb
|
509
488
|
- lib/valkyrie/specs/shared_specs/change_set_persister.rb
|
510
|
-
- lib/valkyrie/specs/shared_specs/derivative_service.rb
|
511
489
|
- lib/valkyrie/specs/shared_specs/file.rb
|
512
|
-
- lib/valkyrie/specs/shared_specs/file_characterization_service.rb
|
513
490
|
- lib/valkyrie/specs/shared_specs/metadata_adapter.rb
|
514
491
|
- lib/valkyrie/specs/shared_specs/persister.rb
|
515
492
|
- lib/valkyrie/specs/shared_specs/queries.rb
|
@@ -524,6 +501,24 @@ files:
|
|
524
501
|
- lib/valkyrie/value_mapper.rb
|
525
502
|
- lib/valkyrie/version.rb
|
526
503
|
- lib/valkyrie/vocab/pcdm_use.rb
|
504
|
+
- solr/config/_rest_managed.json
|
505
|
+
- solr/config/admin-extra.html
|
506
|
+
- solr/config/elevate.xml
|
507
|
+
- solr/config/mapping-ISOLatin1Accent.txt
|
508
|
+
- solr/config/protwords.txt
|
509
|
+
- solr/config/schema.xml
|
510
|
+
- solr/config/scripts.conf
|
511
|
+
- solr/config/solrconfig.xml
|
512
|
+
- solr/config/spellings.txt
|
513
|
+
- solr/config/stopwords.txt
|
514
|
+
- solr/config/stopwords_en.txt
|
515
|
+
- solr/config/synonyms.txt
|
516
|
+
- solr/config/xslt/example.xsl
|
517
|
+
- solr/config/xslt/example_atom.xsl
|
518
|
+
- solr/config/xslt/example_rss.xsl
|
519
|
+
- solr/config/xslt/luke.xsl
|
520
|
+
- solr/solr.xml
|
521
|
+
- tasks/dev.rake
|
527
522
|
- valkyrie.gemspec
|
528
523
|
homepage:
|
529
524
|
licenses: []
|
@@ -539,12 +534,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
539
534
|
version: '0'
|
540
535
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
541
536
|
requirements:
|
542
|
-
- - "
|
537
|
+
- - ">"
|
543
538
|
- !ruby/object:Gem::Version
|
544
|
-
version:
|
539
|
+
version: 1.3.1
|
545
540
|
requirements: []
|
546
541
|
rubyforge_project:
|
547
|
-
rubygems_version: 2.
|
542
|
+
rubygems_version: 2.7.4
|
548
543
|
signing_key:
|
549
544
|
specification_version: 4
|
550
545
|
summary: An ORM using the Data Mapper pattern, specifically built to solve Digital
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
module Valkyrie::Decorators
|
3
|
-
class DecoratorList
|
4
|
-
attr_reader :decorators
|
5
|
-
def initialize(*decorators)
|
6
|
-
@decorators = decorators
|
7
|
-
end
|
8
|
-
|
9
|
-
def new(undecorated_object)
|
10
|
-
decorators.inject(undecorated_object) do |obj, decorator|
|
11
|
-
decorator.new(obj)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
module Valkyrie::Decorators
|
3
|
-
class DecoratorWithArguments
|
4
|
-
attr_reader :decorator, :args
|
5
|
-
def initialize(decorator, *args)
|
6
|
-
@decorator = decorator
|
7
|
-
@args = args
|
8
|
-
end
|
9
|
-
|
10
|
-
def new(item)
|
11
|
-
decorator.new(item, *args)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|