blazer 2.2.4 → 2.2.5

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.

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: e454795e47e3b6103e6940b3e7a3e80f90ea70a10d9c46b4d76fb29ca0fd049c
4
- data.tar.gz: f12283029d39197c71a4d77d808d732fe9de54992f9125fd79d2c425d93a4573
3
+ metadata.gz: 7bc246636d4907ea33d0194ed415aaa5669013ee3e71728ef024f89ac9860feb
4
+ data.tar.gz: 3c4d7cf6b528716d80578aea44ef733e8e30c040785d585b4abf183251b87e3e
5
5
  SHA512:
6
- metadata.gz: 482d111ab41fa64901addcc45bd7b7113c25c2582a72ff6ef706b09da3d760229eadf258c85a78ed905e6c20f040ba78ef9bc2896d417f3ffcbd6dc4d092aaa5
7
- data.tar.gz: 321795b87920b085fb5167d4799a129081aa1bdd34adc3251173471bd18e5d66a78262e549972347c60da0b16eba969777229adbef80e846d79e1fbcb7de65b9
6
+ metadata.gz: 66e86f97070e03626320557b119666898db9ffbf812edd6b4c502384d6ad1b1e4b428d9d832be83ba0eaa004188403db2f66cc7b6a76c70dd351c1861fd8d6b5
7
+ data.tar.gz: df1eeee72f609e1c4b5a19da492803bc86737ff26d3fce9ef86490cb54b3444baecd2ceaa4dc2fa5c1773d68462e28927142f67878ee6284de97a4cb7743cf63
@@ -1,3 +1,7 @@
1
+ ## 2.2.5 (2020-06-03)
2
+
3
+ - Updated maps to fix deprecation error
4
+
1
5
  ## 2.2.4 (2020-05-30)
2
6
 
3
7
  - Fixed error with new queries
@@ -249,7 +249,9 @@ module Blazer
249
249
  r[lat_index] && r[lon_index]
250
250
  end.map do |r|
251
251
  {
252
- title: r.each_with_index.map{ |v, i| i == lat_index || i == lon_index ? nil : "<strong>#{@columns[i]}:</strong> #{v}" }.compact.join("<br />").truncate(140),
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', 'mapbox.streets');
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.2.1/mapbox.css", integrity: "sha384-vxzdEt+wZRPNQbhChjmiaFMLWg86IGuq1NGDehJHsD2mphYkxXll/eSs16WWi6Dq", crossorigin: "anonymous" %>
15
- <%= javascript_include_tag "https://api.mapbox.com/mapbox.js/v3.2.1/mapbox.js", integrity: "sha384-dRMjy8ZlKk6czEwpaK3yySKItGPpGOplDM1+osgTwGhmxeTPpjB4kmRbDr2Y7lfQ", crossorigin: "anonymous" %>
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>
@@ -1,3 +1,3 @@
1
1
  module Blazer
2
- VERSION = "2.2.4"
2
+ VERSION = "2.2.5"
3
3
  end
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
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-05-30 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties