test_notifier 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/test_notifier.rb CHANGED
@@ -21,10 +21,17 @@ module TestNotifier
21
21
  :error => "Error!"
22
22
  }
23
23
 
24
+ COLORS = {
25
+ :fail => "orange",
26
+ :success => "green",
27
+ :error => "red"
28
+ }
29
+
24
30
  def notify(options)
25
31
  options.merge!({
26
32
  :title => TITLES[options[:status]],
27
- :image => IMAGES[options[:status]]
33
+ :image => IMAGES[options[:status]],
34
+ :color => COLORS[options[:status]]
28
35
  })
29
36
 
30
37
  notifier.notify(options)
@@ -2,7 +2,7 @@ module TestNotifier
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- PATCH = 5
5
+ PATCH = 6
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
@@ -26,7 +26,8 @@ class TestNotifierTest < Test::Unit::TestCase
26
26
  :status => :fail,
27
27
  :message => "You have failed!",
28
28
  :title => TestNotifier::TITLES[:fail],
29
- :image => TestNotifier::IMAGES[:fail]
29
+ :image => TestNotifier::IMAGES[:fail],
30
+ :color => TestNotifier::COLORS[:fail]
30
31
  })
31
32
 
32
33
  TestNotifier.notify :status => :fail, :message => "You have failed!"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 5
9
- version: 0.3.5
8
+ - 6
9
+ version: 0.3.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nando Vieira
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-12 00:00:00 -02:00
17
+ date: 2010-11-19 00:00:00 -02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency