blacklight_heatmaps 0.5.0 → 0.6.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: a41648cd28b8716eb682b2beb80a10fbc36b2b59
4
- data.tar.gz: 4c50eedead8620a1e97d2ebbbc398803c7725310
2
+ SHA256:
3
+ metadata.gz: cefef95e8b1a4bb3a7e075c2eec6832db12e6baadd58a03c97af5165d95fca89
4
+ data.tar.gz: e3032fe56ab7fa0848ba334f2faf12b97a9657e62912aaa4a8269530e954db7d
5
5
  SHA512:
6
- metadata.gz: d7e26cece5768efd65ee41f8a103a9ce93944007f2a300c7ad76a8255fb6813c89e3345f559b328af402753c7857c75737aaf6e1345910fe533e6203865974de
7
- data.tar.gz: 36ca174b98e98fda8a8a8d94e70dc43a5eb8cd9e983f3c240878622bcef6a8a41b57a89cd992491b11b7b9c5ccd284c569c46e154046883ca8a78ab08a2ae499
6
+ metadata.gz: 442643a2ab97acd4ddf6e71f9cb015a62d1ef194adb3084105a11300988e3361df51422e133f6664956e413ff86998dccc5ce5d7d3431b9619ebd88e092bb4af
7
+ data.tar.gz: ea43d51dc46c20bf0304e0d4d65d2106e50ef5fc1a8549579c8dfe2a20a20be56b88840f5eddabf78b7ce0763f2d35a7321512f2ba6df28247689473c033320b
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]
@@ -1,3 +1,3 @@
1
1
  module BlacklightHeatmaps
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -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 |
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 |
3
+ ./spec/features/configurable_basemap_spec.rb[1:1] | passed | 7.83 seconds |
4
+ ./spec/features/configurable_basemap_spec.rb[1:2:1] | passed | 0.29095 seconds |
5
+ ./spec/features/configurable_basemap_spec.rb[1:3:1] | passed | 0.24555 seconds |
6
+ ./spec/features/index_page_map_spec.rb[1:1] | passed | 0.55661 seconds |
7
+ ./spec/features/show_page_map_spec.rb[1:1] | passed | 0.52044 seconds |
8
+ ./spec/features/show_page_map_spec.rb[1:2] | passed | 0.2398 seconds |
9
+ ./spec/helpers/blacklight/maps_helper_spec.rb[1:1:1] | passed | 0.00666 seconds |
10
+ ./spec/helpers/blacklight/maps_helper_spec.rb[1:2:1] | passed | 0.00164 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.00026 seconds |
14
+ ./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:4:1] | passed | 0.00028 seconds |
15
+ ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:1:1] | passed | 0.00019 seconds |
16
+ ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:2:1] | passed | 0.001 seconds |
17
+ ./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:3:1] | passed | 0.00535 seconds |
18
+ ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:1:1] | passed | 0.00058 seconds |
19
+ ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:2:1] | passed | 0.00041 seconds |
20
+ ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:3:1] | passed | 0.00052 seconds |
21
+ ./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:4:1] | passed | 0.00028 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.00024 seconds |
24
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:1:1] | passed | 0.00079 seconds |
25
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:2:1] | passed | 0.00282 seconds |
26
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:2:1] | passed | 0.001 seconds |
27
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:3:1] | passed | 0.0008 seconds |
28
+ ./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:4:1] | passed | 0.00082 seconds |
29
+ ./spec/views/catalog/_document_heatmaps.html.erb_spec.rb[1:1] | passed | 0.01013 seconds |
30
+ ./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:1:1] | passed | 0.08558 seconds |
31
+ ./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:2:1] | passed | 0.00166 seconds |
@@ -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'
@@ -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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_heatmaps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.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-11-09 00:00:00.000000000 Z
11
+ date: 2020-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '1.0'
109
+ version: '2.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '1.0'
116
+ version: '2.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: solr_wrapper
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -143,7 +143,7 @@ dependencies:
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  - !ruby/object:Gem::Dependency
146
- name: poltergeist
146
+ name: webdrivers
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - ">="
@@ -206,6 +206,7 @@ files:
206
206
  - spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb
207
207
  - spec/spec_helper.rb
208
208
  - spec/support/fixture_data.rb
209
+ - spec/test_app_templates/Gemfile.extra
209
210
  - spec/test_app_templates/lib/generators/test_app_generator.rb
210
211
  - spec/views/catalog/_document_heatmaps.html.erb_spec.rb
211
212
  - spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb
@@ -230,25 +231,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
231
  - !ruby/object:Gem::Version
231
232
  version: '0'
232
233
  requirements: []
233
- rubyforge_project:
234
- rubygems_version: 2.6.14
234
+ rubygems_version: 3.1.1
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: Search and view Blacklight resources on a map.
238
238
  test_files:
239
+ - spec/spec_helper.rb
239
240
  - spec/examples.txt
241
+ - spec/features/show_page_map_spec.rb
240
242
  - spec/features/configurable_basemap_spec.rb
241
243
  - 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
244
  - spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb
246
- - spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb
245
+ - spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb
247
246
  - spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb
247
+ - spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb
248
248
  - 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
249
  - spec/support/fixture_data.rb
252
250
  - spec/test_app_templates/lib/generators/test_app_generator.rb
251
+ - spec/test_app_templates/Gemfile.extra
252
+ - spec/fixtures/null_island.geojson
253
253
  - spec/views/catalog/_document_heatmaps.html.erb_spec.rb
254
254
  - spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb
255
+ - spec/helpers/blacklight/maps_helper_spec.rb