blazer 2.4.6 → 2.4.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08400542eda5d82b7569d90dad5f6c700ceab0484bd339d096eee09626db97a5'
4
- data.tar.gz: 609271bc5d4d07411b1505712ad2065fe91beff68092b66d28ecd42507d68d51
3
+ metadata.gz: 001d5a72253bcf62b525854064c1242e7569cc139b8263f54fade4536772de0a
4
+ data.tar.gz: 9bf14d133dec31e413fa37390cadcd24bf9e0ae965dee208fc7fe7acca0f9111
5
5
  SHA512:
6
- metadata.gz: 246f1436dbe7ab10d06c345d3d31c45e5da2762865d4179a469b5d066f65f1a151dda065068d428ea19cc2fead84ba3e6e8844858a493b43fb04a17b081e4f0f
7
- data.tar.gz: 436decf768b654fadb06e93a2414a087c816b509849d295e291275c7e69bcb73fdcabaf9496d2ee5c83146c29305aa2cc130a3b41b98617214c3033177931ae7
6
+ metadata.gz: d0406c619b9f6ab242d7dd8d6dcca2341876ee9b5326638a57c590a5a95ecffccc9082b6323dca929487c8d55d5961b93e53788d323866c3d97d06aa846de21a
7
+ data.tar.gz: 8841aaf8abbedd623b355fac0dd455a1c437abf297748ca847df15c895ba8ff59bda8c536e48da0c1e3fd882e10dbe449f6ba9c7916f0ac3caa882d822339b00
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 2.4.7 (2021-09-25)
2
+
3
+ - Made Action Mailer optional
4
+ - Fixed error with multiple maps on dashboard
5
+
1
6
  ## 2.4.6 (2021-09-20)
2
7
 
3
8
  - Added support for workgroup with Amazon Athena
@@ -73,12 +73,14 @@
73
73
  <% series_library[1] = {borderDash: [8], borderColor: color, pointBackgroundColor: color, backgroundColor: color, pointHoverBackgroundColor: color} %>
74
74
  <% end %>
75
75
  <% if blazer_maps? && @markers.any? %>
76
- <div id="map" style="height: <%= @only_chart ? 300 : 500 %>px;"></div>
76
+ <% map_id = SecureRandom.hex %>
77
+ <%= content_tag :div, nil, id: map_id, style: "height: #{@only_chart ? 300 : 500}px;" %>
77
78
  <script>
78
79
  <%= blazer_js_var "mapboxAccessToken", Blazer.mapbox_access_token %>
79
80
  <%= blazer_js_var "markers", @markers %>
81
+ <%= blazer_js_var "mapId", map_id %>
80
82
  L.mapbox.accessToken = mapboxAccessToken;
81
- var map = L.mapbox.map('map')
83
+ var map = L.mapbox.map(mapId)
82
84
  .addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));
83
85
  var featureLayer = L.mapbox.featureLayer().addTo(map);
84
86
  var geojson = [];
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Blazer
2
- VERSION = "2.4.6"
2
+ VERSION = "2.4.7"
3
3
  end
data/lib/blazer.rb CHANGED
@@ -38,6 +38,11 @@ module Blazer
38
38
  class UploadError < Error; end
39
39
  class TimeoutNotSupported < Error; end
40
40
 
41
+ # actionmailer optional
42
+ autoload :CheckMailer, "blazer/check_mailer"
43
+ # net/http optional
44
+ autoload :SlackNotifier, "blazer/slack_notifier"
45
+
41
46
  class << self
42
47
  attr_accessor :audit
43
48
  attr_reader :time_zone
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.4.6
4
+ version: 2.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-21 00:00:00.000000000 Z
11
+ date: 2021-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -119,8 +119,6 @@ files:
119
119
  - app/controllers/blazer/queries_controller.rb
120
120
  - app/controllers/blazer/uploads_controller.rb
121
121
  - app/helpers/blazer/base_helper.rb
122
- - app/mailers/blazer/check_mailer.rb
123
- - app/mailers/blazer/slack_notifier.rb
124
122
  - app/models/blazer/audit.rb
125
123
  - app/models/blazer/check.rb
126
124
  - app/models/blazer/connection.rb
@@ -177,12 +175,14 @@ files:
177
175
  - lib/blazer/adapters/soda_adapter.rb
178
176
  - lib/blazer/adapters/spark_adapter.rb
179
177
  - lib/blazer/adapters/sql_adapter.rb
178
+ - lib/blazer/check_mailer.rb
180
179
  - lib/blazer/data_source.rb
181
180
  - lib/blazer/detect_anomalies.R
182
181
  - lib/blazer/engine.rb
183
182
  - lib/blazer/result.rb
184
183
  - lib/blazer/run_statement.rb
185
184
  - lib/blazer/run_statement_job.rb
185
+ - lib/blazer/slack_notifier.rb
186
186
  - lib/blazer/version.rb
187
187
  - lib/generators/blazer/install_generator.rb
188
188
  - lib/generators/blazer/templates/config.yml.tt