carlosbrando-autotest-notification 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/Manifest.txt +1 -0
- data/README.txt +5 -0
- data/autotest-notification.gemspec +3 -3
- data/bin/an-install +7 -1
- data/images/pending.png +0 -0
- data/lib/autotest_notification.rb +3 -0
- data/lib/autotest_notification/version.rb +1 -1
- data/test/autotest_notification/test_mac.rb +5 -0
- metadata +4 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -89,6 +89,10 @@ To turn off the notifier:
|
|
89
89
|
|
90
90
|
$ an-install --doom --speaking
|
91
91
|
|
92
|
+
== Showing a yellow warning image when there are no errors/failures but there are pending specs
|
93
|
+
|
94
|
+
$ an-install --pending
|
95
|
+
|
92
96
|
== CONTRIBUTORS:
|
93
97
|
|
94
98
|
* carlosbrando [http://www.nomedojogo.com]
|
@@ -99,6 +103,7 @@ To turn off the notifier:
|
|
99
103
|
* tapajos [http://www.improveit.com.br/tapajos]
|
100
104
|
* tchandy [http://tchandy.wordpress.com]
|
101
105
|
* ozsantana [http://blog.iconcreative.net/]
|
106
|
+
* lucasuyezu [http://xucros.com]
|
102
107
|
|
103
108
|
|
104
109
|
== LICENSE:
|
@@ -1,17 +1,17 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{autotest-notification}
|
3
|
-
s.version = "1.
|
3
|
+
s.version = "1.5.0"
|
4
4
|
|
5
5
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Carlos Brando", "Rodrigo Urubatan", "Alexandre da Silva", "Carlos J\303\272nior", "Davis Zanetti Cabral", "Marcos Tapaj\303\263s", "Thiago Pradi", "Oz\303\251ias Sant'ana"]
|
8
|
+
s.authors = ["Carlos Brando", "Rodrigo Urubatan", "Alexandre da Silva", "Carlos J\303\272nior", "Davis Zanetti Cabral", "Marcos Tapaj\303\263s", "Thiago Pradi", "Oz\303\251ias Sant'ana", "Lucas Uyezu"]
|
9
9
|
s.date = %q{2008-06-18}
|
10
10
|
s.description = %q{This gem set the autotest (ZenTest) to send messages to software as Growl, LibNotify, and Snarl, displaying a window with the results.}
|
11
11
|
s.email = ["eduardobrando@gmail.com"]
|
12
12
|
s.executables = ["an-install", "an-uninstall", "playsound"]
|
13
13
|
s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.txt", "website/index.txt"]
|
14
|
-
s.files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.txt", "Rakefile", "config/hoe.rb", "config/requirements.rb", "lib/autotest_notification.rb", "lib/autotest_notification/version.rb", "lib/autotest_notification/linux.rb", "lib/autotest_notification/windows.rb", "lib/autotest_notification/cygwin.rb", "lib/autotest_notification/mac.rb", "lib/autotest_notification/doom.rb", "script/console", "script/destroy", "script/generate", "script/txt2html", "setup.rb", "tasks/deployment.rake", "tasks/environment.rake", "tasks/website.rake", "test/test_autotest_notification.rb", "test/test_helper.rb", "test/autotest_notification/test_cygwin.rb", "test/autotest_notification/test_linux.rb", "test/autotest_notification/test_windows.rb", "test/autotest_notification/test_mac.rb", "website/index.html", "website/index.txt", "website/javascripts/rounded_corners_lite.inc.js", "website/stylesheets/screen.css", "website/template.html.erb", "bin/an-install", "bin/an-uninstall", "bin/playsound", "images/pass.png", "images/fail.png", "autotest-notification.gemspec", "images/doom/doom_0.png", "images/doom/doom_1.png", "images/doom/doom_2.png", "images/doom/doom_3.png", "images/doom/doom_4.png", "images/doom/doom_5.png", "images/doom/doom_6.png", "sounds/doom/0.wav", "sounds/doom/1.wav", "sounds/doom/2.wav", "sounds/doom/3.wav", "sounds/doom/4.wav", "sounds/doom/5.wav", "sounds/doom/6.wav"]
|
14
|
+
s.files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.txt", "Rakefile", "config/hoe.rb", "config/requirements.rb", "lib/autotest_notification.rb", "lib/autotest_notification/version.rb", "lib/autotest_notification/linux.rb", "lib/autotest_notification/windows.rb", "lib/autotest_notification/cygwin.rb", "lib/autotest_notification/mac.rb", "lib/autotest_notification/doom.rb", "script/console", "script/destroy", "script/generate", "script/txt2html", "setup.rb", "tasks/deployment.rake", "tasks/environment.rake", "tasks/website.rake", "test/test_autotest_notification.rb", "test/test_helper.rb", "test/autotest_notification/test_cygwin.rb", "test/autotest_notification/test_linux.rb", "test/autotest_notification/test_windows.rb", "test/autotest_notification/test_mac.rb", "website/index.html", "website/index.txt", "website/javascripts/rounded_corners_lite.inc.js", "website/stylesheets/screen.css", "website/template.html.erb", "bin/an-install", "bin/an-uninstall", "bin/playsound", "images/pass.png", "images/fail.png", "images/pending.png", "autotest-notification.gemspec", "images/doom/doom_0.png", "images/doom/doom_1.png", "images/doom/doom_2.png", "images/doom/doom_3.png", "images/doom/doom_4.png", "images/doom/doom_5.png", "images/doom/doom_6.png", "sounds/doom/0.wav", "sounds/doom/1.wav", "sounds/doom/2.wav", "sounds/doom/3.wav", "sounds/doom/4.wav", "sounds/doom/5.wav", "sounds/doom/6.wav"]
|
15
15
|
s.has_rdoc = true
|
16
16
|
s.homepage = %q{http://github.com/carlosbrando/autotest-notification/}
|
17
17
|
s.post_install_message = %q{
|
data/bin/an-install
CHANGED
@@ -17,7 +17,8 @@ require 'ftools'
|
|
17
17
|
OPTIONS = {
|
18
18
|
:path => '~',
|
19
19
|
:speaking => false,
|
20
|
-
:doom => false
|
20
|
+
:doom => false,
|
21
|
+
:pending => false
|
21
22
|
}
|
22
23
|
MANDATORY_OPTIONS = %w( )
|
23
24
|
|
@@ -43,6 +44,10 @@ BANNER
|
|
43
44
|
"Special Doom Edition.",
|
44
45
|
"Only for Mac.") { |OPTIONS[:doom]| OPTIONS[:doom] = true }
|
45
46
|
|
47
|
+
opts.on("--pending",
|
48
|
+
"Shows a different image when there are no errors/failures but there are pending specs.",
|
49
|
+
"Only for Mac.") { |OPTIONS[:pending]| OPTIONS[:pending] = true }
|
50
|
+
|
46
51
|
opts.on("-h", "--help",
|
47
52
|
"Show this help message.") { puts opts; exit }
|
48
53
|
|
@@ -67,6 +72,7 @@ f.write "# ~.autotest\n"
|
|
67
72
|
f.write "require 'autotest_notification'\n"
|
68
73
|
f.write("SPEAKING = #{OPTIONS[:speaking]}\n")
|
69
74
|
f.write("DOOM_EDITION = #{OPTIONS[:doom]}\n")
|
75
|
+
f.write("PENDING = #{OPTIONS[:pending]}\n")
|
70
76
|
f.close
|
71
77
|
|
72
78
|
puts "\nAs from now all tests will be notified automatically."
|
data/images/pending.png
ADDED
Binary file
|
@@ -5,6 +5,7 @@ module AutotestNotification
|
|
5
5
|
IMAGES_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../images/")
|
6
6
|
SUCCESS_IMAGE = "#{IMAGES_DIRECTORY}/pass.png"
|
7
7
|
FAIL_IMAGE = "#{IMAGES_DIRECTORY}/fail.png"
|
8
|
+
PENDING_IMAGE = "#{IMAGES_DIRECTORY}/pending.png"
|
8
9
|
|
9
10
|
EXPIRATION_IN_SECONDS = 3
|
10
11
|
|
@@ -29,6 +30,8 @@ module AutotestNotification
|
|
29
30
|
|
30
31
|
if @failures > 0 || @errors > 0
|
31
32
|
notify "FAIL", msg, FAIL_IMAGE, @tests + @examples, @failures + @errors, 2
|
33
|
+
elsif PENDING && @pendings > 0
|
34
|
+
notify "Pending", msg, PENDING_IMAGE, @tests + @examples, @failures + @errors, 2
|
32
35
|
else
|
33
36
|
notify "Pass", msg, SUCCESS_IMAGE, @tests + @examples
|
34
37
|
end
|
@@ -15,5 +15,10 @@ class TestMac < Test::Unit::TestCase
|
|
15
15
|
AutotestNotification::Mac.notify("title", "msg", "image", 1)
|
16
16
|
end
|
17
17
|
|
18
|
+
def test_notify_with_pending
|
19
|
+
Object.const_set :PENDING, true
|
20
|
+
AutotestNotification::Mac.expects(:system).with("growlnotify -n autotest --image image -p 0 -m 'msg' title")
|
21
|
+
AutotestNotification::Mac.notify("title", "msg", "image", 1)
|
22
|
+
end
|
18
23
|
end
|
19
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carlosbrando-autotest-notification
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Brando
|
@@ -12,6 +12,7 @@ authors:
|
|
12
12
|
- "Marcos Tapaj\xC3\xB3s"
|
13
13
|
- Thiago Pradi
|
14
14
|
- "Oz\xC3\xA9ias Sant'ana"
|
15
|
+
- Lucas Uyezu
|
15
16
|
autorequire:
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
@@ -84,6 +85,7 @@ files:
|
|
84
85
|
- bin/playsound
|
85
86
|
- images/pass.png
|
86
87
|
- images/fail.png
|
88
|
+
- images/pending.png
|
87
89
|
- autotest-notification.gemspec
|
88
90
|
- images/doom/doom_0.png
|
89
91
|
- images/doom/doom_1.png
|
@@ -131,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
133
|
requirements: []
|
132
134
|
|
133
135
|
rubyforge_project: autotest-notification
|
134
|
-
rubygems_version: 1.0
|
136
|
+
rubygems_version: 1.2.0
|
135
137
|
signing_key:
|
136
138
|
specification_version: 2
|
137
139
|
summary: This gem set the autotest (ZenTest) to send messages to software as Growl, LibNotify, and Snarl, displaying a window with the results.
|