carlosbrando-autotest-notification 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +11 -13
- data/License.txt +20 -0
- data/Manifest.txt +36 -19
- data/README.txt +138 -0
- data/Rakefile +3 -27
- data/autotest-notification.gemspec +49 -0
- data/bin/an-install +86 -5
- data/bin/an-uninstall +44 -4
- data/config/hoe.rb +75 -0
- data/config/requirements.rb +15 -0
- data/lib/autotest_notification.rb +2 -7
- data/lib/autotest_notification/buuf.rb +9 -0
- data/lib/autotest_notification/cygwin.rb +14 -0
- data/lib/autotest_notification/doom.rb +25 -0
- data/lib/autotest_notification/linux.rb +55 -0
- data/lib/autotest_notification/mac.rb +25 -0
- data/lib/autotest_notification/version.rb +9 -0
- data/lib/autotest_notification/windows.rb +11 -0
- data/script/console +2 -2
- data/script/txt2html +82 -0
- data/setup.rb +1585 -0
- data/tasks/deployment.rake +34 -0
- data/tasks/environment.rake +7 -0
- data/tasks/website.rake +17 -0
- data/test/test_autotest_notification.rb +44 -44
- data/website/index.html +86 -0
- data/website/index.txt +83 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +138 -0
- data/website/template.html.erb +48 -0
- metadata +60 -34
- data/README.rdoc +0 -137
- data/lib/an_install/cli.rb +0 -79
- data/lib/an_uninstall/cli.rb +0 -46
- data/test/test_an-install_cli.rb +0 -19
- data/test/test_an-uninstall_cli.rb +0 -19
@@ -0,0 +1,138 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #E1D1F1;
|
3
|
+
font-family: "Georgia", sans-serif;
|
4
|
+
font-size: 16px;
|
5
|
+
line-height: 1.6em;
|
6
|
+
padding: 1.6em 0 0 0;
|
7
|
+
color: #333;
|
8
|
+
}
|
9
|
+
h1, h2, h3, h4, h5, h6 {
|
10
|
+
color: #444;
|
11
|
+
}
|
12
|
+
h1 {
|
13
|
+
font-family: sans-serif;
|
14
|
+
font-weight: normal;
|
15
|
+
font-size: 4em;
|
16
|
+
line-height: 0.8em;
|
17
|
+
letter-spacing: -0.1ex;
|
18
|
+
margin: 5px;
|
19
|
+
}
|
20
|
+
li {
|
21
|
+
padding: 0;
|
22
|
+
margin: 0;
|
23
|
+
list-style-type: square;
|
24
|
+
}
|
25
|
+
a {
|
26
|
+
color: #5E5AFF;
|
27
|
+
background-color: #DAC;
|
28
|
+
font-weight: normal;
|
29
|
+
text-decoration: underline;
|
30
|
+
}
|
31
|
+
blockquote {
|
32
|
+
font-size: 90%;
|
33
|
+
font-style: italic;
|
34
|
+
border-left: 1px solid #111;
|
35
|
+
padding-left: 1em;
|
36
|
+
}
|
37
|
+
.caps {
|
38
|
+
font-size: 80%;
|
39
|
+
}
|
40
|
+
|
41
|
+
#main {
|
42
|
+
width: 45em;
|
43
|
+
padding: 0;
|
44
|
+
margin: 0 auto;
|
45
|
+
}
|
46
|
+
.coda {
|
47
|
+
text-align: right;
|
48
|
+
color: #77f;
|
49
|
+
font-size: smaller;
|
50
|
+
}
|
51
|
+
|
52
|
+
table {
|
53
|
+
font-size: 90%;
|
54
|
+
line-height: 1.4em;
|
55
|
+
color: #ff8;
|
56
|
+
background-color: #111;
|
57
|
+
padding: 2px 10px 2px 10px;
|
58
|
+
border-style: dashed;
|
59
|
+
}
|
60
|
+
|
61
|
+
th {
|
62
|
+
color: #fff;
|
63
|
+
}
|
64
|
+
|
65
|
+
td {
|
66
|
+
padding: 2px 10px 2px 10px;
|
67
|
+
}
|
68
|
+
|
69
|
+
.success {
|
70
|
+
color: #0CC52B;
|
71
|
+
}
|
72
|
+
|
73
|
+
.failed {
|
74
|
+
color: #E90A1B;
|
75
|
+
}
|
76
|
+
|
77
|
+
.unknown {
|
78
|
+
color: #995000;
|
79
|
+
}
|
80
|
+
pre, code {
|
81
|
+
font-family: monospace;
|
82
|
+
font-size: 90%;
|
83
|
+
line-height: 1.4em;
|
84
|
+
color: #ff8;
|
85
|
+
background-color: #111;
|
86
|
+
padding: 2px 10px 2px 10px;
|
87
|
+
}
|
88
|
+
.comment { color: #aaa; font-style: italic; }
|
89
|
+
.keyword { color: #eff; font-weight: bold; }
|
90
|
+
.punct { color: #eee; font-weight: bold; }
|
91
|
+
.symbol { color: #0bb; }
|
92
|
+
.string { color: #6b4; }
|
93
|
+
.ident { color: #ff8; }
|
94
|
+
.constant { color: #66f; }
|
95
|
+
.regex { color: #ec6; }
|
96
|
+
.number { color: #F99; }
|
97
|
+
.expr { color: #227; }
|
98
|
+
|
99
|
+
#version {
|
100
|
+
float: right;
|
101
|
+
text-align: right;
|
102
|
+
font-family: sans-serif;
|
103
|
+
font-weight: normal;
|
104
|
+
background-color: #B3ABFF;
|
105
|
+
color: #141331;
|
106
|
+
padding: 15px 20px 10px 20px;
|
107
|
+
margin: 0 auto;
|
108
|
+
margin-top: 15px;
|
109
|
+
border: 3px solid #141331;
|
110
|
+
}
|
111
|
+
|
112
|
+
#version .numbers {
|
113
|
+
display: block;
|
114
|
+
font-size: 4em;
|
115
|
+
line-height: 0.8em;
|
116
|
+
letter-spacing: -0.1ex;
|
117
|
+
margin-bottom: 15px;
|
118
|
+
}
|
119
|
+
|
120
|
+
#version p {
|
121
|
+
text-decoration: none;
|
122
|
+
color: #141331;
|
123
|
+
background-color: #B3ABFF;
|
124
|
+
margin: 0;
|
125
|
+
padding: 0;
|
126
|
+
}
|
127
|
+
|
128
|
+
#version a {
|
129
|
+
text-decoration: none;
|
130
|
+
color: #141331;
|
131
|
+
background-color: #B3ABFF;
|
132
|
+
}
|
133
|
+
|
134
|
+
.clickable {
|
135
|
+
cursor: pointer;
|
136
|
+
cursor: hand;
|
137
|
+
}
|
138
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
<%= title %>
|
9
|
+
</title>
|
10
|
+
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
+
<style>
|
12
|
+
|
13
|
+
</style>
|
14
|
+
<script type="text/javascript">
|
15
|
+
window.onload = function() {
|
16
|
+
settings = {
|
17
|
+
tl: { radius: 10 },
|
18
|
+
tr: { radius: 10 },
|
19
|
+
bl: { radius: 10 },
|
20
|
+
br: { radius: 10 },
|
21
|
+
antiAlias: true,
|
22
|
+
autoPad: true,
|
23
|
+
validTags: ["div"]
|
24
|
+
}
|
25
|
+
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
+
versionBox.applyCornersToAll();
|
27
|
+
}
|
28
|
+
</script>
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="main">
|
32
|
+
|
33
|
+
<h1><%= title %></h1>
|
34
|
+
<div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>
|
35
|
+
<p>Get Version</p>
|
36
|
+
<a href="<%= download %>" class="numbers"><%= version %></a>
|
37
|
+
</div>
|
38
|
+
<%= body %>
|
39
|
+
<p class="coda">
|
40
|
+
<a href="FIXME email">FIXME full name</a>, <%= modified.pretty %><br>
|
41
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
42
|
+
</p>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<!-- insert site tracking codes here, like Google Urchin -->
|
46
|
+
|
47
|
+
</body>
|
48
|
+
</html>
|
metadata
CHANGED
@@ -1,10 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carlosbrando-autotest-notification
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Brando
|
8
|
+
- Rodrigo Urubatan
|
9
|
+
- Alexandre da Silva
|
10
|
+
- "Carlos J\xC3\xBAnior"
|
11
|
+
- Davis Zanetti Cabral
|
12
|
+
- "Marcos Tapaj\xC3\xB3s"
|
13
|
+
- Thiago Pradi
|
14
|
+
- "Oz\xC3\xA9ias Sant'ana"
|
15
|
+
- Samuel Flores
|
16
|
+
- Diego Carrion
|
8
17
|
autorequire:
|
9
18
|
bindir: bin
|
10
19
|
cert_chain: []
|
@@ -21,15 +30,6 @@ dependencies:
|
|
21
30
|
- !ruby/object:Gem::Version
|
22
31
|
version: 3.9.2
|
23
32
|
version:
|
24
|
-
- !ruby/object:Gem::Dependency
|
25
|
-
name: newgem
|
26
|
-
version_requirement:
|
27
|
-
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
requirements:
|
29
|
-
- - ">="
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: 1.1.0
|
32
|
-
version:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: hoe
|
35
35
|
version_requirement:
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
version:
|
42
42
|
description: This gem set the autotest (ZenTest) to send messages to software as Growl, LibNotify, and Snarl, displaying a window with the results.
|
43
43
|
email:
|
44
|
-
-
|
44
|
+
- autotest-notification@carlosbrando.com
|
45
45
|
executables:
|
46
46
|
- an-install
|
47
47
|
- an-uninstall
|
@@ -50,18 +50,54 @@ extensions: []
|
|
50
50
|
|
51
51
|
extra_rdoc_files:
|
52
52
|
- History.txt
|
53
|
+
- License.txt
|
53
54
|
- Manifest.txt
|
54
55
|
- PostInstall.txt
|
55
|
-
- README.
|
56
|
+
- README.txt
|
57
|
+
- website/index.txt
|
56
58
|
files:
|
59
|
+
- autotest-notification.gemspec
|
57
60
|
- History.txt
|
61
|
+
- License.txt
|
58
62
|
- Manifest.txt
|
59
63
|
- PostInstall.txt
|
60
|
-
- README.
|
64
|
+
- README.txt
|
61
65
|
- Rakefile
|
66
|
+
- config/hoe.rb
|
67
|
+
- config/requirements.rb
|
68
|
+
- lib/autotest_notification.rb
|
69
|
+
- lib/autotest_notification/version.rb
|
70
|
+
- lib/autotest_notification/linux.rb
|
71
|
+
- lib/autotest_notification/windows.rb
|
72
|
+
- lib/autotest_notification/cygwin.rb
|
73
|
+
- lib/autotest_notification/mac.rb
|
74
|
+
- lib/autotest_notification/doom.rb
|
75
|
+
- lib/autotest_notification/buuf.rb
|
76
|
+
- script/console
|
77
|
+
- script/destroy
|
78
|
+
- script/generate
|
79
|
+
- script/txt2html
|
80
|
+
- setup.rb
|
81
|
+
- tasks/deployment.rake
|
82
|
+
- tasks/environment.rake
|
83
|
+
- tasks/website.rake
|
84
|
+
- test/test_autotest_notification.rb
|
85
|
+
- test/test_helper.rb
|
86
|
+
- test/autotest_notification/test_cygwin.rb
|
87
|
+
- test/autotest_notification/test_linux.rb
|
88
|
+
- test/autotest_notification/test_windows.rb
|
89
|
+
- test/autotest_notification/test_mac.rb
|
90
|
+
- website/index.html
|
91
|
+
- website/index.txt
|
92
|
+
- website/javascripts/rounded_corners_lite.inc.js
|
93
|
+
- website/stylesheets/screen.css
|
94
|
+
- website/template.html.erb
|
62
95
|
- bin/an-install
|
63
96
|
- bin/an-uninstall
|
64
97
|
- bin/playsound
|
98
|
+
- images/pass.png
|
99
|
+
- images/fail.png
|
100
|
+
- images/pending.png
|
65
101
|
- images/buuf/fail.png
|
66
102
|
- images/buuf/pass.png
|
67
103
|
- images/buuf/pending.png
|
@@ -72,15 +108,6 @@ files:
|
|
72
108
|
- images/doom/doom_4.png
|
73
109
|
- images/doom/doom_5.png
|
74
110
|
- images/doom/doom_6.png
|
75
|
-
- images/fail.png
|
76
|
-
- images/pass.png
|
77
|
-
- images/pending.png
|
78
|
-
- lib/an_install/cli.rb
|
79
|
-
- lib/an_uninstall/cli.rb
|
80
|
-
- lib/autotest_notification.rb
|
81
|
-
- script/console
|
82
|
-
- script/destroy
|
83
|
-
- script/generate
|
84
111
|
- sounds/doom/0.wav
|
85
112
|
- sounds/doom/1.wav
|
86
113
|
- sounds/doom/2.wav
|
@@ -88,20 +115,21 @@ files:
|
|
88
115
|
- sounds/doom/4.wav
|
89
116
|
- sounds/doom/5.wav
|
90
117
|
- sounds/doom/6.wav
|
91
|
-
- test/autotest_notification/test_cygwin.rb
|
92
|
-
- test/autotest_notification/test_linux.rb
|
93
|
-
- test/autotest_notification/test_mac.rb
|
94
|
-
- test/autotest_notification/test_windows.rb
|
95
|
-
- test/test_an-install_cli.rb
|
96
|
-
- test/test_an-uninstall_cli.rb
|
97
|
-
- test/test_autotest_notification.rb
|
98
|
-
- test/test_helper.rb
|
99
118
|
has_rdoc: true
|
100
119
|
homepage: http://github.com/carlosbrando/autotest-notification/
|
101
|
-
post_install_message:
|
120
|
+
post_install_message: |+
|
121
|
+
|
122
|
+
For more information on autotest_notification, see http://github.com/carlosbrando/autotest-notification/
|
123
|
+
|
124
|
+
To turn on the notifier you need to run the following command:
|
125
|
+
an-install
|
126
|
+
|
127
|
+
To turn off:
|
128
|
+
an-uninstall
|
129
|
+
|
102
130
|
rdoc_options:
|
103
131
|
- --main
|
104
|
-
- README.
|
132
|
+
- README.txt
|
105
133
|
require_paths:
|
106
134
|
- lib
|
107
135
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -128,7 +156,5 @@ test_files:
|
|
128
156
|
- test/autotest_notification/test_linux.rb
|
129
157
|
- test/autotest_notification/test_mac.rb
|
130
158
|
- test/autotest_notification/test_windows.rb
|
131
|
-
- test/test_an-install_cli.rb
|
132
|
-
- test/test_an-uninstall_cli.rb
|
133
159
|
- test/test_autotest_notification.rb
|
134
160
|
- test/test_helper.rb
|
data/README.rdoc
DELETED
@@ -1,137 +0,0 @@
|
|
1
|
-
= THE AUTOTEST NOTIFICATION GEM
|
2
|
-
|
3
|
-
* http://github.com/carlosbrando/autotest-notification/
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
This gem set the autotest (ZenTest) to send messages to software as Growl, LibNotify, and Snarl, displaying a window with the results.
|
8
|
-
|
9
|
-
== REQUIREMENTS:
|
10
|
-
|
11
|
-
Independent of operating system you are using, you must install the ZenTest:
|
12
|
-
|
13
|
-
$ gem install ZenTest
|
14
|
-
|
15
|
-
=== If you're using a Mac:
|
16
|
-
|
17
|
-
You need to have Growl and growlnotify installed on your machine.
|
18
|
-
|
19
|
-
Download the Growl [http://growl.info/index.php] and install it like any other application on your Mac
|
20
|
-
|
21
|
-
Then you must install the growlnotify.
|
22
|
-
|
23
|
-
In your shell, cd to the directory on the Growl disk image containing growlnotify, and type ./install.sh.
|
24
|
-
That script will install growlnotify to /usr/local/bin and the manpage to /usr/local/man.
|
25
|
-
|
26
|
-
If you want to be notified with voice of the test results, when running an-install, pass a "-s" switch, when you do not want voices notifications anymore, just run it again without the "-s" switch.
|
27
|
-
|
28
|
-
|
29
|
-
=== If you're using Windows (with cygwin):
|
30
|
-
|
31
|
-
You need to have Snarl and sncmd installed on your machine.
|
32
|
-
|
33
|
-
Download Snarl [http://www.fullphat.net/] and install it like any other application on your machine.
|
34
|
-
|
35
|
-
Then download sncmd [http://www.k23productions.com/download.php?view.105] open the zip file and place
|
36
|
-
the executable from the zip in any directory in windows PATH (for example c:\windows).
|
37
|
-
|
38
|
-
|
39
|
-
=== If you're using Windows (without cygwin):
|
40
|
-
You need to have Snarl, diffutils and ruby-snarl installed on your machine.
|
41
|
-
|
42
|
-
Download Snarl [http://www.fullphat.net/] and install it like any other application on your machine.
|
43
|
-
|
44
|
-
Download DiffUtils for Windows [http://gnuwin32.sourceforge.net/packages/diffutils.htm] and follow the installation instructions on the site.
|
45
|
-
|
46
|
-
Run in the command prompt:
|
47
|
-
|
48
|
-
$ gem install ruby-snarl
|
49
|
-
|
50
|
-
After all that. You must update the environment variable PATH with the path to the bin of diffutils.
|
51
|
-
It's the price that was paid for using Windows (try cygwin).
|
52
|
-
|
53
|
-
|
54
|
-
=== If you're using Linux:
|
55
|
-
|
56
|
-
You need to have libnotify binaries installed.
|
57
|
-
|
58
|
-
For ubuntu this means: sudo apt-get install libnotify-bin
|
59
|
-
|
60
|
-
Other distributions may package it with other names, do a search for libnotify using your distribution package manager.
|
61
|
-
|
62
|
-
If you use KDE and do not have libnotify-bin installed, it will try to use kdialog wich is part of KDE.
|
63
|
-
It also works if you have zenity installed.
|
64
|
-
|
65
|
-
If you want to be notified with voice of the test results, instal espeak [http://espeak.sourceforge.net/] too, it is not needed.
|
66
|
-
And when running an-install, pass a "-s" switch, when you do not want voices notifications anymore, just run it again without the "-s" switch.
|
67
|
-
|
68
|
-
To hear the sounds of Doom Edition, you need the mplayer [http://www.mplayerhq.hu/design7/dload.html] installed.
|
69
|
-
|
70
|
-
== INSTALL:
|
71
|
-
|
72
|
-
$ sudo gem install carlosbrando-autotest-notification --source=http://gems.github.com
|
73
|
-
|
74
|
-
Run it to let the notifier in automatic mode:
|
75
|
-
|
76
|
-
$ an-install
|
77
|
-
|
78
|
-
In Windows without cygwin, it's necessary to install in the directory of the project:
|
79
|
-
|
80
|
-
$ an-install --path=C:\projects\my_project
|
81
|
-
|
82
|
-
To turn off the notifier:
|
83
|
-
|
84
|
-
$ an-uninstall
|
85
|
-
|
86
|
-
|
87
|
-
== Special Doom Edition
|
88
|
-
|
89
|
-
$ an-install --doom --speaking
|
90
|
-
|
91
|
-
== Buuf Edition - Display Buuf icons by Mattahan [http://mattahan.deviantart.com]
|
92
|
-
|
93
|
-
$ an-install --buuf
|
94
|
-
|
95
|
-
== Showing a yellow warning image when there are no errors/failures but there are pending specs
|
96
|
-
|
97
|
-
$ an-install --pending
|
98
|
-
|
99
|
-
== CONTRIBUTORS:
|
100
|
-
|
101
|
-
* carlosbrando [http://www.nomedojogo.com]
|
102
|
-
* simpsomboy [http://alexandredasilva.wordpress.com]
|
103
|
-
* urubatan [http://www.urubatan.info]
|
104
|
-
* chjunior [http://tas.milk-it.net]
|
105
|
-
* daviscabral [http://blog.impactmedia.com.br]
|
106
|
-
* tapajos [http://www.improveit.com.br/tapajos]
|
107
|
-
* tchandy [http://tchandy.wordpress.com]
|
108
|
-
* ozsantana [http://blog.iconcreative.net]
|
109
|
-
* lucasuyezu [http://xucros.com]
|
110
|
-
* samflores [http://www.thoughtsoverflow.com]
|
111
|
-
* dcrec1 [http://www.mouseoverstudio.com/blog]
|
112
|
-
* nuxlli [http://www.nuxlli.com.br]
|
113
|
-
|
114
|
-
== LICENSE:
|
115
|
-
|
116
|
-
(The MIT License)
|
117
|
-
|
118
|
-
Copyright (c) 2008 Carlos Brando
|
119
|
-
|
120
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
121
|
-
a copy of this software and associated documentation files (the
|
122
|
-
'Software'), to deal in the Software without restriction, including
|
123
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
124
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
125
|
-
permit persons to whom the Software is furnished to do so, subject to
|
126
|
-
the following conditions:
|
127
|
-
|
128
|
-
The above copyright notice and this permission notice shall be
|
129
|
-
included in all copies or substantial portions of the Software.
|
130
|
-
|
131
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
132
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
133
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
134
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
135
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
136
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
137
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|