blacklight 6.11.1 → 6.11.2
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/VERSION +1 -1
- data/app/controllers/concerns/blacklight/catalog.rb +1 -0
- data/spec/controllers/catalog_controller_spec.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445c850f8ead2b777654edd2de72f938cc4428d0
|
4
|
+
data.tar.gz: 5f0eb1aff8ceeabe37f47b4bda0118834ab45819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0704b69f8407a748857c5becb09e53eda41cdd76fbfeea523b7e37b534841142dc8393fbc88ab0257710743cebf8ba45aafe23fe20c41d7ea3281dde3f26083b
|
7
|
+
data.tar.gz: c5c17214fda7c4743bad2eca926b1a84d4aab9fc1d79c8e1c9dfe99d9b7e908b3d43104e4ebf417c6c8bac4d634f5dcc753d68156ec7b0442f10e232f90e2700
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.11.
|
1
|
+
6.11.2
|
@@ -67,6 +67,7 @@ module Blacklight::Catalog
|
|
67
67
|
# displays values and pagination links for a single facet field
|
68
68
|
def facet
|
69
69
|
@facet = blacklight_config.facet_fields[params[:id]]
|
70
|
+
raise ActionController::RoutingError, 'Not Found' unless @facet
|
70
71
|
@response = get_facet_field_response(@facet.key, params)
|
71
72
|
@display_facet = @response.aggregations[@facet.field]
|
72
73
|
@pagination = facet_paginator(@facet, @display_facet)
|
@@ -541,6 +541,14 @@ describe CatalogController do
|
|
541
541
|
expect(assigns[:pagination].items.first['value']).to eq 'Book'
|
542
542
|
end
|
543
543
|
end
|
544
|
+
|
545
|
+
context 'when the requested facet is not in the configuration' do
|
546
|
+
it 'raises a routing error' do
|
547
|
+
expect {
|
548
|
+
get :facet, params: { id: 'fake' }
|
549
|
+
}.to raise_error ActionController::RoutingError, 'Not Found'
|
550
|
+
end
|
551
|
+
end
|
544
552
|
end
|
545
553
|
|
546
554
|
describe "#add_to_search_history" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.11.
|
4
|
+
version: 6.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -17,7 +17,7 @@ authors:
|
|
17
17
|
autorequire:
|
18
18
|
bindir: exe
|
19
19
|
cert_chain: []
|
20
|
-
date: 2017-09-
|
20
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|
@@ -764,7 +764,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
764
764
|
version: '0'
|
765
765
|
requirements: []
|
766
766
|
rubyforge_project:
|
767
|
-
rubygems_version: 2.6.
|
767
|
+
rubygems_version: 2.6.13
|
768
768
|
signing_key:
|
769
769
|
specification_version: 4
|
770
770
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|