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 +5 -5
- data/Rakefile +1 -1
- data/lib/blacklight_heatmaps/version.rb +1 -1
- data/spec/examples.txt +29 -29
- data/spec/spec_helper.rb +3 -2
- data/spec/test_app_templates/Gemfile.extra +1 -0
- data/vendor/assets/javascripts/leaflet_solr_heatmap.js +1 -14
- metadata +14 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cefef95e8b1a4bb3a7e075c2eec6832db12e6baadd58a03c97af5165d95fca89
|
4
|
+
data.tar.gz: e3032fe56ab7fa0848ba334f2faf12b97a9657e62912aaa4a8269530e954db7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 442643a2ab97acd4ddf6e71f9cb015a62d1ef194adb3084105a11300988e3361df51422e133f6664956e413ff86998dccc5ce5d7d3431b9619ebd88e092bb4af
|
7
|
+
data.tar.gz: ea43d51dc46c20bf0304e0d4d65d2106e50ef5fc1a8549579c8dfe2a20a20be56b88840f5eddabf78b7ce0763f2d35a7321512f2ba6df28247689473c033320b
|
data/Rakefile
CHANGED
data/spec/examples.txt
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
--------------------------------------------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/features/configurable_basemap_spec.rb[1:1] | passed |
|
4
|
-
./spec/features/configurable_basemap_spec.rb[1:2:1] | passed | 0.
|
5
|
-
./spec/features/configurable_basemap_spec.rb[1:3:1] | passed | 0.
|
6
|
-
./spec/features/index_page_map_spec.rb[1:1] | passed |
|
7
|
-
./spec/features/show_page_map_spec.rb[1:1] | passed | 0.
|
8
|
-
./spec/features/show_page_map_spec.rb[1:2] | passed | 0.
|
9
|
-
./spec/helpers/blacklight/maps_helper_spec.rb[1:1:1] | passed | 0.
|
10
|
-
./spec/helpers/blacklight/maps_helper_spec.rb[1:2:1] | passed | 0.
|
11
|
-
./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:1:1] | passed | 0.
|
12
|
-
./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:2:1] | passed | 0.
|
13
|
-
./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:3:1] | passed | 0.
|
14
|
-
./spec/models/concerns/blacklight_heatmaps/bounding_box_spec.rb[1:4:1] | passed | 0.
|
15
|
-
./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:1:1] | passed | 0.
|
16
|
-
./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:2:1] | passed | 0.
|
17
|
-
./spec/models/concerns/blacklight_heatmaps/geometry_parser_spec.rb[1:1:3:1] | passed | 0.
|
18
|
-
./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:1:1] | passed | 0.
|
19
|
-
./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:2:1] | passed | 0.
|
20
|
-
./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:3:1] | passed | 0.
|
21
|
-
./spec/models/concerns/blacklight_heatmaps/geometry_solr_document_spec.rb[1:4:1] | passed | 0.
|
22
|
-
./spec/models/concerns/blacklight_heatmaps/point_spec.rb[1:1:1] | passed | 0.
|
23
|
-
./spec/models/concerns/blacklight_heatmaps/point_spec.rb[1:2:1] | passed | 0.
|
24
|
-
./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:1:1] | passed | 0.
|
25
|
-
./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:1:2:1] | passed | 0.
|
26
|
-
./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:2:1] | passed | 0.
|
27
|
-
./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:3:1] | passed | 0.
|
28
|
-
./spec/models/concerns/blacklight_heatmaps/solr_facet_heatmap_behavior_spec.rb[1:4:1] | passed | 0.
|
29
|
-
./spec/views/catalog/_document_heatmaps.html.erb_spec.rb[1:1] | passed | 0.
|
30
|
-
./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:1:1] | passed | 0.
|
31
|
-
./spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb[1:2:1] | passed | 0.
|
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 |
|
data/spec/spec_helper.rb
CHANGED
@@ -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 '
|
21
|
-
|
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.
|
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:
|
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: '
|
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: '
|
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:
|
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
|
-
|
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/
|
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
|