blacklight_heatmaps 0.4.0 → 0.9.0

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
- SHA1:
3
- metadata.gz: 95fbd5c293e3bb1b0934cbb0ef75129609552d54
4
- data.tar.gz: 6fc4101c575417ab48559edab0c74f31de41e7d8
2
+ SHA256:
3
+ metadata.gz: 6ecd69bfd4c5b715f5489c1a773ec4601faec3522e862dda35d704be80c1cb31
4
+ data.tar.gz: b8a98ef63e1da217f62846a84a3ad4f5a387fe8c56a65f2fc0d676a9c97c39c3
5
5
  SHA512:
6
- metadata.gz: 3df2e19e19eb7468961118cc60714f8c7311baf88d894877b4284937f20c1c148ff4c7f58dda756d91d40c5217f3aea911a2f9241f2c5588f52ffffbe209d8cf
7
- data.tar.gz: 6f483cdf059e4276bdc9d86a7190f88a701ed0258f78239a8ecfef600d149db11a4fab826f7c71c55d91aa39f45ffbebcebb198ed4ad9cc81ff00c5538228fbd
6
+ metadata.gz: f4ec702d38e8a4516194e46254c11952a418c09b6f5a03aa9d179c3d98bafe18fadd6bd755cf33873c2283ec35c60e4719b1aa0db100e1b19bc9430d9ef69f00
7
+ data.tar.gz: 1037d6955d11607ae827e8e46a1363e47a5e164e1e5f154c600c1fdbe3762a55db01d9e269c43dd0cd93be972d39099f230648ba098039ec348501d19160a550
data/Rakefile CHANGED
@@ -10,4 +10,4 @@ load 'tasks/blacklight_heatmaps.rake'
10
10
 
11
11
  require 'engine_cart/rake_task'
12
12
 
13
- task default: :spec
13
+ task default: [:ci]
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z"/></svg>
@@ -1,7 +1,3 @@
1
1
  BlacklightHeatmaps.Icons = {
2
- default: new L.Icon({
3
- iconUrl: '<%= asset_path 'marker-icon.png'%>',
4
- iconRetinaUrl: '<%= asset_path 'marker-icon-2x.png'%>',
5
- shadowUrl: '<%= asset_path 'marker-shadow.png'%>'
6
- })
2
+ default: new L.Icon.Default()
7
3
  };
