blabbermouth-rollbar 0.0.4 → 0.0.5
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 +5 -10
- data/lib/blabbermouth/rollbar/version.rb +2 -1
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89d31cabcf2da114b40febcba22feff94820eb3d
|
4
|
+
data.tar.gz: 9e97b52e56fbce98dbacdb712530d08097088d2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c50be861ba7b5d65b8983a5053b0f869486fd67377dd173d505c309e529106cfef15fc402b3760ad8e2e917f71caa6f82719350ba87abbceedb452fa4a12b4dd
|
7
|
+
data.tar.gz: 43d0161f4ed43f56c36758103284a404a7e1290dfe3c2683357c25a140ea059af80f4267dd2feae2b06a003da269518f4e70d80a5606cbd98e94030862851db6
|
@@ -3,32 +3,27 @@ require 'blabbermouth/exceptions'
|
|
3
3
|
module Blabbermouth
|
4
4
|
module Bystanders
|
5
5
|
class Rollbar < Base
|
6
|
-
def error(key, e,
|
7
|
-
data, opts, args = parse_args(*args)
|
6
|
+
def error(key, e, data: {})
|
8
7
|
rollbar!
|
9
8
|
::Rollbar.error(Blabbermouth::Error.new(key, e), data)
|
10
9
|
end
|
11
10
|
|
12
|
-
def info(key, msg=nil,
|
13
|
-
data, opts, args = parse_args(*args)
|
11
|
+
def info(key, msg=nil, data: {})
|
14
12
|
rollbar!
|
15
13
|
::Rollbar.info(Blabbermouth::Info.new(key, msg), data)
|
16
14
|
end
|
17
15
|
|
18
|
-
def increment(key, by=1,
|
19
|
-
data, opts, args = parse_args(*args)
|
16
|
+
def increment(key, by=1, data: {})
|
20
17
|
rollbar!
|
21
18
|
::Rollbar.info(Blabbermouth::Increment.new(key, by), data)
|
22
19
|
end
|
23
20
|
|
24
|
-
def count(key, total,
|
25
|
-
data, opts, args = parse_args(*args)
|
21
|
+
def count(key, total, data: {})
|
26
22
|
rollbar!
|
27
23
|
::Rollbar.info(Blabbermouth::Count.new(key, total), data)
|
28
24
|
end
|
29
25
|
|
30
|
-
def time(key, duration,
|
31
|
-
data, opts, args = parse_args(*args)
|
26
|
+
def time(key, duration, data: {})
|
32
27
|
rollbar!
|
33
28
|
::Rollbar.info(Blabbermouth::Time.new(key, duration), data)
|
34
29
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blabbermouth-rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rebec
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blabbermouth
|