blabbermouth 0.0.9 → 0.0.10

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: 4e9a9591a1b3b1d1afcc310059eb6dc8a5774434
4
- data.tar.gz: 4895646ba5679dc0f79ddc1b2a46cdee6a2fa3c0
3
+ metadata.gz: e9abf3787698d87b528007f57075122fc4c44580
4
+ data.tar.gz: 58c413c9a852bc2a33be2d850ca5e08e17afd9f0
5
5
  SHA512:
6
- metadata.gz: 2dfdc07371966920ef92f52e9f969a189664dd89c6c2c0ea933f30cb042b73f5fd2b26e40e1a1266a04ecdf1c6ea03899d6103a674c32aeefb5905a8f3ea0cb4
7
- data.tar.gz: 304f6db25e1554b0fbcec5416096e0fb9b3299e035a5d4a89a601c1d7abd4c857812b9916c9d15aa9f331fa45bba2467f276c8515d74dcec110303820f127f29
6
+ metadata.gz: 16ca8eb7dd2a70024983643958e3a6cbfb29772df00e9faa0e5a00d026c72f7e9980552c691f571fdc82b2514aaf5c9725dda67cb37008ee1133427541be2263
7
+ data.tar.gz: 62fbdb858e734d036bc62f689aa95d9caae6841b99fe2103dcd6b234b683a51962e2c7064a4b4809f24fceed51b625d9cea7de28f199ae03240b59d901c226e8
@@ -3,8 +3,12 @@ module Blabbermouth
3
3
  module DynamicEvents
4
4
  EXCLUDES = [:flush]
5
5
 
6
+ def relay(meth, key, *args)
7
+ raise NotImplementedError, "#{self.class.name}##{__method__} has not been implemented"
8
+ end
9
+
6
10
  def method_missing(meth, *args)
7
- blab meth, *args
11
+ relay meth, *args
8
12
  end
9
13
 
10
14
  def respond_to_missing?(meth, include_private=false)
@@ -5,26 +5,26 @@ module Blabbermouth
5
5
  include Blabbermouth::Bystanders::DynamicEvents
6
6
 
7
7
  def error(key, e, *args)
8
- blab :error, key, e, *args
8
+ relay :error, key, e, *args
9
9
  end
10
10
 
11
11
  def info(key, msg=nil, *args)
12
- blab :info, key, msg, *args
12
+ relay :info, key, msg, *args
13
13
  end
14
14
 
15
15
  def increment(key, by=1, *args)
16
- blab :increment, key, by, *args
16
+ relay :increment, key, by, *args
17
17
  end
18
18
 
19
19
  def count(key, total, *args)
20
- blab :count, key, total, *args
20
+ relay :count, key, total, *args
21
21
  end
22
22
 
23
23
  def time(key, duration, *args)
24
- blab :time, key, duration, *args
24
+ relay :time, key, duration, *args
25
25
  end
26
26
 
27
- def blab(meth, key, *args)
27
+ def relay(meth, key, *args)
28
28
  data, opts, args = parse_args(*args)
29
29
  puts meth, key, args.first, data
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module Blabbermouth
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blabbermouth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec