blacklight-spotlight 2.11.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spotlight/featured_images_controller.rb +1 -4
- data/app/models/spotlight/featured_image.rb +2 -1
- data/app/presenters/spotlight/iiif_manifest_presenter.rb +2 -5
- data/app/services/spotlight/upload_solr_document_builder.rb +2 -3
- data/app/views/layouts/spotlight/spotlight.html.erb +2 -2
- data/lib/generators/spotlight/install_generator.rb +1 -1
- data/lib/generators/spotlight/templates/config/initializers/spotlight_initializer.rb +0 -34
- data/lib/spotlight/engine.rb +0 -32
- data/lib/spotlight/version.rb +1 -1
- data/spec/examples.txt +1351 -1379
- data/spec/features/javascript/blocks/solr_documents_block_spec.rb +1 -0
- data/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +4 -3
- metadata +6 -6
@@ -164,6 +164,7 @@ feature 'Solr Document Block', feature: true, versioning: true, default_max_wait
|
|
164
164
|
end
|
165
165
|
|
166
166
|
scenario 'should allow you to choose which side the text will be on', js: true do
|
167
|
+
skip('Passes locally, but soooo flakey on Travis.') if ENV['CI']
|
167
168
|
fill_in_solr_document_block_typeahead_field with: 'dq287tq6352'
|
168
169
|
|
169
170
|
# Select to align the text right
|
@@ -13,7 +13,6 @@ describe Spotlight::IiifManifestPresenter do
|
|
13
13
|
|
14
14
|
before do
|
15
15
|
allow(resource).to receive(:uploaded_resource).and_return(uploaded_resource)
|
16
|
-
allow(controller).to receive(:request).and_return(double(host_with_port: 'localhost:3000'))
|
17
16
|
end
|
18
17
|
|
19
18
|
describe 'public methods' do
|
@@ -119,8 +118,10 @@ describe Spotlight::IiifManifestPresenter do
|
|
119
118
|
|
120
119
|
describe '#iiif_url' do
|
121
120
|
it 'returns the info_url from the Riiif engine routes, minus the trailing .json' do
|
122
|
-
|
123
|
-
|
121
|
+
riiif_route_helper = double(info_url: 'https://iiif.test/path/info.json')
|
122
|
+
allow(controller).to receive(:riiif).and_return(riiif_route_helper)
|
123
|
+
|
124
|
+
expect(subject.send(:iiif_url)).to eq('https://iiif.test/path')
|
124
125
|
end
|
125
126
|
end
|
126
127
|
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: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-
|
14
|
+
date: 2019-11-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -177,16 +177,16 @@ dependencies:
|
|
177
177
|
name: blacklight-oembed
|
178
178
|
requirement: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
|
-
- - "
|
180
|
+
- - "~>"
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: 0.
|
182
|
+
version: '0.3'
|
183
183
|
type: :runtime
|
184
184
|
prerelease: false
|
185
185
|
version_requirements: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
|
-
- - "
|
187
|
+
- - "~>"
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.
|
189
|
+
version: '0.3'
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: devise
|
192
192
|
requirement: !ruby/object:Gem::Requirement
|