riot_notifier 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
- ---
1
+ ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 3
5
- :build:
4
+ :patch: 5
5
+ :build:
data/lib/riot_notifier.rb CHANGED
@@ -1,5 +1,7 @@
1
+ require 'riot'
2
+
1
3
  module RiotNotifier
2
- class Base < Riot::DotMatrixReporter
4
+ class Base < ::Riot::DotMatrixReporter
3
5
  def notify(color, msg)
4
6
  # overwrite me
5
7
  end
@@ -37,13 +37,11 @@ context "RiotNotifier" do
37
37
 
38
38
  context "with RedgreenNotifier" do
39
39
  setup do
40
- klass = RiotNotifier::RedgreenNotifier.dup
41
- klass.class_eval do
40
+ Class.new(RiotNotifier::RedgreenNotifier) do
42
41
  def exec(string)
43
42
  string
44
43
  end
45
- end
46
- klass.new
44
+ end.new
47
45
  end
48
46
 
49
47
  asserts("notify green hello world") { topic.notify(:red, "hello world") }.matches(/red "hello world"/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riot_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Suschlik
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-06 00:00:00 +01:00
12
+ date: 2009-12-07 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency