solid_errors 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/models/solid_errors/backtrace.rb +1 -0
- data/app/models/solid_errors/backtrace_line.rb +1 -0
- data/lib/solid_errors/version.rb +1 -1
- data/lib/solid_errors.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a034955a760c572f2e8e317e1120eed78d92a0fe1a55cae7f96e571c66ef00cd
|
4
|
+
data.tar.gz: 8d7490b0198ee2e899c712c749a9e907755df31c3a900a51f21db5d089267ea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f674d6137d43517bc2c984c49bef87b521cc8fd72001f0d7fc6c14ac9072bd5a944af1f78ee06a74f10e0793db5187015d995915fda37bf5ed6f9e4f2314ea8
|
7
|
+
data.tar.gz: 39b0a00ec120b2d2a4c80b7602cacbc18ce97ad268cba8a62426d4c77c593ca7d10d7af18bb54c768530f2f7fe6999bdff76e533db74c7adc2680c2104d19f24
|
data/README.md
CHANGED
@@ -56,6 +56,8 @@ All exceptions are recorded automatically. No additional code required.
|
|
56
56
|
|
57
57
|
Please consult the [official guides](https://guides.rubyonrails.org/error_reporting.html) for an introduction to the error reporting API.
|
58
58
|
|
59
|
+
There are intentionally few features; you can view and resolve errors. That’s it. The goal is to provide a simple, lightweight, and performant solution for tracking exceptions in your Rails application. If you need more features, you should probably use a 3rd party service like [Honeybadger](https://www.honeybadger.io/), whose MIT-licensed [Ruby agent gem](https://github.com/honeybadger-io/honeybadger-ruby) provided a couple of critical pieces of code for this project.
|
60
|
+
|
59
61
|
### Configuration
|
60
62
|
|
61
63
|
You can configure Solid Errors via the Rails configuration object, under the `solid_errors` key. Currently, only 3 configuration options are available:
|
@@ -1,4 +1,5 @@
|
|
1
1
|
module SolidErrors
|
2
|
+
# adapted from: https://github.com/honeybadger-io/honeybadger-ruby/blob/master/lib/honeybadger/backtrace.rb
|
2
3
|
class BacktraceLine
|
3
4
|
# Backtrace line regexp (optionally allowing leading X: for windows support).
|
4
5
|
INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$}.freeze
|
data/lib/solid_errors/version.rb
CHANGED
data/lib/solid_errors.rb
CHANGED
@@ -14,13 +14,13 @@ module SolidErrors
|
|
14
14
|
# use method instead of attr_accessor to ensure
|
15
15
|
# this works if variable set after SolidErrors is loaded
|
16
16
|
def username
|
17
|
-
@username ||= ENV["SOLIDERRORS_USERNAME"]
|
17
|
+
@username ||= ENV["SOLIDERRORS_USERNAME"] || @@username
|
18
18
|
end
|
19
19
|
|
20
20
|
# use method instead of attr_accessor to ensure
|
21
21
|
# this works if variable set after SolidErrors is loaded
|
22
22
|
def password
|
23
|
-
@password ||= ENV["SOLIDERRORS_PASSWORD"]
|
23
|
+
@password ||= ENV["SOLIDERRORS_PASSWORD"] || @@password
|
24
24
|
end
|
25
25
|
end
|
26
26
|
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.3.
|
4
|
+
version: 0.3.4
|
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-01-
|
11
|
+
date: 2024-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|