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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c942ef55073372fdb7f17cf9bbc3670fc5951f4d
4
- data.tar.gz: 549376ddaa451562ce2d4ebf128dc3e95081ee8c
3
+ metadata.gz: 96016e06c64dbbc1c6a70497b3a6baa766b14a93
4
+ data.tar.gz: 8443b5c9fd02de186ced753fd8183797af10ed3e
5
5
  SHA512:
6
- metadata.gz: eb73dbb24bfe6493853a8491926ffad9748401eb1a557ecec1287690863b3f6b79e719a010e97b40099cb7aa296d7d91d77a00bee7f68d449a4529262d056ffc
7
- data.tar.gz: eb5054d55cd6be45349f3cdeaea4f0df3c735cdd7dae9914fbaf20d024fa2ddcd6e0ce5f160fd956750a0714893a06fad3bf732d8702dab2ca2183141626d983
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blabbermouth-rollbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec