solid_errors 0.4.0 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0f7fa69e2efa8949c085b3ba7b72b407dd3d670643c76260a6f8addf836305f
4
- data.tar.gz: f931d1de445d5d3fe124dc352e2a81513d174d37ed6ae923122e95e2468ccc7e
3
+ metadata.gz: 502b309733d074ca7a0d47c9207964de7316ec9b0fdb39530d987e4d8698aea7
4
+ data.tar.gz: 1a81591573e559628e99360fffe6d2f727f519a68c6254339b089cf9f6b9da12
5
5
  SHA512:
6
- metadata.gz: 3a2eb10327f7a11569d1cc90f2418bd28252d177b23c329c8a4105b2cb22a4fa17e36b44dbe5f1f341c222de2be9ba149fb4ce6e308b5c6aa99b1160de678b83
7
- data.tar.gz: 52f3d7fd1669173da1ce9155370d92bae1678c4ae4326c2637e026c93cc9eeb84e091c587f8322fd6b9f9228c79f31262c0cd9b42be98d65837004754efc2ec3
6
+ metadata.gz: 12642107e9c31caa1819026ae43d992ceae2449d07655ef3fff6569a258b18272c2c94098a1b0dc6028e8d71bb652a86a6a2030ce1b38afea90cc55e7d87735b
7
+ data.tar.gz: ddd1e53133b7c2a7e04fd8a1fa53072d00838bfe901e58236b23870cc520551b431933eed72a1d07b4dcf6745addb481df1637486540d8b5201e784d2b41412a
data/README.md CHANGED
@@ -27,6 +27,11 @@
27
27
 
28
28
  Solid Errors is a DB-based, app-internal exception tracker for Rails applications, designed with simplicity and performance in mind. It uses the new [Rails error reporting API](https://guides.rubyonrails.org/error_reporting.html) to store uncaught exceptions in the database, and provides a simple UI for viewing and managing exceptions.
29
29
 
30
+ > [!WARNING]
31
+ > The current point release of Rails (7.1.3.2) has a bug which severely limits the utility of Solid Errors. Exceptions raised during a web request *are not* reported to Rails' error reporter. There is a fix in the `main` branch, but it has not been released in a new point release. As such, Solid Errors is **not** production-ready unless you are running Rails from the `main` branch or until a new point version is released and you upgrade.
32
+ > The original bug report can be found [here](https://github.com/rails/rails/issues/51002) and the pull request making the fix is [here](https://github.com/rails/rails/pull/51050). I will try to backport the fix into the gem directly, but I haven't quite figured it out yet.
33
+
34
+
30
35
  ## Installation
31
36
 
32
37
  Install the gem and add to the application's Gemfile by executing:
@@ -14,7 +14,7 @@
14
14
  <%= error.occurrences_count %>
15
15
  </td>
16
16
  <td scope="col" class="whitespace-nowrap px-3 py-4 pt-7 text-gray-500 text-right">
17
- <% last_seen_at = DateTime.strptime(error.recent_occurrence, "%Y-%m-%d %H:%M:%S.%N") %>
17
+ <% last_seen_at = error.recent_occurrence.is_a?(String) ? DateTime.strptime(error.recent_occurrence, "%Y-%m-%d %H:%M:%S.%N") : error.recent_occurrence %>
18
18
  <abbr title="<%= last_seen_at.iso8601 %>" class="cursor-help">
19
19
  <%= time_tag last_seen_at, time_ago_in_words(last_seen_at, scope: 'datetime.distance_in_words.short') %>
20
20
  </abbr>
@@ -1,6 +1,6 @@
1
1
  <% seen_at = occurrence.created_at %>
2
2
  <% backtrace = occurrence.parsed_backtrace %>
3
- <% open ||= (defined?(occurrence_counter) && occurrence_counter.zero?) || true %>
3
+ <% open ||= defined?(occurrence_counter) ? occurrence_counter.zero? : true %>
4
4
 
5
5
  <%= tag.section id: dom_id(occurrence), class: "" do %>
6
6
  <%= tag.details open: open do %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidErrors
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Margheim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-09 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer