rabbitek 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/rabbitek/loggable.rb +5 -1
- data/lib/rabbitek/version.rb +1 -1
- 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: f7908fdc1329216ae02618bee4aae76564192031c6e2e7c10016758581f665d3
|
4
|
+
data.tar.gz: 25265bd1ab29f07298edbd2594ac972dafdc72d9ae6585dc89460e5020ce5da0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7674a197bbd8d963f3e39253fd779e8a9261e98a8f5145b7b0ab624a690156758a81339f2fc74e9fafd4bbcc34e934c04794c89150a221e5daed2a8c83c209b9
|
7
|
+
data.tar.gz: 4f04a4cbf33ec615366e891500ffebd38e4d54a9c7fc4c772c04dc602279a423541ac1c3cd045e18ee0428f490356cc41c86f05420b5eaeaff775ffd31c872bd
|
data/CHANGELOG.md
CHANGED
data/lib/rabbitek/loggable.rb
CHANGED
@@ -15,7 +15,7 @@ module Rabbitek
|
|
15
15
|
def error(msg)
|
16
16
|
log_msg(:error, msg)
|
17
17
|
NewRelic::Agent.notice_error(msg) if Rabbitek.config.enable_newrelic && Object.const_defined?('NewRelic')
|
18
|
-
|
18
|
+
raven_capture_error(msg) if Rabbitek.config.enable_sentry && Object.const_defined?('Raven')
|
19
19
|
true
|
20
20
|
end
|
21
21
|
|
@@ -46,5 +46,9 @@ module Rabbitek
|
|
46
46
|
def class_name(msg)
|
47
47
|
msg.is_a?(Hash) && msg[:class_name] ? msg.delete(:class_name) : self.class.name
|
48
48
|
end
|
49
|
+
|
50
|
+
def raven_capture_error(msg)
|
51
|
+
msg.is_a?(Exception) ? Raven.capture_exception(msg) : Raven.capture_message(msg.to_s)
|
52
|
+
end
|
49
53
|
end
|
50
54
|
end
|
data/lib/rabbitek/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbitek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boostcom
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|