exceptiontrap 2.1.0 → 2.1.1

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: 25618a77b83b7ef0c13663112662880e35f17a0af53f88e3c1421fe621aed816
4
- data.tar.gz: a8d8f88e92861949b4ce464f6965287bcce8fc3a022e1a7ec13353202bbf0f9d
3
+ metadata.gz: 4075d73869f004d09948df53b128c1df6f989983fd9f99dee437db128768b64c
4
+ data.tar.gz: 0d5987fea6cbadb797baa0bbe30c435dad82a201c87c4148ef234abbfabaf0fc
5
5
  SHA512:
6
- metadata.gz: fac4396f56131cb0cb791bc02eb5cb4f5be99b876965caae23f8d36615f38fa6a12e1ee1a1b1229623ad1266ac6053e4eccabfe148344cec379ee1bd97aee7c0
7
- data.tar.gz: 48cb93606af8e72c75b6745592d73015cec4c0e379dbf2dfab00e2889fc27046a79fbb9af1dbf0b224c38cfa7c20aa2bf4df8e035681736620ff941e2646aac5
6
+ metadata.gz: eaa2a96e1cdfc2a7698d1ae6c12df4f4920c25d1a6bedbf047ea363fcb5b3e64642e2f63398203133b1802623244a41556f5d30b11663c8fb3d706c2cd450e0e
7
+ data.tar.gz: bf872f0661122b503bc06873e6184b8805d21b8665a4b564b387f5e239520ceafbb5de25bf2a08d41f8f8f80512a0c67dd5c94f9671d488a6b9746a270381e10
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exceptiontrap (2.1.0)
4
+ exceptiontrap (2.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- rake (12.3.2)
9
+ rake (13.0.1)
10
10
 
11
11
  PLATFORMS
12
12
  ruby
data/README.md CHANGED
@@ -1,8 +1,11 @@
1
+ [![Gem Version](https://badge.fury.io/rb/exceptiontrap.svg)](https://badge.fury.io/rb/exceptiontrap)
2
+ [![Maintainability](https://api.codeclimate.com/v1/badges/54bdf2c81f42aac11680/maintainability)](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 5
8
+ The gem is compatible with Rails 3, 4, 5, and 6
6
9
 
7
10
  ## Setup
8
11
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Exceptiontrap
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  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.0
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: 2019-02-09 00:00:00.000000000 Z
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.2
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