valkyrie_active_fedora 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -1
- data/.travis.yml +5 -9
- data/Gemfile +4 -6
- data/lib/tasks/valkyrie_active_fedora_dev.rake +1 -1
- data/lib/valkyrie_active_fedora.rb +1 -1
- data/lib/valkyrie_active_fedora/base.rb +13 -19
- data/lib/valkyrie_active_fedora/rake_support.rb +0 -3
- data/lib/valkyrie_active_fedora/resource_factory.rb +61 -0
- data/lib/valkyrie_active_fedora/version.rb +1 -2
- data/spec/spec_helper.rb +1 -1
- data/spec/unit/base_spec.rb +8 -6
- data/spec/unit/resource_factory_spec.rb +64 -0
- data/valkyrie_active_fedora.gemspec +2 -4
- metadata +18 -62
- data/lib/generators/valkyrie_active_fedora/config/USAGE +0 -9
- data/lib/generators/valkyrie_active_fedora/config/config_generator.rb +0 -10
- data/lib/generators/valkyrie_active_fedora/config/fedora/fedora_generator.rb +0 -16
- data/lib/generators/valkyrie_active_fedora/config/fedora/templates/.fcrepo_wrapper.yml +0 -4
- data/lib/generators/valkyrie_active_fedora/config/fedora/templates/fcrepo_wrapper_test.yml +0 -4
- data/lib/generators/valkyrie_active_fedora/config/fedora/templates/fedora.yml +0 -15
- data/lib/generators/valkyrie_active_fedora/config/solr/solr_generator.rb +0 -19
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/.solr_wrapper.yml +0 -8
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr.yml +0 -7
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/_rest_managed.json +0 -3
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/admin-extra.html +0 -31
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/elevate.xml +0 -36
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/mapping-ISOLatin1Accent.txt +0 -246
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/protwords.txt +0 -21
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/schema.xml +0 -379
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/scripts.conf +0 -24
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/solrconfig.xml +0 -325
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/spellings.txt +0 -2
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/stopwords.txt +0 -58
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/stopwords_en.txt +0 -58
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/synonyms.txt +0 -31
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example.xsl +0 -132
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example_atom.xsl +0 -67
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example_rss.xsl +0 -66
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/luke.xsl +0 -337
- data/lib/generators/valkyrie_active_fedora/config/solr/templates/solr_wrapper_test.yml +0 -8
- data/lib/generators/valkyrie_active_fedora/model/USAGE +0 -11
- data/lib/generators/valkyrie_active_fedora/model/model_generator.rb +0 -31
- data/lib/generators/valkyrie_active_fedora/model/templates/datastream.rb.erb +0 -32
- data/lib/generators/valkyrie_active_fedora/model/templates/datastream_spec.rb.erb +0 -13
- data/lib/generators/valkyrie_active_fedora/model/templates/model.rb.erb +0 -46
- data/lib/generators/valkyrie_active_fedora/model/templates/model_spec.rb.erb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 031ea02a2856b39b5bb9f39d9cc007f345067ff1e6676a0da258b143fc749252
|
4
|
+
data.tar.gz: 36376f71f46fe742f7356e1464dfd66a56466f759a80c9e75e6912ee84ef456b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 823bdd0d669eb88e583b477032d0b4230100119ea3fb64012ba4461490a0812b7ab91b193baed2f5623426bf76d940f7f7c57e086c9d03b8dd307b35eb3466f5
|
7
|
+
data.tar.gz: dc3c799d74d9382ac3caf53efc05876b6e8bec98a851bf974c93aefab0300ee8c50ecc10ebfa253411e8817f830a80046ac684f405aff4a3a4d846ab6e7f9ca7
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
inherit_gem:
|
2
|
-
|
2
|
+
bixby: bixby_default.yml
|
3
3
|
|
4
4
|
inherit_from: .rubocop_todo.yml
|
5
5
|
|
@@ -26,6 +26,13 @@ Lint/AssignmentInCondition:
|
|
26
26
|
Metrics/LineLength:
|
27
27
|
Enabled: false
|
28
28
|
|
29
|
+
Metrics/BlockLength:
|
30
|
+
ExcludedMethods: ['included']
|
31
|
+
Exclude:
|
32
|
+
- 'valkyrie_active_fedora.gemspec'
|
33
|
+
- 'lib/tasks/*.rake'
|
34
|
+
- 'spec/**/*.rb'
|
35
|
+
|
29
36
|
Metrics/AbcSize:
|
30
37
|
Enabled: false
|
31
38
|
|
data/.travis.yml
CHANGED
@@ -1,15 +1,11 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
3
|
sudo: false
|
4
|
-
rvm: 2.
|
5
|
-
|
6
|
-
|
7
|
-
-
|
8
|
-
|
9
|
-
- env: RAILS_VERSION=5.0.7
|
10
|
-
- env: RAILS_VERSION=5.1.6
|
11
|
-
- rvm: 2.5
|
12
|
-
- env: RAILS_VERSION=5.2.1
|
4
|
+
rvm: 2.5
|
5
|
+
env:
|
6
|
+
matrix:
|
7
|
+
- "RAILS_VERSION=5.1.6"
|
8
|
+
- "RAILS_VERSION=5.0.7"
|
13
9
|
global_env:
|
14
10
|
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
15
11
|
before_install:
|
data/Gemfile
CHANGED
@@ -4,14 +4,12 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gemspec path: File.expand_path('..', __FILE__)
|
6
6
|
|
7
|
+
gem 'activemodel', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
|
7
8
|
gem 'byebug' unless ENV['TRAVIS']
|
9
|
+
gem 'jruby-openssl', platform: :jruby
|
8
10
|
gem 'pry-byebug' unless ENV['CI']
|
9
11
|
|
10
|
-
gem 'activemodel', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
|
11
|
-
|
12
12
|
group :test do
|
13
|
-
gem 'simplecov', require: false
|
14
13
|
gem 'coveralls', require: false
|
15
|
-
|
16
|
-
|
17
|
-
gem 'jruby-openssl', platform: :jruby
|
14
|
+
gem 'simplecov', require: false
|
15
|
+
end
|
@@ -14,7 +14,7 @@ namespace :valkyrie_active_fedora do
|
|
14
14
|
|
15
15
|
YARD::Rake::YardocTask.new(:doc) do |yt|
|
16
16
|
yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
|
17
|
-
[
|
17
|
+
['-', File.join(project_root, 'README.md')]
|
18
18
|
yt.options = ['--output-dir', doc_destination, '--readme', 'README.md']
|
19
19
|
end
|
20
20
|
rescue LoadError
|
@@ -1,39 +1,33 @@
|
|
1
1
|
require 'active_support/descendants_tracker'
|
2
|
-
# require 'active_fedora/errors'
|
3
|
-
# require 'active_fedora/log_subscriber'
|
4
2
|
|
5
3
|
module ValkyrieActiveFedora
|
6
|
-
# This class
|
7
|
-
#
|
8
|
-
# fedora. If you want to represent a fedora object in the ruby
|
9
|
-
# space, this is the class you want to extend.
|
4
|
+
# This class extends ActiveFedora::Base to add in methods that allow
|
5
|
+
# an instance of the class to be converted to a Valkyrie::Resource.
|
10
6
|
#
|
11
7
|
# =The Basics
|
12
|
-
# class Oralhistory <
|
8
|
+
# class Oralhistory < ValkyrieActiveFedora::Base
|
13
9
|
# property :creator, predicate: RDF::Vocab::DC.creator
|
14
10
|
# end
|
15
|
-
#
|
16
|
-
# The above example creates a Fedora object with a property named "creator"
|
17
|
-
#
|
18
|
-
# Attached files defined with +has_subresource+ and iis accessed via the +attached_files+ member hash.
|
19
|
-
#
|
20
11
|
class Base < ActiveFedora::Base
|
21
12
|
def valkyrie_resource
|
22
|
-
|
13
|
+
"Valkyrie::#{self.class}".constantize
|
23
14
|
rescue NameError
|
24
15
|
nil
|
25
16
|
end
|
26
17
|
|
27
18
|
def attributes_including_linked_ids
|
28
19
|
local_attributes = attributes.dup
|
29
|
-
|
30
|
-
id_method
|
31
|
-
next unless self.respond_to? id_method
|
32
|
-
local_attributes.merge!(id_method => self.send(id_method)).with_indifferent_access
|
20
|
+
linked_id_keys.each do |id_method|
|
21
|
+
local_attributes.merge!(id_method => send(id_method)).with_indifferent_access
|
33
22
|
end
|
34
23
|
local_attributes
|
35
24
|
end
|
36
|
-
end
|
37
25
|
|
38
|
-
|
26
|
+
def linked_id_keys
|
27
|
+
@linked_id_keys ||= reflections.keys.map do |key|
|
28
|
+
id_method = "#{key.to_s.singularize}_ids"
|
29
|
+
id_method if respond_to? id_method
|
30
|
+
end.compact
|
31
|
+
end
|
32
|
+
end
|
39
33
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'byebug'
|
2
|
-
|
3
1
|
# Starts a fedora server and a solr server on a random port and then
|
4
2
|
# yields the passed block
|
5
3
|
def with_test_server(&block)
|
@@ -23,7 +21,6 @@ def with_server(environment)
|
|
23
21
|
unless Dir.exist?(solr_config_path)
|
24
22
|
$stderr.puts "Solr configuration not found at #{solr_config_path}. Using ValkyrieActiveFedora defaults"
|
25
23
|
# Otherwise use the configs delivered with ValkyrieActiveFedora.
|
26
|
-
byebug
|
27
24
|
solr_config_path = File.join(File.expand_path("../..", File.dirname(__FILE__)), 'lib', 'generators', 'valkyrie_active_fedora', 'config', 'solr', 'templates', 'solr', 'config')
|
28
25
|
end
|
29
26
|
solr.with_collection(name: "hydra-#{environment}", dir: solr_config_path) do
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ValkyrieActiveFedora
|
4
|
+
# we really want a class var here. maybe we could use a singleton instead?
|
5
|
+
# rubocop:disable Style/ClassVars
|
6
|
+
class ResourceFactory
|
7
|
+
class ResourceClassCache
|
8
|
+
attr_reader :cache
|
9
|
+
|
10
|
+
def initialize
|
11
|
+
@cache = {}
|
12
|
+
end
|
13
|
+
|
14
|
+
def fetch(key)
|
15
|
+
@cache.fetch(key) do
|
16
|
+
@cache[key] = yield
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
@@resource_class_cache = ResourceClassCache.new
|
22
|
+
|
23
|
+
attr_accessor :active_fedora_object
|
24
|
+
|
25
|
+
def initialize(active_fedora_object:)
|
26
|
+
self.active_fedora_object = active_fedora_object
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.for(active_fedora_object)
|
30
|
+
new(active_fedora_object: active_fedora_object).build
|
31
|
+
end
|
32
|
+
|
33
|
+
def build
|
34
|
+
klass = @@resource_class_cache.fetch(active_fedora_object) do
|
35
|
+
# we need a local binding to the object for use in the class scope below
|
36
|
+
active_fedora_local = active_fedora_object
|
37
|
+
|
38
|
+
Class.new(::Valkyrie::Resource) do
|
39
|
+
active_fedora_local.send(:properties).each_key do |property_name|
|
40
|
+
attribute property_name.to_sym, ::Valkyrie::Types::String
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
klass.new(id: active_fedora_object.id, **active_fedora_object.attributes.symbolize_keys)
|
46
|
+
end
|
47
|
+
|
48
|
+
# private
|
49
|
+
#
|
50
|
+
# def attributes_including_linked_ids
|
51
|
+
# local_attributes = attributes.dup
|
52
|
+
# reflections.keys.each do |key|
|
53
|
+
# id_method = "#{key.to_s.singularize}_ids"
|
54
|
+
# next unless self.respond_to? id_method
|
55
|
+
# local_attributes.merge!(id_method => self.send(id_method)).with_indifferent_access
|
56
|
+
# end
|
57
|
+
# local_attributes
|
58
|
+
# end
|
59
|
+
end
|
60
|
+
# rubocop:enable Style/ClassVars
|
61
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -42,7 +42,7 @@ restore_spec_configuration
|
|
42
42
|
require 'active_fedora/cleaner'
|
43
43
|
RSpec.configure do |config|
|
44
44
|
# Stub out test stuff.
|
45
|
-
config.before
|
45
|
+
config.before do
|
46
46
|
begin
|
47
47
|
ActiveFedora::Cleaner.clean!
|
48
48
|
rescue Faraday::ConnectionFailed, RSolr::Error::ConnectionRefused => e
|
data/spec/unit/base_spec.rb
CHANGED
@@ -29,7 +29,7 @@ describe ValkyrieActiveFedora::Base do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
it '
|
32
|
+
it 'returns nil when the Valkyrie version of the class is NOT defined' do
|
33
33
|
expect(foo_history.valkyrie_resource).to eq nil
|
34
34
|
end
|
35
35
|
end
|
@@ -51,8 +51,7 @@ describe ValkyrieActiveFedora::Base do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
let(:library1) { Library.create(id: 'lib1', books: [book1]) }
|
54
|
-
|
55
|
-
let(:book1) { Book.create(id: 'bk1') }
|
54
|
+
let(:book1) { Book.new(id: 'bk1') }
|
56
55
|
|
57
56
|
before do
|
58
57
|
book1.library = library1
|
@@ -60,15 +59,18 @@ describe ValkyrieActiveFedora::Base do
|
|
60
59
|
end
|
61
60
|
|
62
61
|
it "inserts ids of child objects into parent's attributes" do
|
63
|
-
expected_results = {
|
64
|
-
# expect(library1.attributes_including_linked_ids).to eq expected_results
|
62
|
+
expected_results = { 'id' => 'lib1', 'book_ids' => ['bk1'] }
|
65
63
|
expect(library1.reload.attributes_including_linked_ids).to eq expected_results
|
66
64
|
end
|
67
65
|
|
68
66
|
it "inserts ids of parent objects into child's attributes" do
|
69
|
-
expected_results = {
|
67
|
+
expected_results = { 'id' => 'bk1', 'library_id' => 'lib1' }
|
70
68
|
expect(book1.reload.attributes_including_linked_ids).to eq expected_results
|
71
69
|
end
|
70
|
+
|
71
|
+
it "knows the keys of the linked items" do
|
72
|
+
expect(library1.reload.linked_id_keys).to eq(['book_ids'])
|
73
|
+
end
|
72
74
|
end
|
73
75
|
end
|
74
76
|
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
RSpec.describe ValkyrieActiveFedora::ResourceFactory do
|
5
|
+
subject(:factory) { described_class.new(active_fedora_object: book) }
|
6
|
+
|
7
|
+
class BookWithPages < ValkyrieActiveFedora::Base
|
8
|
+
# has_many :pages
|
9
|
+
property :title, predicate: ::RDF::Vocab::DC.title
|
10
|
+
property :contributor, predicate: ::RDF::Vocab::DC.contributor
|
11
|
+
property :description, predicate: ::RDF::Vocab::DC.description
|
12
|
+
end
|
13
|
+
# class Page < ValkyrieActiveFedora::Base
|
14
|
+
# belongs_to :book_with_pages, predicate: ActiveFedora::RDF::Fcrepo::RelsExt.isPartOf
|
15
|
+
# end
|
16
|
+
|
17
|
+
let(:id) { 'moomin123' }
|
18
|
+
let(:book) { BookWithPages.new(id: id, **attributes) }
|
19
|
+
# let(:page1) { Page.new(id: 'pg1') }
|
20
|
+
# let(:page2) { Page.new(id: 'pg2') }
|
21
|
+
|
22
|
+
let(:attributes) do
|
23
|
+
{
|
24
|
+
title: ['fake title'],
|
25
|
+
contributor: ['user1'],
|
26
|
+
description: ['a description']
|
27
|
+
# description: ['a description'],
|
28
|
+
# pages: [page1, page2]
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# TODO: extract to Valkyrie?
|
33
|
+
define :have_a_valkyrie_id_of do |expected_id_str|
|
34
|
+
match do |valkyrie_resource|
|
35
|
+
expect(valkyrie_resource.id).to be_a Valkyrie::ID
|
36
|
+
valkyrie_resource.id.id == expected_id_str
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe '.for' do
|
41
|
+
it 'returns a Valkyrie::Resource' do
|
42
|
+
expect(described_class.for(book)).to be_a Valkyrie::Resource
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe '#build' do
|
47
|
+
it 'returns a Valkyrie::Resource' do
|
48
|
+
expect(factory.build).to be_a Valkyrie::Resource
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'has the id of the active_fedora_object' do
|
52
|
+
expect(factory.build).to have_a_valkyrie_id_of book.id
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'has attributes matching the active_fedora_object' do
|
56
|
+
expect(factory.build)
|
57
|
+
.to have_attributes title: book.title,
|
58
|
+
contributor: book.contributor,
|
59
|
+
description: book.description
|
60
|
+
# description: book.description,
|
61
|
+
# page_ids: [page1.id, page2.id]
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_development_dependency 'active-fedora', '~> 11.0'
|
23
23
|
s.add_development_dependency 'valkyrie'
|
24
24
|
|
25
|
-
|
25
|
+
s.add_development_dependency 'bixby', '~> 1.0.0' # rubocop styleguide
|
26
26
|
s.add_development_dependency 'rails'
|
27
27
|
s.add_development_dependency 'rdoc'
|
28
28
|
s.add_development_dependency 'yard'
|
@@ -33,12 +33,10 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.add_development_dependency 'rspec-its'
|
34
34
|
s.add_development_dependency 'equivalent-xml'
|
35
35
|
s.add_development_dependency 'simplecov', '~> 0.8'
|
36
|
-
s.add_development_dependency 'rubocop', '~> 0.56.0'
|
37
|
-
s.add_development_dependency 'rubocop-rspec', '~> 1.12.0'
|
38
36
|
|
39
37
|
s.files = `git ls-files`.split("\n")
|
40
38
|
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
41
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
39
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
42
40
|
s.extra_rdoc_files = [
|
43
41
|
'LICENSE',
|
44
42
|
'README.md'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valkyrie_active_fedora
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- E. Lynette Rayle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bixby
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.0.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.0.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rails
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,34 +206,6 @@ dependencies:
|
|
192
206
|
- - "~>"
|
193
207
|
- !ruby/object:Gem::Version
|
194
208
|
version: '0.8'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: rubocop
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - "~>"
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: 0.56.0
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - "~>"
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 0.56.0
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: rubocop-rspec
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 1.12.0
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 1.12.0
|
223
209
|
description: A rails engine to extend ActiveFedora gem to play nicely with Valkyrie
|
224
210
|
data mapper gem
|
225
211
|
email:
|
@@ -243,47 +229,17 @@ files:
|
|
243
229
|
- config/fedora.yml
|
244
230
|
- config/service_mappings.yml
|
245
231
|
- config/solr.yml
|
246
|
-
- lib/generators/valkyrie_active_fedora/config/USAGE
|
247
|
-
- lib/generators/valkyrie_active_fedora/config/config_generator.rb
|
248
|
-
- lib/generators/valkyrie_active_fedora/config/fedora/fedora_generator.rb
|
249
|
-
- lib/generators/valkyrie_active_fedora/config/fedora/templates/.fcrepo_wrapper.yml
|
250
|
-
- lib/generators/valkyrie_active_fedora/config/fedora/templates/fcrepo_wrapper_test.yml
|
251
|
-
- lib/generators/valkyrie_active_fedora/config/fedora/templates/fedora.yml
|
252
|
-
- lib/generators/valkyrie_active_fedora/config/solr/solr_generator.rb
|
253
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/.solr_wrapper.yml
|
254
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr.yml
|
255
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/_rest_managed.json
|
256
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/admin-extra.html
|
257
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/elevate.xml
|
258
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/mapping-ISOLatin1Accent.txt
|
259
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/protwords.txt
|
260
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/schema.xml
|
261
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/scripts.conf
|
262
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/solrconfig.xml
|
263
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/spellings.txt
|
264
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/stopwords.txt
|
265
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/stopwords_en.txt
|
266
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/synonyms.txt
|
267
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example.xsl
|
268
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example_atom.xsl
|
269
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/example_rss.xsl
|
270
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr/config/xslt/luke.xsl
|
271
|
-
- lib/generators/valkyrie_active_fedora/config/solr/templates/solr_wrapper_test.yml
|
272
|
-
- lib/generators/valkyrie_active_fedora/model/USAGE
|
273
|
-
- lib/generators/valkyrie_active_fedora/model/model_generator.rb
|
274
|
-
- lib/generators/valkyrie_active_fedora/model/templates/datastream.rb.erb
|
275
|
-
- lib/generators/valkyrie_active_fedora/model/templates/datastream_spec.rb.erb
|
276
|
-
- lib/generators/valkyrie_active_fedora/model/templates/model.rb.erb
|
277
|
-
- lib/generators/valkyrie_active_fedora/model/templates/model_spec.rb.erb
|
278
232
|
- lib/tasks/valkyrie_active_fedora_dev.rake
|
279
233
|
- lib/valkyrie_active_fedora.rb
|
280
234
|
- lib/valkyrie_active_fedora/base.rb
|
281
235
|
- lib/valkyrie_active_fedora/rake_support.rb
|
236
|
+
- lib/valkyrie_active_fedora/resource_factory.rb
|
282
237
|
- lib/valkyrie_active_fedora/version.rb
|
283
238
|
- spec/.gitignore
|
284
239
|
- spec/rails_helper.rb
|
285
240
|
- spec/spec_helper.rb
|
286
241
|
- spec/unit/base_spec.rb
|
242
|
+
- spec/unit/resource_factory_spec.rb
|
287
243
|
- valkyrie_active_fedora.gemspec
|
288
244
|
homepage: http://github.com/samvera-labs/valkyrie_active_fedora
|
289
245
|
licenses:
|