blacklight 6.11.1 → 6.11.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a72b5c9469391daec118e8cfef69fd9960cf687
4
- data.tar.gz: 1a9a6c9147a770fa9ffaa107d789618b39b2c2fd
3
+ metadata.gz: 445c850f8ead2b777654edd2de72f938cc4428d0
4
+ data.tar.gz: 5f0eb1aff8ceeabe37f47b4bda0118834ab45819
5
5
  SHA512:
6
- metadata.gz: 286d8992abd602981c3603da27a5fe7aa9d7f5796b1b32c4ee63f1afdd66ca3ea50d7a5b15ebf2ea03102b3460a19e5f4ebf0a5a12f2b36772f6971a08cc7f3c
7
- data.tar.gz: 9d8b1df273e758854c4e79407cd4817a8561e6b1879100855a1db2400d43fc54219e9ef4c41ba5c69074897915328dd54876f252ba702bc5b6734516c7e32f9e
6
+ metadata.gz: 0704b69f8407a748857c5becb09e53eda41cdd76fbfeea523b7e37b534841142dc8393fbc88ab0257710743cebf8ba45aafe23fe20c41d7ea3281dde3f26083b
7
+ data.tar.gz: c5c17214fda7c4743bad2eca926b1a84d4aab9fc1d79c8e1c9dfe99d9b7e908b3d43104e4ebf417c6c8bac4d634f5dcc753d68156ec7b0442f10e232f90e2700
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.11.1
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.1
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-08 00:00:00.000000000 Z
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.11
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)