@@ -15,14 +15,18 @@ Blacklight.onLoad(function () {
15
15
  initialize: function (el, options) {
16
16
  var _this = this;
17
17
  var $el = $(el);
18
- var requestUrl = $el.data().searchUrl + '&format=json';
18
+ var requestUrl = $el.data().searchUrl + '&format=heatmaps';
19
19
  var geometryField = $el.data().geometryField;
20
20
  var template = $el.data().sidebarTemplate;
21
21
  var colorRamp = $el.data().colorRamp;
22
22
 
23
23
  // Blank out page link content first and disable pagination
24
- $('#sortAndPerPage .page_links').html('');
25
- $('ul.pagination li').addClass('disabled');
24
+ $('#sortAndPerPage .page-links').html('');
25
+ if ($('nav.pagination').length > 0) {
26
+ $('nav.pagination').hide();
27
+ } else {
28
+ $('ul.pagination').hide();
29
+ }
26
30
 
27
31
  var map = L.map($el[0].id).setView([0, 0], 1);
28
32
  var basemap = BlacklightHeatmaps.selectBasemap(
@@ -64,7 +68,7 @@ Blacklight.onLoad(function () {
64
68
  sidebar.setContent(html);
65
69
 
66
70
  var docCount = e.response.pages.total_count;
67
- $('#sortAndPerPage .page_links').html(
71
+ $('#sortAndPerPage .page-links').html(
68
72
  parseInt(docCount).toLocaleString() + ' ' +
69
73
  _this.pluralize(docCount, 'item') + ' found'
70
74
  );
@@ -9,7 +9,8 @@ module Blacklight
9
9
  nil,
10
10
  class: 'blacklight-heatmaps-index-map',
11
11
  id: 'index-map',
12
- data: index_map_data_attributes
12
+ data: index_map_data_attributes,
13
+ 'aria-label': t('blacklight.heatmaps.aria-label')
13
14
  )
14
15
  end
15
16
 
@@ -23,8 +24,8 @@ module Blacklight
23
24
  <div class='media'>
24
25
  <div class='media-body'>
25
26
  <h3 class='media-heading'>
26
- <a href=\"#{document_path}\"}>
27
- {#{blacklight_config.index.title_field}}
27
+ <a href=\"{url}\"}>
28
+ {title}
28
29
  </a>
29
30
  </h3>
30
31
  </div>
@@ -34,14 +35,6 @@ module Blacklight
34
35
 
35
36
  private
36
37
 
37
- ##
38
- # Document path used for creating client side links to documents from a
39
- # template
40
- # @return String
41
- def document_path
42
- "#{search_catalog_path}/{#{blacklight_config.document_unique_id_param}}"
43
- end
44
-
45
38
  ##
46
39
  # Data attributes used in displaying the index map
47
40
  # @return Hash
@@ -0,0 +1,11 @@
1
+ presenter = Blacklight::JsonPresenter.new(@response, blacklight_config)
2
+
3
+ json.response do
4
+ json.docs(presenter.documents) do |document|
5
+ json.url polymorphic_url(url_for_document(document))
6
+ json.title index_presenter(document).heading
7
+ end
8
+
9
+ json.facet_heatmaps @response['facet_counts']['facet_heatmaps']
10
+ json.pages presenter.pagination_info
11
+ end
@@ -0,0 +1,8 @@
1
+ en:
2
+ blacklight:
3
+ heatmaps:
4
+ title: Map
5
+ aria-label: heatmap
6
+ search:
7
+ view:
8
+ heatmaps: Map
@@ -0,0 +1,7 @@
1
+ es:
2
+ blacklight:
3
+ heatmaps:
4
+ title: Mapa
5
+ search:
6
+ view:
7
+ heatmaps: Mapa
@@ -0,0 +1,7 @@
1
+ pt-BR:
2
+ blacklight:
3
+ heatmaps:
4
+ title: Mapa
5
+ search:
6
+ view:
7
+ heatmaps: Mapa
@@ -3,6 +3,7 @@ module BlacklightHeatmaps
3
3
  isolate_namespace BlacklightHeatmaps
4
4
  initializer 'blacklight-maps.helpers' do |app|
5
5
  ActionView::Base.send :include, Blacklight::MapsHelper
6
+ Mime::Type.register 'application/vnd.heatmaps+json', :heatmaps
6
7
  end
7
8
  end
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module BlacklightHeatmaps
2
- VERSION = "0.4.0"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -4,9 +4,21 @@ module BlacklightHeatmaps
4
4
  class Install < Rails::Generators::Base
5
5
  source_root File.expand_path('../templates', __FILE__)
6
6
 
7
- def assets
7
+ def copy_styles
8
8
  copy_file 'blacklight_heatmaps.scss', 'app/assets/stylesheets/blacklight_heatmaps.scss'
9
- copy_file 'blacklight_heatmaps.js', 'app/assets/javascripts/blacklight_heatmaps.js'
9
+ end
10
+
11
+ def inject_js
12
+ inject_into_file 'app/assets/javascripts/application.js', after: '//= require blacklight/blacklight' do
13
+ "\n// Required by BlacklightHeatmaps" \
14
+ "\n//= require blacklight_heatmaps/default"
15
+ end
16
+ end
17
+
18
+ def install_webpacker
19
+ return unless Rails.version.to_i == 6
20
+
21
+ rake 'webpacker:install'
10
22
  end
11
23
 
12
24
  def configuration
@@ -17,6 +29,7 @@ module BlacklightHeatmaps
17
29
  "\n # Basemaps configured include: 'positron', 'darkMatter', 'OpenStreetMap.HOT'" \
18
30
  "\n config.basemap_provider = 'positron'" \
19
31
  "\n config.show.partials.insert(1, :show_leaflet_map)" \
32
+ "\n config.index.respond_to.heatmaps = true" \
20
33
  "\n config.view.heatmaps.partials = []" \
21
34
  "\n #Heatmap color ramp. For best results, use http://colorbrewer2.org or http://tristen.ca/hcl-picker/#/hlc/5/1" \
22
35
  "\n config.view.heatmaps.color_ramp = ['#ffffcc', '#a1dab4', '#41b6c4', '#2c7fb8', '#253494']" \
@@ -1,31 +1,31 @@
1
1
  example_id | status | run_time |
2
2
  --------------------------------------------------------------------------------------- | ------ | --------------- |
3
- ./spec/features/configurable_basemap_spec.rb[1:1] | passed | 0.43154 seconds |
4
- ./spec/features/configurable_basemap_spec.rb[1:2:1] | passed | 0.50186 seconds |
5
- ./spec/features/configurable_basemap_spec.rb[1:3:1] | passed | 0.48439 seconds |
6
- ./spec/features/index_page_map_spec.rb[1:1] | passed | 8.17 seconds |
7
- ./spec/features/show_page_map_spec.rb[1:1] | passed | 0.63302 seconds |
8
- ./spec/features/show_page_map_spec.rb[1:2] | passed | 0.4363 seconds |
9
- ./spec/helpers/blacklight/maps_helper_spec.rb[1:1:1] | passed | 0.00677 seconds |
10
- ./spec/helpers/blacklight/maps_helper_spec.rb[1:2:1] | passed | 0.00646 seconds |
11
- ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:1:1] | passed | 0.00016 seconds |
12
- ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:2:1] | passed | 0.003 seconds |
13
- ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:3:1] | passed | 0.00034 seconds |
14
- ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:4:1] | passed | 0.00071 seconds |
15
- ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:1:1] | passed | 0.00026 seconds |
3
+ ./spec/features/configurable_basemap_spec.rb[1:1] | passed | 0.28553 seconds |
4
+ ./spec/features/configurable_basemap_spec.rb[1:2:1] | passed | 0.24825 seconds |
5
+ ./spec/features/configurable_basemap_spec.rb[1:3:1] | passed | 0.42455 seconds |
6
+ ./spec/features/index_page_map_spec.rb[1:1] | failed | 8.15 seconds |
7
+ ./spec/features/show_page_map_spec.rb[1:1] | failed | 2.25 seconds |
8
+ ./spec/features/show_page_map_spec.rb[1:2] | passed | 0.37718 seconds |
9
+ ./spec/helpers/blacklight/maps_helper_spec.rb[1:1:1] | passed | 0.08846 seconds |
10
+ ./spec/helpers/blacklight/maps_helper_spec.rb[1:2:1] | passed | 0.00763 seconds |
11
+ ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:1:1] | passed | 0.00024 seconds |
12
+ ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:2:1] | passed | 0.00023 seconds |
13
+ ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:3:1] | passed | 0.00026 seconds |
14
+ ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:4:1] | passed | 0.00032 seconds |
15
+ ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:1:1] | passed | 0.00023 seconds |
16
16
  ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:2:1] | passed | 0.00019 seconds |
