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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 042e023f7ef8a19fb20f44b9c6cf044af997a58eab4c15c23030896798738a48
4
- data.tar.gz: 7e02ed9572becd8e6563c1f089ca710e4186704b6312edb453b5b12741e2679a
3
+ metadata.gz: a034955a760c572f2e8e317e1120eed78d92a0fe1a55cae7f96e571c66ef00cd
4
+ data.tar.gz: 8d7490b0198ee2e899c712c749a9e907755df31c3a900a51f21db5d089267ea7
5
5
  SHA512:
6
- metadata.gz: d71b734df7c89c784a01d005fbe41eb31ad7bd07e51aa2e8d1ef7049aeabee94888d9d93c0440445e40d6a179bbb0a60082b81fe7517d576688b1a05a49e5c1b
7
- data.tar.gz: 01ee124e9d940f36a0c2b9079bb173ea25fdfb0912991483dd35188984e28ce8a390d8fd9e2c2d10a33ac65e48b203c35eb6fb46a3160a722399dee63605badd
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 Backtrace
3
4
  # Holder for an Array of Backtrace::Line instances.
4
5
  attr_reader :lines, :application_lines
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidErrors
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
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.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-28 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails