blacklight_heatmaps 0.2.0 → 0.3.0
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 +4 -4
- data/lib/blacklight_heatmaps/version.rb +1 -1
- data/lib/generators/blacklight_heatmaps/install_generator.rb +0 -4
- data/spec/helpers/blacklight/maps_helper_spec.rb +6 -7
- data/spec/spec_helper.rb +36 -2
- data/spec/views/catalog/_show_leaflet_map_default.html.erb_spec.rb +5 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adcba0150eab159cf8394afa9b77f9bd9ef21c77
|
4
|
+
data.tar.gz: 8d2e36ea948118384a245cc56b3ade2c5b760687
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3ec478fb3d1030edef201bbe1abe1112137ae152c861942760da1bb7dec6b9beb25b269b1123cb7ca07c9a836e44784ba137e95c43867b3cc4115a21acd06b0
|
7
|
+
data.tar.gz: 869ca21a48da8934de63b2e0ef2fa31d906bd950b6cf64763bc1816c20dcf153d4c965766afb918153d97af5943d6d19b1df81e1a0ba55827bfa93c4278a495a
|
@@ -2,13 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Blacklight::MapsHelper do
|
4
4
|
let(:blacklight_config) do
|
5
|
-
Blacklight::Configuration.new
|
6
|
-
basemap_provider
|
7
|
-
geometry_field
|
8
|
-
index
|
9
|
-
|
10
|
-
|
11
|
-
)
|
5
|
+
Blacklight::Configuration.new do |config|
|
6
|
+
config.basemap_provider = 'positron'
|
7
|
+
config.geometry_field = 'geo_srpt'
|
8
|
+
config.index.title_field = 'title_display'
|
9
|
+
config.view.heatmaps.color_ramp = ['#fef0d9', '#fdcc8a']
|
10
|
+
end
|
12
11
|
end
|
13
12
|
before do
|
14
13
|
allow(helper).to receive_messages(blacklight_config: blacklight_config)
|
data/spec/spec_helper.rb
CHANGED
@@ -23,6 +23,40 @@ Capybara.javascript_driver = :poltergeist
|
|
23
23
|
require 'blacklight'
|
24
24
|
require 'blacklight_heatmaps'
|
25
25
|
|
26
|
-
RSpec.configure do |
|
27
|
-
|
26
|
+
RSpec.configure do |config|
|
27
|
+
config.infer_spec_type_from_file_location!
|
28
|
+
|
29
|
+
config.expect_with :rspec do |expectations|
|
30
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
31
|
+
end
|
32
|
+
|
33
|
+
config.default_formatter = 'doc' if config.files_to_run.one?
|
34
|
+
|
35
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
36
|
+
|
37
|
+
# This allows you to limit a spec run to individual examples or groups
|
38
|
+
# you care about by tagging them with `:focus` metadata. When nothing
|
39
|
+
# is tagged with `:focus`, all examples get run. RSpec also provides
|
40
|
+
# aliases for `it`, `describe`, and `context` that include `:focus`
|
41
|
+
# metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
42
|
+
config.filter_run_when_matching :focus
|
43
|
+
|
44
|
+
config.example_status_persistence_file_path = 'spec/examples.txt'
|
45
|
+
|
46
|
+
# Print the 10 slowest examples and example groups at the
|
47
|
+
# end of the spec run, to help surface which specs are running
|
48
|
+
# particularly slow.
|
49
|
+
config.profile_examples = 10
|
50
|
+
|
51
|
+
# Run specs in random order to surface order dependencies. If you find an
|
52
|
+
# order dependency and want to debug it, you can fix the order by providing
|
53
|
+
# the seed, which is printed after each run.
|
54
|
+
# --seed 1234
|
55
|
+
config.order = :random
|
56
|
+
|
57
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
58
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
59
|
+
# test failures related to randomization by passing the same `--seed` value
|
60
|
+
# as the one that triggered the failure.
|
61
|
+
Kernel.srand config.seed
|
28
62
|
end
|
@@ -4,7 +4,11 @@ describe 'catalog/_show_leaflet_map_default.html.erb' do
|
|
4
4
|
let(:document) do
|
5
5
|
SolrDocument.new(geo_srpt: 'ENVELOPE(1,2,4,3)', id: 'abc123')
|
6
6
|
end
|
7
|
-
let(:blacklight_config)
|
7
|
+
let(:blacklight_config) do
|
8
|
+
Blacklight::Configuration.new do |config|
|
9
|
+
config.basemap_provider = 'positron'
|
10
|
+
end
|
11
|
+
end
|
8
12
|
before do
|
9
13
|
allow(view).to receive(:document).and_return(document)
|
10
14
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight_heatmaps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2016-
|
11
|
+
date: 2016-09-20 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
19
|
version: 4.2.6
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '6'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 4.2.6
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '6'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: blacklight
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,36 +90,30 @@ dependencies:
|
|
84
90
|
name: rspec-rails
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
|
-
- - "
|
93
|
+
- - "~>"
|
88
94
|
- !ruby/object:Gem::Version
|
89
95
|
version: '3.4'
|
90
|
-
- - "<"
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: '4'
|
93
96
|
type: :development
|
94
97
|
prerelease: false
|
95
98
|
version_requirements: !ruby/object:Gem::Requirement
|
96
99
|
requirements:
|
97
|
-
- - "
|
100
|
+
- - "~>"
|
98
101
|
- !ruby/object:Gem::Version
|
99
102
|
version: '3.4'
|
100
|
-
- - "<"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '4'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: engine_cart
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0
|
109
|
+
version: '1.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: '0
|
116
|
+
version: '1.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: solr_wrapper
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
231
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.5.1
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: Search and view Blacklight resources on a map.
|