17
- ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:3:1] | passed | 0.00176 seconds |
18
- ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:1:1] | passed | 0.00076 seconds |
19
- ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:2:1] | passed | 0.00031 seconds |
20
- ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:3:1] | passed | 0.00078 seconds |
21
- ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:4:1] | passed | 0.01206 seconds |
22
- ./spec/models/concerns/blacklight_heatmaps/point_spec.rb[1:1:1] | passed | 0.00024 seconds |
23
- ./spec/models/concerns/blacklight_heatmaps/point_spec.rb[1:2:1] | passed | 0.00037 seconds |
24
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:1:1] | passed | 0.00098 seconds |
25
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:2:1] | passed | 0.00281 seconds |
26
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:2:1] | passed | 0.00109 seconds |
27
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:3:1] | passed | 0.00731 seconds |
28
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:4:1] | passed | 0.00165 seconds |
29
- ./spec/views/catalog/_document_heatmaps.html.erb_spec.rb[1:1] | passed | 0.0363 seconds |
30
- ./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:1:1] | passed | 0.00699 seconds |
31
- ./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:2:1] | passed | 0.04711 seconds |
17
+ ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:3:1] | passed | 0.00398 seconds |
18
+ ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:1:1] | passed | 0.00062 seconds |
19
+ ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:2:1] | passed | 0.0005 seconds |
20
+ ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:3:1] | passed | 0.00141 seconds |
21
+ ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:4:1] | passed | 0.00034 seconds |
22
+ ./spec/models/concerns/blacklight_heatmaps/point_spec.rb[1:1:1] | passed | 0.00033 seconds |
23
+ ./spec/models/concerns/blacklight_heatmaps/point_spec.rb[1:2:1] | passed | 0.002 seconds |
24
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:1:1] | passed | 0.00112 seconds |
25
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:2:1] | passed | 0.0036 seconds |
26
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:2:1] | passed | 0.00123 seconds |
27
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:3:1] | passed | 0.00089 seconds |
28
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:4:1] | passed | 0.00126 seconds |
29
+ ./spec/views/catalog/_document_heatmaps.html.erb_spec.rb[1:1] | passed | 0.01172 seconds |
30
+ ./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:1:1] | passed | 0.01674 seconds |
31
+ ./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:2:1] | passed | 0.13941 seconds |
@@ -8,11 +8,12 @@ feature 'Index page map', js: true do
8
8
  # Zoomed to world
