rails_error_dashboard 0.1.35 → 0.1.36

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: fffc41c15ddb45455f4592b2055441769976dc9cdce432eadf227392bf4c4cb2
4
- data.tar.gz: 3d6560270b35a67493596144de3d18ffd8707a7225ef767ff2ab1ff73951e9a8
3
+ metadata.gz: aae0da8a196598bd4a8ab5955e07684c4cb8dd1b959e821c6d35c514abcb3fea
4
+ data.tar.gz: 9479ae765eaaa528dd62d8c6cfe3e4bab8dbf66af056c8ef4210f432d9fc3f71
5
5
  SHA512:
6
- metadata.gz: 2e9590d3811adc5aa9f393866a92030c0c6154d2a2982e0994a5f3b5092b6868615e9dc5d6fa89c59ffbc17a077a65666e492f9060fbf1f6ed2c01b52cc3ad6b
7
- data.tar.gz: 91601df38a8a8269ac0e9058781fa0c50836d9a67bc7142e1ce303ec97ec6a72c878250fb89beaee2dbbd7126b54435c965d4768f84d99c397022f088b44cbd4
6
+ metadata.gz: 25640c5213a9b56ca9392945cd74319d216a8dae4e81966d2f64920202e7ab9e92ce214b2c710f6d1e0561753bc6dc5ec7c5e840ba701365099a3b9cd0803deb
7
+ data.tar.gz: 651df5b45d9547541482185aea74dd357140f74fd879f15f4d5c90073b1e3e50f98e29a64e3d00ebd1c439878d959e03bbaf5e31add1566e2f4808ef424b4fc2
@@ -207,7 +207,7 @@ module RailsErrorDashboard
207
207
  return "" if text.blank?
208
208
 
209
209
  # Get repository URL from error's application or global config
210
- repo_url = if error&.application&.repository_url.present?
210
+ repo_url = if error&.application.respond_to?(:repository_url) && error.application.repository_url.present?
211
211
  error.application.repository_url
212
212
  elsif RailsErrorDashboard.configuration.git_repository_url.present?
213
213
  RailsErrorDashboard.configuration.git_repository_url
@@ -293,20 +293,17 @@
293
293
  Time-Correlated Errors
294
294
  </h6>
295
295
  <div class="list-group list-group-flush">
296
- <% @time_correlated_errors.each do |group| %>
296
+ <% @time_correlated_errors.each do |_, data| %>
297
297
  <div class="list-group-item px-0 py-2">
298
298
  <div class="small">
299
- <strong><%= group[:error_types].size %> error types</strong>
300
- <div class="text-muted">
301
- occurred together <%= group[:occurrences] %> time<%= group[:occurrences] != 1 ? 's' : '' %>
299
+ <div class="d-flex align-items-center gap-1">
300
+ <code class="text-truncate"><%= data[:error_type_a] %></code>
301
+ <i class="bi bi-arrow-left-right text-muted"></i>
302
+ <code class="text-truncate"><%= data[:error_type_b] %></code>
302
303
  </div>
303
- <div class="mt-1">
304
- <% group[:error_types].first(2).each do |type| %>
305
- <code class="small d-block text-truncate"><%= type %></code>
306
- <% end %>
307
- <% if group[:error_types].size > 2 %>
308
- <small class="text-muted">+<%= group[:error_types].size - 2 %> more</small>
309
- <% end %>
304
+ <div class="text-muted mt-1">
305
+ Correlation: <strong><%= (data[:correlation] * 100).round(0) %>%</strong>
306
+ (<%= data[:strength] %>)
310
307
  </div>
311
308
  </div>
312
309
  </div>
@@ -1,3 +1,3 @@
1
1
  module RailsErrorDashboard
2
- VERSION = "0.1.35"
2
+ VERSION = "0.1.36"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_error_dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.35
4
+ version: 0.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anjan Jagirdar
@@ -391,7 +391,7 @@ metadata:
391
391
  documentation_uri: https://AnjanJ.github.io/rails_error_dashboard
392
392
  bug_tracker_uri: https://github.com/AnjanJ/rails_error_dashboard/issues
393
393
  post_install_message: "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n
394
- \ Rails Error Dashboard v0.1.35\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F195
394
+ \ Rails Error Dashboard v0.1.36\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F195
395
395
  First time? Quick start:\n rails generate rails_error_dashboard:install\n rails
396
396
  db:migrate\n # Add to config/routes.rb:\n mount RailsErrorDashboard::Engine
397
397
  => '/error_dashboard'\n\n\U0001F504 Upgrading from v0.1.x?\n rails db:migrate\n