blabbermouth-rollbar 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blabbermouth/rollbar/bystander.rb +0 -15
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96016e06c64dbbc1c6a70497b3a6baa766b14a93
|
4
|
+
data.tar.gz: 8443b5c9fd02de186ced753fd8183797af10ed3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26570f929aed9d28eb0f39b4f4360aa5e946a0adf358917249677bd7971d1b3905934dd0675610a13b3a5932d2dd3bd15f5825ff2257bdcd441fa0bbc9b1a649
|
7
|
+
data.tar.gz: 0cee74781df63e2296f32c5ad66be137bf97f3adbdc17620ae8344f0fb86d677a3d5744b32e061f94b5808111768668ed8811dcd84e836adeb6372324af34ba8
|
@@ -4,39 +4,24 @@ module Blabbermouth
|
|
4
4
|
module Bystanders
|
5
5
|
class Rollbar < Base
|
6
6
|
def error(key, e, data: {})
|
7
|
-
rollbar!
|
8
7
|
::Rollbar.error(Blabbermouth::Error.new(key, e), data)
|
9
8
|
end
|
10
9
|
|
11
10
|
def info(key, msg=nil, data: {})
|
12
|
-
rollbar!
|
13
11
|
::Rollbar.info(Blabbermouth::Info.new(key, msg), data)
|
14
12
|
end
|
15
13
|
|
16
14
|
def increment(key, by=1, data: {})
|
17
|
-
rollbar!
|
18
15
|
::Rollbar.info(Blabbermouth::Increment.new(key, by), data)
|
19
16
|
end
|
20
17
|
|
21
18
|
def count(key, total, data: {})
|
22
|
-
rollbar!
|
23
19
|
::Rollbar.info(Blabbermouth::Count.new(key, total), data)
|
24
20
|
end
|
25
21
|
|
26
22
|
def time(key, duration, data: {})
|
27
|
-
rollbar!
|
28
23
|
::Rollbar.info(Blabbermouth::Time.new(key, duration), data)
|
29
24
|
end
|
30
|
-
|
31
|
-
protected
|
32
|
-
|
33
|
-
def rollbar?
|
34
|
-
defined?(::Rollbar)
|
35
|
-
end
|
36
|
-
|
37
|
-
def rollbar!
|
38
|
-
raise "You must require and configure the rollbar gem to use it as a bystander" unless rollbar?
|
39
|
-
end
|
40
25
|
end
|
41
26
|
end
|
42
27
|
end
|