blacklight-hierarchy 1.1.0 → 2.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 013fc9201a78c5a16ab455be4a5b0210adbee46e
4
- data.tar.gz: 44a52cc85cc4c656cee5c58e16cf07c071396a2d
3
+ metadata.gz: dd2ecdea1a7d576038b77e6152422f684f335921
4
+ data.tar.gz: a38a687a84d1020d00fbffe1072a4ecfc3d3389c
5
5
  SHA512:
6
- metadata.gz: 4fbf835cae74a4c567b0cb4c4948e22da6118d16376a8fb4d3ec267c36eae3cdbb4a2ff2c1c7c4341bf89ee8d8f20f3b285ffb31fa233e1feebdbaf000e37193
7
- data.tar.gz: 4d2e46a452462502b920a34898ad8dfb1e8e69429d698a3e7ac8206c69c854bc635624ac6f86f193d2868683a59586758c771fe898042f899a658a141acc8e06
6
+ metadata.gz: 9255a2509312db54dedfd34f3ebfc495b8fe534ab3caba77d8340667d7a1a5433b3a88567d6df5391030614c9d0d58cb3618bf916d14a7f65ca32cb691c83198
7
+ data.tar.gz: cefb114607e207e8291caaaf86c34c68020122f38fa27a69938875a55add0cc5cee7c76a3c7125d4f24bd9c3b573a218c569c6e32b10a3d59a596740ef85cbb1
@@ -1,15 +1,7 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - 2.3.1
5
-
6
- env:
7
- - 'RAILS_VERSION=5.0.0.1'
8
-
9
- matrix:
10
- include:
11
- - rvm: 2.3.1
12
- env: 'RAILS_VERSION=4.2.7.1'
4
+ - 2.5.1
13
5
 
14
6
  env:
15
7
  global:
data/Gemfile CHANGED
@@ -31,15 +31,6 @@ else
31
31
  gem 'rails', ENV['RAILS_VERSION']
32
32
  end
33
33
  end
34
-
35
- case ENV['RAILS_VERSION']
36
- when /^4.2/
37
- gem 'responders', '~> 2.0'
38
- gem 'sass-rails', '>= 5.0'
39
- gem 'coffee-rails', '~> 4.1.0'
40
- when /^4.[01]/
41
- gem 'sass-rails', '< 5.0'
42
- end
43
34
  end
44
35
  # END ENGINE_CART BLOCK
45
36
  eval_gemfile File.expand_path("spec/test_app_templates/Gemfile.extra", File.dirname(__FILE__))
@@ -41,15 +41,16 @@ module Blacklight::HierarchyHelper
41
41
  end
42
42
 
43
43
  def render_qfacet_value(facet_solr_field, item, options = {})
44
- (link_to_unless(options[:suppress_link], item.value, search_state.add_facet_params(facet_solr_field, item.qvalue), class: 'facet_select') + ' ' + render_facet_count(item.hits)).html_safe
44
+ (link_to_unless(options[:suppress_link], item.value, path_for_facet(facet_solr_field, item.qvalue), class: 'facet_select') + ' ' + render_facet_count(item.hits)).html_safe
45
45
  end
46
46
 
47
47
  # Standard display of a SELECTED facet value, no link, special span with class, and 'remove' button.
48
48
  def render_selected_qfacet_value(facet_solr_field, item)
49
+ remove_href = search_action_path(search_state.remove_facet_params(facet_solr_field, item.qvalue))
49
50
  content_tag(:span, render_qfacet_value(facet_solr_field, item, suppress_link: true), class: 'selected') + ' ' +
50
51
  link_to(content_tag(:span, '', class: 'glyphicon glyphicon-remove') +
51
52
  content_tag(:span, '[remove]', class: 'sr-only'),
52
- search_state.remove_facet_params(facet_solr_field, item.qvalue),
53
+ remove_href,
53
54
  class: 'remove'
54
55
  )
55
56
  end
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Hierarchy
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-hierarchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael B. Klein
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2018-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  requirements: []
204
204
  rubyforge_project:
205
- rubygems_version: 2.5.2
205
+ rubygems_version: 2.6.11
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Hierarchical Facets for Blacklight