bookends 4.2.0beta1 → 4.2.1rc1

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: 230e2bda8214b3cdf47ef5a4cab66f43dc8dfb07
4
- data.tar.gz: 806778f33d6e770c715b939825985dba4c30bdd6
3
+ metadata.gz: a94769fcf83b52bc30bdf37a00b511385ee5a544
4
+ data.tar.gz: 18c287bbfbb1b12e03cb5d477251fed0e8fe3ef8
5
5
  SHA512:
6
- metadata.gz: 477015d269f48d3cd19e924c0f0a7e52cf30f7f0f76284a78f143d021f195c3d5b1bf13eb8548a1d5ce65eb05c1bddc0729f6024a162f6264fe27d56ba76e5ac
7
- data.tar.gz: 5e55d8bf8e201328d7693e75d720709eb3d731bf951b99dee9b90cf216d09ec66c671fe209ebeb26c8fb1ab6ff985177dd0c455efd40ed8addf9643fc8e1fe7e
6
+ metadata.gz: 5a0a357c4d8d53f9a708d17c58b68bfbc14aa5147a04b68787d180662e56a20a56f8b76200a6a47177092ee6bc93c92c9b47658c1bae67224a145c524c23ad77
7
+ data.tar.gz: b71e7e3fd670fa241b11937c0e1ec100285805f2a276fb2a83ce3b409b67bfd5555717d5fae3bb8a9fd59fa7f4dd5ad48c757da38e8b426fa5c6e7902b758f09
@@ -25,12 +25,12 @@ Heroku.SearchResultsRenderer = Heroku.SearchResultsRenderer || function () {
25
25
  }, {
26
26
  key: 'renderResult',
27
27
  value: function renderResult(hit) {
28
- result = '<li class="search-result"><h4 class="search-result-title"><a href="' + hit.url + '">' + hit.title + '</a></h4><p class="search-result-slug"><a href="' + hit.url + '">' + hit.url + '</a></p>'
28
+ var result = '<li class="search-result"><h4 class="search-result-title"><a href="' + hit.url + '">' + hit.title + '</a></h4><p class="search-result-slug"><a href="' + hit.url + '">' + hit.url + '</a></p>';
29
29
  if (hit.anchor) {
30
- result += '<p class="search-result-desc">Jump to: <a href="' + hit.url + '#' + hit.anchor + '">' + hit.subtitle + '</a><br>'
30
+ result += '<p class="search-result-desc">Jump to: <a href="' + hit.url + '#' + hit.anchor + '">' + hit.subtitle + '</a><br>';
31
31
  }
32
32
  result += hit.description + '</p></li>';
33
- return result
33
+ return result;
34
34
  }
35
35
  }, {
36
36
  key: 'renderPagination',
@@ -75,7 +75,7 @@ Heroku.Searcher = function () {
75
75
  key: '_resetHelper',
76
76
  value: function _resetHelper(newIndex) {
77
77
  this.helper.removeAllListeners('result');
78
- this.helper = algoliasearchHelper(this.client, newIndex);
78
+ this.helper = algoliasearchHelper(this.client, newIndex, { distinct: true });
79
79
  this.helper.on('result', this.renderHits.bind(this));
80
80
  this.helper.setQuery(this.query).search();
81
81
  }
@@ -1,3 +1,3 @@
1
1
  module Bookends
2
- VERSION = '4.2.0beta1'.freeze
2
+ VERSION = '4.2.1rc1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookends
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0beta1
4
+ version: 4.2.1rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marketing Web Ops at heroku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-05 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails