blacklight_heatmaps 0.8.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
2
  SHA256:
3
- metadata.gz: 851dcc5ba717a22f94a0f4f993f51a04f13ee2de413d5240f2217e12d9fa5aea
4
- data.tar.gz: 7fa88efc31fd162d3803750b36af341bbca8e90d5508ff4059eee182d9f9daec
3
+ metadata.gz: 6ecd69bfd4c5b715f5489c1a773ec4601faec3522e862dda35d704be80c1cb31
4
+ data.tar.gz: b8a98ef63e1da217f62846a84a3ad4f5a387fe8c56a65f2fc0d676a9c97c39c3
5
5
  SHA512:
6
- metadata.gz: 560fba772316a81e1ec77a8465514136088e9fc5c4bd24308e514856fa65e36431ddbc146256e86c99a44c93c054a9f6bf59429a45505f65d56a1ca572587a5a
7
- data.tar.gz: da93fcd1fbcd368f52e3e569c94d725e1868122fbca9872ff6b00a4a78f2dc8827ecaeea61f6c5be09fe59861126ed84e6300330bad9542256b0611fd3b66038
6
+ metadata.gz: f4ec702d38e8a4516194e46254c11952a418c09b6f5a03aa9d179c3d98bafe18fadd6bd755cf33873c2283ec35c60e4719b1aa0db100e1b19bc9430d9ef69f00
7
+ data.tar.gz: 1037d6955d11607ae827e8e46a1363e47a5e164e1e5f154c600c1fdbe3762a55db01d9e269c43dd0cd93be972d39099f230648ba098039ec348501d19160a550
@@ -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
 
@@ -0,0 +1,8 @@
1
+ en:
2
+ blacklight:
3
+ heatmaps:
4
+ title: Map
5
+ aria-label: heatmap
6
+ search:
7
+ view:
8
+ heatmaps: Map
@@ -1,3 +1,3 @@
1
1
  module BlacklightHeatmaps
2
- VERSION = "0.8.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
@@ -1,31 +1,31 @@
1
1
  example_id | status | run_time |
2
2
  --------------------------------------------------------------------------------------- | ------ | --------------- |
3
- ./spec/features/configurable_basemap_spec.rb[1:1] | passed | 0.20031 seconds |
4
- ./spec/features/configurable_basemap_spec.rb[1:2:1] | passed | 0.23369 seconds |
5
- ./spec/features/configurable_basemap_spec.rb[1:3:1] | passed | 0.21389 seconds |
6
- ./spec/features/index_page_map_spec.rb[1:1] | passed | 5.31 seconds |
7
- ./spec/features/show_page_map_spec.rb[1:1] | passed | 0.4718 seconds |
8
- ./spec/features/show_page_map_spec.rb[1:2] | passed | 0.17066 seconds |
9
- ./spec/helpers/blacklight/maps_helper_spec.rb[1:1:1] | passed | 0.00641 seconds |
10
- ./spec/helpers/blacklight/maps_helper_spec.rb[1:2:1] | passed | 0.00372 seconds |
11
- ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:1:1] | passed | 0.00018 seconds |
12
- ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:2:1] | passed | 0.00018 seconds |
13
- ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:3:1] | passed | 0.00063 seconds |
14
- ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:4:1] | passed | 0.00073 seconds |
15
- ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:1:1] | passed | 0.00022 seconds |
16
- ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:2:1] | passed | 0.00018 seconds |
17
- ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:3:1] | passed | 0.00265 seconds |
18
- ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:1:1] | passed | 0.00052 seconds |
19
- ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:2:1] | passed | 0.00023 seconds |
20
- ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:3:1] | passed | 0.00102 seconds |
21
- ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:4:1] | passed | 0.00039 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.00239 seconds |
24
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:1:1] | passed | 0.0009 seconds |
25
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:2:1] | passed | 0.00275 seconds |
26
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:2:1] | passed | 0.00842 seconds |
27
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:3:1] | passed | 0.00092 seconds |
28
- ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:4:1] | passed | 0.00087 seconds |
29
- ./spec/views/catalog/_document_heatmaps.html.erb_spec.rb[1:1] | passed | 0.01284 seconds |
30
- ./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:1:1] | passed | 0.05054 seconds |
31
- ./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:2:1] | passed | 0.00129 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
+ ./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.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 |
@@ -26,6 +26,7 @@ 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
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_heatmaps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.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: 2020-02-10 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
- - - "~>"
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '6.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: blacklight
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: rspec-rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '3.4'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '3.4'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: engine_cart
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -180,6 +180,7 @@ files:
180
180
  - app/views/catalog/_show_leaflet_map_default.html.erb
181
181
  - app/views/catalog/index.heatmaps.jbuilder
182
182
  - app/views/layouts/blacklight_heatmaps/application.html.erb
183
+ - config/locales/blacklight-heatmaps.en.yml
183
184
  - config/locales/blacklight-heatmaps.es.yml
184
185
  - config/locales/blacklight-heatmaps.pt-BR.yml
185
186
  - config/routes.rb
@@ -228,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
229
  - !ruby/object:Gem::Version
229
230
  version: '0'
230
231
  requirements: []
231
- rubygems_version: 3.1.1
232
+ rubygems_version: 3.1.2
232
233
  signing_key:
233
234
  specification_version: 4
234
235
  summary: Search and view Blacklight resources on a map.