9
9
  expect(page).to have_css 'img[src*="/light_all/1/0/0.png"]'
10
10
 
11
- # Disabled pagination
12
- expect(page).to have_css 'ul.pagination li.disabled', count: 6
11
+ # Hides pagination
12
+ expect(page).to have_css 'nav.pagination', visible: false
13
+ expect(page).to have_css 'ul.pagination', visible: false
13
14
 
14
15
  # Document counts
15
- expect(page).to have_css '.page_links', text: '18 items found'
16
+ expect(page).to have_css '.page-links', text: '18 items found'
16
17
 
17
18
  expect(page).to have_css '#index-map-sidebar', visible: false
18
19
  page.first('svg g path').click
@@ -26,12 +26,13 @@ describe Blacklight::MapsHelper do
26
26
  .to have_css '[data-basemap-provider="positron"]'
27
27
  expect(helper.index_map_div).to have_css '[data-sidebar-template]'
28
28
  expect(helper.index_map_div).to have_css '[data-color-ramp]'
29
+ expect(helper.index_map_div).to have_css '[aria-label="heatmap"]'
29
30
  end
30
31
  end
31
32
  describe '#sidebar_template' do
32
33
  it 'renders html template used in sidebar' do
33
34
  expect(helper.sidebar_template)
34
- .to have_css '.media .media-body h3.media-heading a', text: '{title_display}'
35
+ .to have_css '.media .media-body h3.media-heading a', text: '{title}'
35
36
  end
36
37
  end
37
38
  end
@@ -17,8 +17,9 @@ require 'rspec/rails'
17
17
 
18
18
  Dir[Pathname.new(File.expand_path("../support/**/*.rb", __FILE__))].each { |f| require f }
19
19
 
20
- require 'capybara/poltergeist'
21
- Capybara.javascript_driver = :poltergeist
20
+ require 'webdrivers/chromedriver'
21
+
22
+ Capybara.javascript_driver = :selenium_chrome_headless
22
23
 
23
24
  require 'blacklight'
24
25
  require 'blacklight_heatmaps'
@@ -0,0 +1 @@
1
+ gem 'sprockets', '< 4'
@@ -4,7 +4,7 @@ class TestAppGenerator < Rails::Generators::Base
4
4
  source_root './spec/test_app_templates'
5
5
 
6
6
  def add_gems
7
- gem 'blacklight', '~> 6.0'
7
+ gem 'blacklight', '~> 7.0'
8
8
 
9
9
  Bundler.with_clean_env do
10
10
  run 'bundle install'
