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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fa12defb50ce55af2f6db6c1b2b8a5013874ac9
4
- data.tar.gz: 705729a2e05b7ba063d7022ba173e2ddd64f64de
3
+ metadata.gz: 89d31cabcf2da114b40febcba22feff94820eb3d
4
+ data.tar.gz: 9e97b52e56fbce98dbacdb712530d08097088d2c
5
5
  SHA512:
6
- metadata.gz: 9cdab157fd1824ab43b3a267b54502cfe40c2380826c2744b8ca99f3c18cda12178bb1ad74c731272c69bc5983ce14e033615d9030c9db5adcb82423ac9d3186
7
- data.tar.gz: 1c15110e05082c6e63d36730329c3658112dd581e83d83fac4b9978910809ae0220426ff88cabaef2221e0692fc040f7e434df2d09929d6e929db1e1d872cb2c
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, *args)
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, *args)
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, *args)
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, *args)
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, *args)
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
@@ -1,5 +1,6 @@
1
+ require 'blabbermouth/version'
1
2
  module Blabbermouth
2
3
  module Rollbar
3
- VERSION = '0.0.4'
4
+ VERSION = Blabbermouth::VERSION
4
5
  end
5
6
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  require 'blabbermouth'
2
2
  require 'rspec'
3
+ require 'coveralls'
4
+ Coveralls.wear!
3
5
 
4
6
  Dir[File.join(File.dirname(__FILE__), '..', "spec/support/**/*.rb")].each { |f| require f }
5
7
 
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
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-06 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blabbermouth