exceptiontrap 2.1.0 → 2.1.1
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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +4 -1
- data/lib/exceptiontrap.rb +7 -0
- data/lib/exceptiontrap/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4075d73869f004d09948df53b128c1df6f989983fd9f99dee437db128768b64c
|
|
4
|
+
data.tar.gz: 0d5987fea6cbadb797baa0bbe30c435dad82a201c87c4148ef234abbfabaf0fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eaa2a96e1cdfc2a7698d1ae6c12df4f4920c25d1a6bedbf047ea363fcb5b3e64642e2f63398203133b1802623244a41556f5d30b11663c8fb3d706c2cd450e0e
|
|
7
|
+
data.tar.gz: bf872f0661122b503bc06873e6184b8805d21b8665a4b564b387f5e239520ceafbb5de25bf2a08d41f8f8f80512a0c67dd5c94f9671d488a6b9746a270381e10
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
[](https://badge.fury.io/rb/exceptiontrap)
|
|
2
|
+
[](https://codeclimate.com/github/itmLABS/exceptiontrap/maintainability)
|
|
3
|
+
|
|
1
4
|
# Exceptiontrap
|
|
2
5
|
|
|
3
6
|
This gem is used to catch and report your Ruby on Rails applications errors and exceptions to the [Exceptiontrap](https://exceptiontrap.com) webservice.
|
|
4
7
|
|
|
5
|
-
The gem is compatible with Rails 3, 4, and
|
|
8
|
+
The gem is compatible with Rails 3, 4, 5, and 6
|
|
6
9
|
|
|
7
10
|
## Setup
|
|
8
11
|
|
data/lib/exceptiontrap.rb
CHANGED
|
@@ -22,6 +22,13 @@ module Exceptiontrap
|
|
|
22
22
|
'Accept' => 'application/json'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
# Used by SidekiqException or for manual calls
|
|
26
|
+
def self.notify(exception, params = {})
|
|
27
|
+
return if disabled?
|
|
28
|
+
data = Data.rack_data(exception, params)
|
|
29
|
+
Notifier.notify(data)
|
|
30
|
+
end
|
|
31
|
+
|
|
25
32
|
def self.enabled?
|
|
26
33
|
Config.enabled_environments.include?(Data.application_environment)
|
|
27
34
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: exceptiontrap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tbuehl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
- !ruby/object:Gem::Version
|
|
78
78
|
version: '0'
|
|
79
79
|
requirements: []
|
|
80
|
-
rubygems_version: 3.0.
|
|
80
|
+
rubygems_version: 3.0.3
|
|
81
81
|
signing_key:
|
|
82
82
|
specification_version: 4
|
|
83
83
|
summary: Exception notifier, used to report your apps exceptions to the exceptiontrap
|