@@ -28,20 +28,7 @@ L.SolrHeatmap = L.GeoJSON.extend({
28
28
 
29
29
  _computeHeatmapObject: function (data) {
30
30
  var _this = this;
31
- _this.facetHeatmap = {},
32
- facetHeatmapArray = data.response.facet_heatmaps[this.options.field];
33
-
34
- // Convert array to an object
35
- $.each(facetHeatmapArray, function (index, value) {
36
- if ((index + 1) % 2 !== 0) {
37
- // Set object keys for even items
38
- _this.facetHeatmap[value] = '';
39
- }else {
40
- // Set object values for odd items
41
- _this.facetHeatmap[facetHeatmapArray[index - 1]] = value;
42
- }
43
- });
44
-
31
+ _this.facetHeatmap = data.response.facet_heatmaps[this.options.field];
45
32
  this._computeIntArrays();
46
33
  },
47
34
 
metadata CHANGED
@@ -1,77 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_heatmaps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Reed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 4.2.6
20
17
  - - "<"
21
18
  - !ruby/object:Gem::Version
22
- version: '6'
19
+ version: '6.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 4.2.6
30
24
  - - "<"
31
25
  - !ruby/object:Gem::Version
32
- version: '6'
26
+ version: '6.1'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: blacklight
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '6.0'
33
+ version: '7.0'
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '6.0'
40
+ version: '7.0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: leaflet-rails
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - ">="
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: 1.2.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
- - - ">="
52
+ - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '0'
54
+ version: 1.2.0
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: leaflet-sidebar-rails
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: 0.1.9
61
+ version: '0.2'
68
62
  type: :runtime
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: 0.1.9
68
+ version: '0.2'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: sqlite3
77
71
  requirement: !ruby/object:Gem::Requirement
@@ -90,30 +84,30 @@ dependencies:
90
84
  name: rspec-rails
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
- - - "~>"
87
+ - - ">="
94
88
  - !ruby/object:Gem::Version
95
- version: '3.4'
89
+ version: '0'
96
90
  type: :development
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
- - - "~>"
94
+ - - ">="
101
95
  - !ruby/object:Gem::Version
102
- version: '3.4'
96
+ version: '0'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: engine_cart
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: '1.0'
103
+ version: '2.0'
110
104
  type: :development
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: '1.0'
110
+ version: '2.0'
117
111
  - !ruby/object:Gem::Dependency
118
112
  name: solr_wrapper
119
113
  requirement: !ruby/object:Gem::Requirement
@@ -143,7 +137,7 @@ dependencies:
143
137
  - !ruby/object:Gem::Version
144
138
  version: '0'
145
139
  - !ruby/object:Gem::Dependency
146
- name: poltergeist
140
+ name: webdrivers
147
141
  requirement: !ruby/object:Gem::Requirement
148
142
  requirements:
149
143
  - - ">="
@@ -166,6 +160,7 @@ files:
166
160
  - LICENSE.txt
167
161
  - README.md
168
162
  - Rakefile
163
+ - app/assets/images/blacklight/heatmaps.svg
169
164
  - app/assets/javascripts/blacklight_heatmaps/basemaps.js
170
165
  - app/assets/javascripts/blacklight_heatmaps/blacklight_heatmaps.js
171
166
  - app/assets/javascripts/blacklight_heatmaps/default.js
@@ -183,8 +178,11 @@ files:
183
178
  - app/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior.rb
184
179
  - app/views/catalog/_document_heatmaps.html.erb
185
180
  - app/views/catalog/_show_leaflet_map_default.html.erb
186
- - app/views/catalog/index.json.jbuilder
181
+ - app/views/catalog/index.heatmaps.jbuilder
187
182
  - app/views/layouts/blacklight_heatmaps/application.html.erb
183
+ - config/locales/blacklight-heatmaps.en.yml
184
+ - config/locales/blacklight-heatmaps.es.yml
185
+ - config/locales/blacklight-heatmaps.pt-BR.yml
188
186
  - config/routes.rb
189
187
  - lib/blacklight_heatmaps.rb
190
188
  - lib/blacklight_heatmaps/engine.rb
@@ -206,6 +204,7 @@ files:
206
204
  - spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb
207
205
  - spec/spec_helper.rb
208
206
  - spec/support/fixture_data.rb
207
+ - spec/test_app_templates/Gemfile.extra
209
208
  - spec/test_app_templates/lib/generators/test_app_generator.rb
210
209
  - spec/views/catalog/_document_heatmaps.html.erb_spec.rb
211
210
  - spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb
@@ -230,25 +229,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
229
  - !ruby/object:Gem::Version
231
230
  version: '0'
232
231
  requirements: []
233
- rubyforge_project:
234
- rubygems_version: 2.6.8
232
+ rubygems_version: 3.1.2
235
233
  signing_key:
236
234
  specification_version: 4
237
235
  summary: Search and view Blacklight resources on a map.
238
236
  test_files:
237
+ - spec/spec_helper.rb
239
238
  - spec/examples.txt
239
+ - spec/features/show_page_map_spec.rb
240
240
  - spec/features/configurable_basemap_spec.rb
241
241
  - spec/features/index_page_map_spec.rb
242
- - spec/features/show_page_map_spec.rb
243
- - spec/fixtures/null_island.geojson
244
- - spec/helpers/blacklight/maps_helper_spec.rb
245
242
  - spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb
246
- - spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb
243
+ - spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb
247
244
  - spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb
245
+ - spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb
248
246
  - spec/models/concerns/blacklight_heatmaps/point_spec.rb
249
- - spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb
250
- - spec/spec_helper.rb
251
247
  - spec/support/fixture_data.rb
252
248
  - spec/test_app_templates/lib/generators/test_app_generator.rb
249
+ - spec/test_app_templates/Gemfile.extra
250
+ - spec/fixtures/null_island.geojson
253
251
  - spec/views/catalog/_document_heatmaps.html.erb_spec.rb
254
252
  - spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb
253
+ - spec/helpers/blacklight/maps_helper_spec.rb
@@ -1,10 +0,0 @@
1
- ##
2
- # Overrides default index.json.jbuilder from Blacklight by adding the
3
- # `facet_heatmaps` key/value
4
-
5
- json.response do
6
- json.docs @presenter.documents
7
- json.facets @presenter.search_facets_as_json
8
- json.facet_heatmaps @response['facet_counts']['facet_heatmaps']
9
- json.pages @presenter.pagination_info
10
- end