blacklight-spotlight 0.20.3 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/concerns/spotlight/controller.rb +1 -2
- data/app/controllers/spotlight/catalog_controller.rb +1 -1
- data/app/controllers/spotlight/concerns/user_invitable.rb +1 -1
- data/app/controllers/spotlight/roles_controller.rb +1 -1
- data/app/controllers/spotlight/searches_controller.rb +5 -1
- data/app/models/concerns/spotlight/ar_light.rb +8 -0
- data/app/models/concerns/spotlight/solr_document.rb +0 -1
- data/app/models/spotlight/blacklight_configuration.rb +3 -1
- data/app/models/spotlight/filter.rb +12 -1
- data/app/models/spotlight/resource.rb +13 -2
- data/app/models/spotlight/search.rb +4 -0
- data/app/uploaders/spotlight/attachment_uploader.rb +2 -2
- data/app/uploaders/spotlight/avatar_uploader.rb +4 -0
- data/app/uploaders/spotlight/featured_image_uploader.rb +4 -0
- data/app/uploaders/spotlight/item_uploader.rb +4 -0
- data/app/uploaders/spotlight/masthead_uploader.rb +4 -0
- data/app/views/spotlight/pages/_view_type_group.html.erb +1 -1
- data/config/locales/spotlight.en.yml +3 -1
- data/lib/generators/spotlight/install_generator.rb +3 -3
- data/lib/generators/spotlight/templates/solr/config/schema.xml +347 -0
- data/lib/generators/spotlight/templates/solr/config/solrconfig.xml +163 -0
- data/lib/spotlight/engine.rb +9 -1
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/spotlight/admin_users_controller_spec.rb +1 -1
- data/spec/controllers/spotlight/appearances_controller_spec.rb +20 -8
- data/spec/controllers/spotlight/roles_controller_spec.rb +2 -2
- data/spec/controllers/spotlight/solr_controller_spec.rb +12 -4
- data/spec/models/spotlight/resource_spec.rb +18 -0
- data/spec/spec_helper.rb +8 -1
- data/spec/support/helpers/controller_level_helpers.rb +12 -0
- data/spec/support/views/test_view_helpers.rb +4 -0
- data/spec/test_app_templates/Gemfile.extra +2 -0
- metadata +41 -19
- data/lib/generators/spotlight/templates/solr_conf/conf/schema.xml +0 -159
- data/lib/generators/spotlight/templates/solr_conf/conf/solrconfig.xml +0 -87
@@ -0,0 +1,163 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<config>
|
3
|
+
<!-- NOTE: various comments and unused configuration possibilities have been purged
|
4
|
+
from this file. Please refer to http://wiki.apache.org/solr/SolrConfigXml,
|
5
|
+
as well as the default solrconfig file included with Solr -->
|
6
|
+
|
7
|
+
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
|
8
|
+
|
9
|
+
<luceneMatchVersion>6.1.0</luceneMatchVersion>
|
10
|
+
|
11
|
+
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
|
12
|
+
|
13
|
+
<updateHandler class="solr.DirectUpdateHandler2">
|
14
|
+
<updateLog>
|
15
|
+
<str name="dir">${solr.core0.data.dir:}</str>
|
16
|
+
</updateLog>
|
17
|
+
</updateHandler>
|
18
|
+
|
19
|
+
<!-- solr lib dirs -->
|
20
|
+
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lib" />
|
21
|
+
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lucene-libs" />
|
22
|
+
|
23
|
+
<dataDir>${solr.data.dir:}</dataDir>
|
24
|
+
|
25
|
+
<requestHandler name="search" class="solr.SearchHandler" default="true">
|
26
|
+
<!-- default values for query parameters can be specified, these
|
27
|
+
will be overridden by parameters in the request
|
28
|
+
-->
|
29
|
+
<lst name="defaults">
|
30
|
+
<str name="defType">edismax</str>
|
31
|
+
<str name="echoParams">explicit</str>
|
32
|
+
<str name="q.alt">*:*</str>
|
33
|
+
<str name="mm">2<-1 5<-2 6<90%</str>
|
34
|
+
<int name="qs">1</int>
|
35
|
+
<int name="ps">2</int>
|
36
|
+
<float name="tie">0.01</float>
|
37
|
+
<!-- this qf and pf are used by default, if not otherwise specified by
|
38
|
+
client. The default blacklight_config will use these for the
|
39
|
+
"keywords" search. See the author_qf/author_pf, title_qf, etc
|
40
|
+
below, which the default blacklight_config will specify for
|
41
|
+
those searches. You may also be interested in:
|
42
|
+
http://wiki.apache.org/solr/LocalParams
|
43
|
+
-->
|
44
|
+
<str name="qf">
|
45
|
+
id
|
46
|
+
full_title_tesim
|
47
|
+
short_title_tesim
|
48
|
+
alternative_title_tesim
|
49
|
+
active_fedora_model_ssi
|
50
|
+
title_tesim
|
51
|
+
author_tesim
|
52
|
+
subject_tesim
|
53
|
+
all_text_timv
|
54
|
+
</str>
|
55
|
+
<str name="pf">
|
56
|
+
all_text_timv^10
|
57
|
+
</str>
|
58
|
+
|
59
|
+
<str name="author_qf">
|
60
|
+
author_tesim
|
61
|
+
</str>
|
62
|
+
<str name="author_pf">
|
63
|
+
</str>
|
64
|
+
<str name="title_qf">
|
65
|
+
title_tesim
|
66
|
+
full_title_tesim
|
67
|
+
short_title_tesim
|
68
|
+
alternative_title_tesim
|
69
|
+
</str>
|
70
|
+
<str name="title_pf">
|
71
|
+
</str>
|
72
|
+
<str name="subject_qf">
|
73
|
+
subject_tesim
|
74
|
+
</str>
|
75
|
+
<str name="subject_pf">
|
76
|
+
</str>
|
77
|
+
|
78
|
+
<str name="fl">
|
79
|
+
*,
|
80
|
+
score
|
81
|
+
</str>
|
82
|
+
|
83
|
+
<str name="facet">true</str>
|
84
|
+
<str name="facet.mincount">1</str>
|
85
|
+
<str name="facet.limit">10</str>
|
86
|
+
<str name="facet.field">active_fedora_model_ssi</str>
|
87
|
+
<str name="facet.field">subject_ssim</str>
|
88
|
+
|
89
|
+
<str name="spellcheck">true</str>
|
90
|
+
<str name="spellcheck.dictionary">default</str>
|
91
|
+
<str name="spellcheck.onlyMorePopular">true</str>
|
92
|
+
<str name="spellcheck.extendedResults">true</str>
|
93
|
+
<str name="spellcheck.collate">false</str>
|
94
|
+
<str name="spellcheck.count">5</str>
|
95
|
+
|
96
|
+
</lst>
|
97
|
+
<arr name="last-components">
|
98
|
+
<str>spellcheck</str>
|
99
|
+
</arr>
|
100
|
+
</requestHandler>
|
101
|
+
|
102
|
+
<requestHandler name="permissions" class="solr.SearchHandler" >
|
103
|
+
<lst name="defaults">
|
104
|
+
<str name="facet">off</str>
|
105
|
+
<str name="echoParams">all</str>
|
106
|
+
<str name="rows">1</str>
|
107
|
+
<str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
|
108
|
+
<str name="fl">
|
109
|
+
id,
|
110
|
+
access_ssim,
|
111
|
+
discover_access_group_ssim,discover_access_person_ssim,
|
112
|
+
read_access_group_ssim,read_access_person_ssim,
|
113
|
+
edit_access_group_ssim,edit_access_person_ssim,
|
114
|
+
depositor_ti,
|
115
|
+
embargo_release_date_dtsi
|
116
|
+
inheritable_access_ssim,
|
117
|
+
inheritable_discover_access_group_ssim,inheritable_discover_access_person_ssim,
|
118
|
+
inheritable_read_access_group_ssim,inheritable_read_access_person_ssim,
|
119
|
+
inheritable_edit_access_group_ssim,inheritable_edit_access_person_ssim,
|
120
|
+
inheritable_embargo_release_date_dtsi
|
121
|
+
</str>
|
122
|
+
</lst>
|
123
|
+
</requestHandler>
|
124
|
+
|
125
|
+
<requestHandler name="standard" class="solr.SearchHandler">
|
126
|
+
<lst name="defaults">
|
127
|
+
<str name="echoParams">explicit</str>
|
128
|
+
<str name="defType">lucene</str>
|
129
|
+
</lst>
|
130
|
+
</requestHandler>
|
131
|
+
|
132
|
+
<!-- for requests to get a single document; use id=666 instead of q=id:666 -->
|
133
|
+
<requestHandler name="document" class="solr.SearchHandler" >
|
134
|
+
<lst name="defaults">
|
135
|
+
<str name="echoParams">all</str>
|
136
|
+
<str name="fl">*</str>
|
137
|
+
<str name="rows">1</str>
|
138
|
+
<str name="q">{!raw f=id v=$id}</str> <!-- use id=666 instead of q=id:666 -->
|
139
|
+
</lst>
|
140
|
+
</requestHandler>
|
141
|
+
|
142
|
+
|
143
|
+
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
144
|
+
<str name="queryAnalyzerFieldType">textSpell</str>
|
145
|
+
<!-- Multiple "Spell Checkers" can be declared and used by this component
|
146
|
+
(e.g. for title_spell field)
|
147
|
+
-->
|
148
|
+
<lst name="spellchecker">
|
149
|
+
<str name="name">default</str>
|
150
|
+
<str name="field">spell</str>
|
151
|
+
<str name="spellcheckIndexDir">./spell</str>
|
152
|
+
<str name="buildOnOptimize">true</str>
|
153
|
+
</lst>
|
154
|
+
</searchComponent>
|
155
|
+
|
156
|
+
<requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" />
|
157
|
+
|
158
|
+
<requestDispatcher handleSelect="true" >
|
159
|
+
<requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />
|
160
|
+
</requestDispatcher>
|
161
|
+
|
162
|
+
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
|
163
|
+
</config>
|
data/lib/spotlight/engine.rb
CHANGED
@@ -17,7 +17,15 @@ module Spotlight
|
|
17
17
|
class Engine < ::Rails::Engine
|
18
18
|
isolate_namespace Spotlight
|
19
19
|
# Breadcrumbs on rails must be required outside of an initializer or it doesn't get loaded.
|
20
|
-
require 'breadcrumbs_on_rails'
|
20
|
+
require 'breadcrumbs_on_rails/breadcrumbs'
|
21
|
+
require 'breadcrumbs_on_rails/action_controller'
|
22
|
+
|
23
|
+
initializer 'breadcrumbs_on_rails.initialize' do
|
24
|
+
ActiveSupport.on_load(:action_controller) do
|
25
|
+
include BreadcrumbsOnRails::ActionController
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
21
29
|
require 'carrierwave'
|
22
30
|
require 'carrierwave/crop'
|
23
31
|
require 'social-share-button'
|
data/lib/spotlight/version.rb
CHANGED
@@ -73,7 +73,7 @@ describe Spotlight::AdminUsersController, type: :controller do
|
|
73
73
|
|
74
74
|
it 'redirects back with flash error upon failure' do
|
75
75
|
post :invite, user: 'user@example.com', role: 'not-a-real-role'
|
76
|
-
expect(flash[:alert]).to eq 'There was a problem saving the user
|
76
|
+
expect(flash[:alert]).to eq 'There was a problem saving the user.'
|
77
77
|
expect(response).to redirect_to(:back)
|
78
78
|
end
|
79
79
|
end
|
@@ -41,15 +41,27 @@ describe Spotlight::AppearancesController, type: :controller do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
describe 'PATCH update' do
|
44
|
+
let(:first_nav) { exhibit.main_navigations.first }
|
45
|
+
let(:last_nav) { exhibit.main_navigations.last }
|
44
46
|
it 'updates the navigation' do
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
if Rails::VERSION::MAJOR >= 5
|
48
|
+
patch :update, params: {
|
49
|
+
exhibit_id: exhibit,
|
50
|
+
exhibit: {
|
51
|
+
main_navigations_attributes: {
|
52
|
+
0 => { id: first_nav.id, label: 'Some Label', weight: 500 },
|
53
|
+
1 => { id: last_nav.id, display: false }
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
else
|
58
|
+
patch :update, exhibit_id: exhibit, exhibit: {
|
59
|
+
main_navigations_attributes: [
|
60
|
+
{ id: first_nav.id, label: 'Some Label', weight: 500 },
|
61
|
+
{ id: last_nav.id, display: false }
|
62
|
+
]
|
63
|
+
}
|
64
|
+
end
|
53
65
|
expect(flash[:notice]).to eq 'The exhibit was successfully updated.'
|
54
66
|
expect(response).to redirect_to edit_exhibit_appearance_path(exhibit)
|
55
67
|
assigns[:exhibit].tap do |saved|
|
@@ -94,7 +94,7 @@ describe Spotlight::RolesController, type: :controller do
|
|
94
94
|
}
|
95
95
|
}
|
96
96
|
expect(response).to be_successful
|
97
|
-
expect(flash[:alert]).to eq 'There was a problem saving the user
|
97
|
+
expect(flash[:alert]).to eq 'There was a problem saving the user.'
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -143,7 +143,7 @@ describe Spotlight::RolesController, type: :controller do
|
|
143
143
|
|
144
144
|
it 'redirects back with flash error upon failure' do
|
145
145
|
post :invite, exhibit_id: exhibit, user: 'user@example.com', role: 'not-a-real-role'
|
146
|
-
expect(flash[:alert]).to eq 'There was a problem saving the user
|
146
|
+
expect(flash[:alert]).to eq 'There was a problem saving the user.'
|
147
147
|
expect(response).to redirect_to(:back)
|
148
148
|
end
|
149
149
|
end
|
@@ -29,7 +29,7 @@ describe Spotlight::SolrController, type: :controller do
|
|
29
29
|
doc = arr.first
|
30
30
|
end
|
31
31
|
|
32
|
-
|
32
|
+
post_update_with_json_body(exhibit, a: 1)
|
33
33
|
|
34
34
|
expect(response).to be_successful
|
35
35
|
expect(doc).to include 'a' => 1
|
@@ -41,7 +41,7 @@ describe Spotlight::SolrController, type: :controller do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
it 'raises an error' do
|
44
|
-
|
44
|
+
post_update_with_json_body(exhibit, a: 1)
|
45
45
|
|
46
46
|
expect(response.code).to eq '409'
|
47
47
|
end
|
@@ -53,7 +53,7 @@ describe Spotlight::SolrController, type: :controller do
|
|
53
53
|
doc = arr.first
|
54
54
|
end
|
55
55
|
|
56
|
-
|
56
|
+
post_update_with_json_body(exhibit, a: 1)
|
57
57
|
|
58
58
|
expect(response).to be_successful
|
59
59
|
expect(doc).to include exhibit.solr_data
|
@@ -67,11 +67,19 @@ describe Spotlight::SolrController, type: :controller do
|
|
67
67
|
|
68
68
|
allow_any_instance_of(SolrDocument).to receive(:to_solr).and_return(b: 1)
|
69
69
|
|
70
|
-
|
70
|
+
post_update_with_json_body(exhibit, a: 1)
|
71
71
|
|
72
72
|
expect(response).to be_successful
|
73
73
|
expect(doc).to include b: 1
|
74
74
|
end
|
75
75
|
end
|
76
76
|
end
|
77
|
+
|
78
|
+
def post_update_with_json_body(exhibit, hash)
|
79
|
+
if Rails::VERSION::MAJOR >= 5
|
80
|
+
post :update, body: hash.to_json, params: { exhibit_id: exhibit }, as: :json
|
81
|
+
else
|
82
|
+
post :update, hash.to_json, content_type: :json, exhibit_id: exhibit
|
83
|
+
end
|
84
|
+
end
|
77
85
|
end
|
@@ -4,6 +4,24 @@ describe Spotlight::Resource, type: :model do
|
|
4
4
|
end
|
5
5
|
let(:exhibit) { FactoryGirl.create(:exhibit) }
|
6
6
|
|
7
|
+
describe '#enqueued_at' do
|
8
|
+
it 'casts values to Time objects' do
|
9
|
+
t = Time.zone.now.at_beginning_of_minute
|
10
|
+
subject.enqueued_at = t
|
11
|
+
|
12
|
+
expect(subject.enqueued_at).to eq t
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '#last_indexed_finished' do
|
17
|
+
it 'casts values to Time objects' do
|
18
|
+
t = Time.zone.now.at_beginning_of_minute
|
19
|
+
subject.last_indexed_finished = t
|
20
|
+
|
21
|
+
expect(subject.last_indexed_finished).to eq t
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
7
25
|
describe '#reindex' do
|
8
26
|
context 'with a provider that generates ids' do
|
9
27
|
subject do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
ENV['RAILS_ENV'] ||= 'test'
|
2
|
-
|
3
2
|
require 'factory_girl'
|
4
3
|
require 'database_cleaner'
|
5
4
|
require 'devise'
|
6
5
|
require 'engine_cart'
|
7
6
|
EngineCart.load_application!
|
8
7
|
|
8
|
+
Internal::Application.config.active_job.queue_adapter = :inline
|
9
|
+
|
10
|
+
require 'rails-controller-testing' if Rails::VERSION::MAJOR >= 5
|
9
11
|
require 'rspec/collection_matchers'
|
10
12
|
require 'rspec/its'
|
11
13
|
require 'rspec/rails'
|
@@ -47,6 +49,7 @@ FIXTURES_PATH = File.expand_path('../fixtures', __FILE__)
|
|
47
49
|
|
48
50
|
RSpec.configure do |config|
|
49
51
|
config.infer_spec_type_from_file_location!
|
52
|
+
config.filter_rails_from_backtrace!
|
50
53
|
|
51
54
|
config.use_transactional_fixtures = false
|
52
55
|
|
@@ -88,6 +91,10 @@ RSpec.configure do |config|
|
|
88
91
|
config.after(:each, type: :feature) { Warden.test_reset! }
|
89
92
|
config.include Controllers::EngineHelpers, type: :controller
|
90
93
|
config.include Capybara::DSL
|
94
|
+
if Rails::VERSION::MAJOR >= 5
|
95
|
+
config.include ::Rails.application.routes.url_helpers
|
96
|
+
config.include ::Rails.application.routes.mounted_helpers
|
97
|
+
end
|
91
98
|
config.include Spotlight::TestFeaturesHelpers, type: :feature
|
92
99
|
end
|
93
100
|
|
@@ -3,11 +3,23 @@ module ControllerLevelHelpers
|
|
3
3
|
@search_state ||= Blacklight::SearchState.new(params, blacklight_config)
|
4
4
|
end
|
5
5
|
|
6
|
+
def current_site
|
7
|
+
Spotlight::Site.instance
|
8
|
+
end
|
9
|
+
|
6
10
|
def blacklight_configuration_context
|
7
11
|
@blacklight_configuration_context ||= Blacklight::Configuration::Context.new(controller)
|
8
12
|
end
|
9
13
|
|
10
14
|
def initialize_controller_helpers(helper)
|
11
15
|
helper.extend ControllerLevelHelpers
|
16
|
+
initialize_routing_helpers(helper)
|
17
|
+
end
|
18
|
+
|
19
|
+
def initialize_routing_helpers(helper)
|
20
|
+
return unless Rails::VERSION::MAJOR >= 5
|
21
|
+
|
22
|
+
helper.class.include ::Rails.application.routes.url_helpers
|
23
|
+
helper.class.include ::Rails.application.routes.mounted_helpers if ::Rails.application.routes.respond_to?(:mounted_helpers)
|
12
24
|
end
|
13
25
|
end
|
@@ -4,8 +4,12 @@ module Spotlight
|
|
4
4
|
|
5
5
|
included do
|
6
6
|
before do
|
7
|
+
view.send(:extend, Spotlight::MainAppHelpers)
|
7
8
|
view.send(:extend, Spotlight::CrudLinkHelpers)
|
8
9
|
view.send(:extend, Spotlight::TitleHelper)
|
10
|
+
view.send(:extend, Spotlight::NavbarHelper)
|
11
|
+
view.send(:extend, Blacklight::ComponentHelperBehavior)
|
12
|
+
view.send(:extend, BreadcrumbsOnRails::ActionController::HelperMethods)
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-spotlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -11,28 +11,28 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-08-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- - "~>"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '4.0'
|
23
20
|
- - ">="
|
24
21
|
- !ruby/object:Gem::Version
|
25
22
|
version: 4.2.0
|
23
|
+
- - "<"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '6'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- - "~>"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '4.0'
|
33
30
|
- - ">="
|
34
31
|
- !ruby/object:Gem::Version
|
35
32
|
version: 4.2.0
|
33
|
+
- - "<"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '6'
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: blacklight
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,30 +149,36 @@ dependencies:
|
|
149
149
|
name: acts-as-taggable-on
|
150
150
|
requirement: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- - "
|
152
|
+
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
154
|
+
version: 4.0.0.pre
|
155
155
|
type: :runtime
|
156
156
|
prerelease: false
|
157
157
|
version_requirements: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- - "
|
159
|
+
- - ">="
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version:
|
161
|
+
version: 4.0.0.pre
|
162
162
|
- !ruby/object:Gem::Dependency
|
163
163
|
name: friendly_id
|
164
164
|
requirement: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
|
-
- - "
|
166
|
+
- - ">="
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: 5.
|
168
|
+
version: 5.2.0.beta.1
|
169
|
+
- - "<"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '6'
|
169
172
|
type: :runtime
|
170
173
|
prerelease: false
|
171
174
|
version_requirements: !ruby/object:Gem::Requirement
|
172
175
|
requirements:
|
173
|
-
- - "
|
176
|
+
- - ">="
|
174
177
|
- !ruby/object:Gem::Version
|
175
|
-
version: 5.
|
178
|
+
version: 5.2.0.beta.1
|
179
|
+
- - "<"
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '6'
|
176
182
|
- !ruby/object:Gem::Dependency
|
177
183
|
name: breadcrumbs_on_rails
|
178
184
|
requirement: !ruby/object:Gem::Requirement
|
@@ -509,6 +515,20 @@ dependencies:
|
|
509
515
|
- - ">="
|
510
516
|
- !ruby/object:Gem::Version
|
511
517
|
version: '0'
|
518
|
+
- !ruby/object:Gem::Dependency
|
519
|
+
name: rails-controller-testing
|
520
|
+
requirement: !ruby/object:Gem::Requirement
|
521
|
+
requirements:
|
522
|
+
- - ">="
|
523
|
+
- !ruby/object:Gem::Version
|
524
|
+
version: '0'
|
525
|
+
type: :development
|
526
|
+
prerelease: false
|
527
|
+
version_requirements: !ruby/object:Gem::Requirement
|
528
|
+
requirements:
|
529
|
+
- - ">="
|
530
|
+
- !ruby/object:Gem::Version
|
531
|
+
version: '0'
|
512
532
|
- !ruby/object:Gem::Dependency
|
513
533
|
name: capybara
|
514
534
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1133,8 +1153,8 @@ files:
|
|
1133
1153
|
- lib/generators/spotlight/templates/config/initializers/riiif.rb
|
1134
1154
|
- lib/generators/spotlight/templates/config/initializers/social_share_button.rb
|
1135
1155
|
- lib/generators/spotlight/templates/config/sitemap.rb
|
1136
|
-
- lib/generators/spotlight/templates/
|
1137
|
-
- lib/generators/spotlight/templates/
|
1156
|
+
- lib/generators/spotlight/templates/solr/config/schema.xml
|
1157
|
+
- lib/generators/spotlight/templates/solr/config/solrconfig.xml
|
1138
1158
|
- lib/generators/spotlight/templates/spotlight.js
|
1139
1159
|
- lib/generators/spotlight/templates/spotlight.scss
|
1140
1160
|
- lib/generators/spotlight/templates/spotlight_helper.rb
|
@@ -1299,6 +1319,7 @@ files:
|
|
1299
1319
|
- spec/support/features/test_features_helpers.rb
|
1300
1320
|
- spec/support/helpers/controller_level_helpers.rb
|
1301
1321
|
- spec/support/views/test_view_helpers.rb
|
1322
|
+
- spec/test_app_templates/Gemfile.extra
|
1302
1323
|
- spec/test_app_templates/carrierwave.rb
|
1303
1324
|
- spec/test_app_templates/catalog_controller.rb
|
1304
1325
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
@@ -1385,7 +1406,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1385
1406
|
version: '0'
|
1386
1407
|
requirements: []
|
1387
1408
|
rubyforge_project:
|
1388
|
-
rubygems_version: 2.
|
1409
|
+
rubygems_version: 2.5.1
|
1389
1410
|
signing_key:
|
1390
1411
|
specification_version: 4
|
1391
1412
|
summary: Enable librarians, curators, and others who are responsible for digital collections
|
@@ -1550,6 +1571,7 @@ test_files:
|
|
1550
1571
|
- spec/support/views/test_view_helpers.rb
|
1551
1572
|
- spec/test_app_templates/carrierwave.rb
|
1552
1573
|
- spec/test_app_templates/catalog_controller.rb
|
1574
|
+
- spec/test_app_templates/Gemfile.extra
|
1553
1575
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
1554
1576
|
- spec/test_app_templates/spotlight_test.rake
|
1555
1577
|
- spec/uploaders/spotlight/item_uploader_spec.rb
|