blazer 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of blazer might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bc246636d4907ea33d0194ed415aaa5669013ee3e71728ef024f89ac9860feb
|
4
|
+
data.tar.gz: 3c4d7cf6b528716d80578aea44ef733e8e30c040785d585b4abf183251b87e3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66e86f97070e03626320557b119666898db9ffbf812edd6b4c502384d6ad1b1e4b428d9d832be83ba0eaa004188403db2f66cc7b6a76c70dd351c1861fd8d6b5
|
7
|
+
data.tar.gz: df1eeee72f609e1c4b5a19da492803bc86737ff26d3fce9ef86490cb54b3444baecd2ceaa4dc2fa5c1773d68462e28927142f67878ee6284de97a4cb7743cf63
|
data/CHANGELOG.md
CHANGED
@@ -249,7 +249,9 @@ module Blazer
|
|
249
249
|
r[lat_index] && r[lon_index]
|
250
250
|
end.map do |r|
|
251
251
|
{
|
252
|
-
|
252
|
+
# Mapbox.js does sanitization with https://github.com/mapbox/sanitize-caja
|
253
|
+
# but we should do it here as well
|
254
|
+
title: r.each_with_index.map { |v, i| i == lat_index || i == lon_index ? nil : "<strong>#{ERB::Util.html_escape(@columns[i])}:</strong> #{ERB::Util.html_escape(v)}" }.compact.join("<br />").truncate(140),
|
253
255
|
latitude: r[lat_index],
|
254
256
|
longitude: r[lon_index]
|
255
257
|
}
|
@@ -80,7 +80,8 @@
|
|
80
80
|
<%= blazer_js_var "mapboxAccessToken", Blazer.mapbox_access_token %>
|
81
81
|
<%= blazer_js_var "markers", @markers %>
|
82
82
|
L.mapbox.accessToken = mapboxAccessToken;
|
83
|
-
var map = L.mapbox.map('map'
|
83
|
+
var map = L.mapbox.map('map')
|
84
|
+
.addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));
|
84
85
|
var featureLayer = L.mapbox.featureLayer().addTo(map);
|
85
86
|
var geojson = [];
|
86
87
|
for (var i = 0; i < markers.length; i++) {
|
@@ -11,8 +11,8 @@
|
|
11
11
|
<%= blazer_js_var "rootPath", root_path %>
|
12
12
|
</script>
|
13
13
|
<% if blazer_maps? %>
|
14
|
-
<%= stylesheet_link_tag "https://api.mapbox.com/mapbox.js/v3.
|
15
|
-
<%= javascript_include_tag "https://api.mapbox.com/mapbox.js/v3.
|
14
|
+
<%= stylesheet_link_tag "https://api.mapbox.com/mapbox.js/v3.3.1/mapbox.css", integrity: "sha384-vxzdEt+wZRPNQbhChjmiaFMLWg86IGuq1NGDehJHsD2mphYkxXll/eSs16WWi6Dq", crossorigin: "anonymous" %>
|
15
|
+
<%= javascript_include_tag "https://api.mapbox.com/mapbox.js/v3.3.1/mapbox.js", integrity: "sha384-CTBEiDLiZJ8gkAQ3fYGoeiRp81/ecNiBkGz11jXFALOZ6++rbnqmdo6OImkmr1MO", crossorigin: "anonymous" %>
|
16
16
|
<% end %>
|
17
17
|
<%= csrf_meta_tags %>
|
18
18
|
</head>
|
data/lib/blazer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blazer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|