autotest-growl 0.1.7 → 0.2.0
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/{History.txt → CHANGELOG.txt} +10 -0
- data/LICENSE +20 -0
- data/README.rdoc +69 -40
- data/img/ampelmaennchen/error.png +0 -0
- data/img/ampelmaennchen/failed.png +0 -0
- data/img/ampelmaennchen/info.png +0 -0
- data/img/ampelmaennchen/passed.png +0 -0
- data/img/ampelmaennchen/pending.png +0 -0
- data/img/{error.png → ruby/error.png} +0 -0
- data/img/{failed.png → ruby/failed.png} +0 -0
- data/img/{info.png → ruby/info.png} +0 -0
- data/img/{passed.png → ruby/passed.png} +0 -0
- data/img/{pending.png → ruby/pending.png} +0 -0
- data/lib/autotest/growl.rb +14 -6
- data/lib/autotest/result.rb +1 -1
- data/spec/autotest-growl_spec.rb +1 -2
- data/spec/spec_helper.rb +8 -10
- metadata +45 -43
- data/Manifest.txt +0 -23
- data/PostInstall.txt +0 -16
- data/Rakefile +0 -26
- data/autotest-growl.gemspec +0 -55
- data/lib/autotest-growl.rb +0 -10
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/spec/spec.opts +0 -1
- data/tasks/rspec.rake +0 -21
@@ -1,3 +1,13 @@
|
|
1
|
+
== 0.2.0 2010-02-03
|
2
|
+
|
3
|
+
* 3 major improvements
|
4
|
+
* Change dependency from "ZenTest" to lightweight "autotest"
|
5
|
+
* Add support for more platforms (Martin Vielsmaier)
|
6
|
+
* Add support for bundled icon sets
|
7
|
+
* 2 minor improvements
|
8
|
+
* Update README for development to reflect changes on Github
|
9
|
+
* New icon set "ampelmaennchen"
|
10
|
+
|
1
11
|
== 0.1.7 2009-10-09
|
2
12
|
|
3
13
|
* 2 minor improvements
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Sven Schwyn
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -6,28 +6,21 @@
|
|
6
6
|
|
7
7
|
== DESCRIPTION:
|
8
8
|
|
9
|
-
This gem aims to improve support for Growl
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
The priority of a notification is set according to the actual result so you
|
14
|
-
can configure Growl to style the notifications differently based on these
|
15
|
-
priorities:
|
16
|
-
|
17
|
-
* 2 for error or failed
|
18
|
-
* 0 for info
|
19
|
-
* -1 for pending, undefined or unknown
|
20
|
-
* -2 for passed
|
9
|
+
This gem aims to improve support for Growl notifications by autotest. It
|
10
|
+
comes with a nice and colorful icon sets and supports several testing
|
11
|
+
frameworks on different platforms.
|
21
12
|
|
22
13
|
Furthermore the terminal running autotest is cleared on every cycle (unless
|
23
14
|
configured otherwise). Don't worry though, it's still possible to scroll up
|
24
|
-
to see the output of previous cycles - at least
|
25
|
-
|
15
|
+
to see the output of previous cycles - at least when using the Terminal.app
|
16
|
+
bundled with Mac OS X.
|
26
17
|
|
27
18
|
== REQUIREMENTS:
|
28
19
|
|
29
|
-
*
|
30
|
-
*
|
20
|
+
* autotest >= 4.2.4
|
21
|
+
* Growl >= 1.1.5 on Mac OS X -or-
|
22
|
+
* Growl for Windows >= 2.0b18 on Windows -or-
|
23
|
+
* libnotify >= 0.4.5 on Linux
|
31
24
|
|
32
25
|
== INSTALL:
|
33
26
|
|
@@ -39,20 +32,62 @@ Then add the following line to your ~/.autotest file:
|
|
39
32
|
|
40
33
|
require 'autotest/growl'
|
41
34
|
|
42
|
-
|
35
|
+
Growl must be installed on your computer. You can download it from:
|
43
36
|
|
44
37
|
Mac OS X: http://growl.info
|
45
38
|
Windows: http://growlforwindows.com
|
46
39
|
|
40
|
+
On Linux you can use libnotify instead, however, some of the features
|
41
|
+
won't work. The binary notify-send must be in your PATH:
|
42
|
+
|
43
|
+
Linux: http://www.galago-project.org
|
44
|
+
|
45
|
+
If you like this gem, please consider to recommend me on Working with
|
46
|
+
Rails, thank you!
|
47
|
+
|
48
|
+
http://workingwithrails.com/recommendation/new/person/11706-sven-schwyn
|
49
|
+
|
50
|
+
== UPDATE FROM 0.1.X
|
51
|
+
|
52
|
+
As of version 0.2.0 autotest-growl no longer requires the ZenTest gem but
|
53
|
+
the lighter and improved autotest gem. To update do the following:
|
54
|
+
|
55
|
+
sudo gem uninstall ZenTest
|
56
|
+
sudo gem update autotest-growl
|
57
|
+
|
58
|
+
And only if you need all the functionality of ZenTest:
|
59
|
+
|
60
|
+
sudo gem install zentest-without-autotest
|
61
|
+
|
47
62
|
== CONFIGURATION:
|
48
63
|
|
49
|
-
===
|
64
|
+
=== Priorities
|
65
|
+
|
66
|
+
The priority of a notification is set according to the actual result so you
|
67
|
+
can configure Growl to style the notifications differently based on these
|
68
|
+
priorities:
|
69
|
+
|
70
|
+
* 2 for error or failed
|
71
|
+
* 0 for info
|
72
|
+
* -1 for pending, undefined or unknown
|
73
|
+
* -2 for passed
|
74
|
+
|
75
|
+
=== Icons
|
76
|
+
|
77
|
+
Two icon sets are bundled with this gem:
|
78
|
+
|
79
|
+
* ruby (default): The original Ruby logo dressed in traffic light colors.
|
80
|
+
* ampelmaennchen: The famous traffic light man from the now extinct GDR.
|
50
81
|
|
51
|
-
|
82
|
+
To choose an icon set, add the following to your ~/.autotest:
|
83
|
+
|
84
|
+
Autotest::Growl::image_dir = 'ampelmaennchen'
|
85
|
+
|
86
|
+
Using your own icon set is pretty simple. Images should be named as
|
52
87
|
follows: passed.png, pending.png, failed.png, error.png and info.png.
|
53
88
|
|
54
89
|
Place these images in a directory of your choosing and specify its
|
55
|
-
location in your ~/.autotest:
|
90
|
+
location in your ~/.autotest, example:
|
56
91
|
|
57
92
|
Autotest::Growl::image_dir = File.join(ENV['HOME'], '.autotest-growl')
|
58
93
|
|
@@ -88,18 +123,8 @@ notification listing the files modified before tests are re-run.
|
|
88
123
|
|
89
124
|
=== Loading the Plugin Seems to Fail
|
90
125
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
gem list ZenTest
|
95
|
-
|
96
|
-
To uninstall a specific version (e.g. 4.0.0), type:
|
97
|
-
|
98
|
-
sudo gem uninstall ZenTest --version=4.0.0
|
99
|
-
|
100
|
-
Or remove all outdated versions of all installed gems:
|
101
|
-
|
102
|
-
sudo gem cleanup
|
126
|
+
The reason may be ZenTest which must not be installed. See "Update from
|
127
|
+
0.1.X" for more on this.
|
103
128
|
|
104
129
|
=== Unreliable Growl Notifications on Mac OS X
|
105
130
|
|
@@ -122,17 +147,20 @@ whether a firewall is blocking the connection. Once the notification is
|
|
122
147
|
displayed, go back to the System Preferences and disable the checkbox
|
123
148
|
"Allow remote application registration" again.
|
124
149
|
|
125
|
-
|
150
|
+
=== No Notifications on Mac OS X 10.5
|
126
151
|
|
127
|
-
|
152
|
+
If you are still on Leopard and notifications don't work for you, get your
|
153
|
+
hands dirty and remove the "-n Autotest" argument from growl.rb. Make sure
|
154
|
+
you submit a bug or comment on a related and existing bug, too.
|
155
|
+
|
156
|
+
== DEVELOPMENT:
|
128
157
|
|
129
|
-
|
130
|
-
sudo gem install svoop-autotest-growl --source http://gems.github.com
|
158
|
+
You can install the bleeding edge version as follows:
|
131
159
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
160
|
+
git clone git://github.com/svoop/autotest-growl.git
|
161
|
+
cd autotest-growl
|
162
|
+
rake build
|
163
|
+
sudo rake install
|
136
164
|
|
137
165
|
Please submit issues on:
|
138
166
|
|
@@ -152,6 +180,7 @@ Thanks to the following folks who have contributed to this project:
|
|
152
180
|
* Karl O'Keeffe
|
153
181
|
* Konstantin Haase
|
154
182
|
* J. Edward Dewyea
|
183
|
+
* Martin Vielsmaier
|
155
184
|
|
156
185
|
== LICENSE:
|
157
186
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/autotest/growl.rb
CHANGED
@@ -26,7 +26,7 @@ module Autotest::Growl
|
|
26
26
|
@@clear_terminal = true
|
27
27
|
@@hide_label = false
|
28
28
|
@@show_modified_files = false
|
29
|
-
@@image_dir = File.join(GEM_PATH, 'img')
|
29
|
+
@@image_dir = File.join(GEM_PATH, 'img', 'ruby')
|
30
30
|
|
31
31
|
##
|
32
32
|
# Whether to use remote or local notificaton (default).
|
@@ -61,7 +61,11 @@ module Autotest::Growl
|
|
61
61
|
##
|
62
62
|
# Directory where notification icons can be found
|
63
63
|
def self.image_dir=(path)
|
64
|
-
|
64
|
+
if File.directory?(File.join(GEM_PATH, 'img', path))
|
65
|
+
@@image_dir = File.join(GEM_PATH, 'img', path)
|
66
|
+
else
|
67
|
+
@@image_dir = path
|
68
|
+
end
|
65
69
|
end
|
66
70
|
|
67
71
|
##
|
@@ -69,16 +73,20 @@ module Autotest::Growl
|
|
69
73
|
def self.growl(title, message, icon, priority=0, stick="")
|
70
74
|
growl = File.join(GEM_PATH, 'growl', 'growlnotify')
|
71
75
|
image = File.join(@@image_dir, "#{icon}.png")
|
72
|
-
|
73
|
-
|
76
|
+
platform = RUBY_PLATFORM
|
77
|
+
platform = Java::java.lang.System.getProperty("os.name") if platform =~ /java/i # see http://lopica.sourceforge.net/os.html
|
78
|
+
case platform
|
79
|
+
when /mswin|windows/i
|
74
80
|
growl += '.com'
|
75
81
|
system %(#{growl} #{message.inspect} /a:"Autotest" /r:"Autotest" /n:"Autotest" /i:"#{image}" /p:#{priority} /t:"#{title}")
|
76
|
-
when /darwin/
|
82
|
+
when /darwin|mac os/i
|
77
83
|
options = "-w -n Autotest --image '#{image}' -p #{priority} -m '#{message}' '#{title}' #{stick}"
|
78
84
|
options << " -H localhost" if @@remote_notification
|
79
85
|
system %(#{growl} #{options} &)
|
86
|
+
when /linux|bsd/i
|
87
|
+
system %(notify-send "#{title}" "#{message}" -i #{image} -t 5000)
|
80
88
|
else
|
81
|
-
raise "#{
|
89
|
+
raise "#{platform} is not supported by autotest-growl"
|
82
90
|
end
|
83
91
|
end
|
84
92
|
|
data/lib/autotest/result.rb
CHANGED
data/spec/autotest-growl_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/spec_helper
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
2
|
|
3
3
|
describe "handling results" do
|
4
4
|
before do
|
@@ -12,7 +12,6 @@ describe "handling results" do
|
|
12
12
|
@autotest.results = ["10 examples, 0 failures"]
|
13
13
|
@autotest.hook(:ran_command)
|
14
14
|
end
|
15
|
-
|
16
15
|
it "should show a 'failed' notification" do
|
17
16
|
Autotest::Growl.should_receive(:growl).and_return('failed')
|
18
17
|
@autotest.results = ["10 examples, 1 failures"]
|
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
5
|
-
gem 'rspec'
|
6
|
-
require 'spec'
|
7
|
-
end
|
8
|
-
|
9
|
-
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
10
3
|
require 'autotest/growl'
|
4
|
+
require 'spec'
|
5
|
+
require 'spec/autorun'
|
6
|
+
|
7
|
+
Spec::Runner.configure do |config|
|
8
|
+
end
|
11
9
|
|
12
10
|
module Autotest::Growl
|
13
11
|
def self.growl(title, message, icon, priority=0, stick="")
|
14
12
|
icon
|
15
13
|
end
|
16
|
-
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autotest-growl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Schwyn
|
@@ -9,64 +9,56 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-02 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
-
type: :
|
16
|
+
name: rspec
|
17
|
+
type: :development
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 1.3.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
type: :
|
26
|
+
name: autotest
|
27
|
+
type: :runtime
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 4.2.4
|
34
34
|
version:
|
35
|
-
description: This gem aims to improve support for Growl
|
36
|
-
email:
|
37
|
-
- ruby@bitcetera.com
|
35
|
+
description: This gem aims to improve support for Growl notifications by autotest.
|
36
|
+
email: ruby@bitcetera.com
|
38
37
|
executables: []
|
39
38
|
|
40
39
|
extensions: []
|
41
40
|
|
42
41
|
extra_rdoc_files:
|
43
|
-
-
|
44
|
-
- Manifest.txt
|
45
|
-
- PostInstall.txt
|
46
|
-
files:
|
47
|
-
- History.txt
|
48
|
-
- Manifest.txt
|
49
|
-
- PostInstall.txt
|
42
|
+
- LICENSE
|
50
43
|
- README.rdoc
|
51
|
-
|
52
|
-
-
|
44
|
+
files:
|
45
|
+
- CHANGELOG.txt
|
53
46
|
- growl/growlnotify
|
54
47
|
- growl/growlnotify.com
|
55
|
-
- img/error.png
|
56
|
-
- img/failed.png
|
57
|
-
- img/info.png
|
58
|
-
- img/passed.png
|
59
|
-
- img/pending.png
|
60
|
-
-
|
48
|
+
- img/ampelmaennchen/error.png
|
49
|
+
- img/ampelmaennchen/failed.png
|
50
|
+
- img/ampelmaennchen/info.png
|
51
|
+
- img/ampelmaennchen/passed.png
|
52
|
+
- img/ampelmaennchen/pending.png
|
53
|
+
- img/ruby/error.png
|
54
|
+
- img/ruby/failed.png
|
55
|
+
- img/ruby/info.png
|
56
|
+
- img/ruby/passed.png
|
57
|
+
- img/ruby/pending.png
|
61
58
|
- lib/autotest/growl.rb
|
62
59
|
- lib/autotest/result.rb
|
63
|
-
-
|
64
|
-
-
|
65
|
-
- script/generate
|
66
|
-
- spec/autotest-growl_spec.rb
|
67
|
-
- spec/spec.opts
|
68
|
-
- spec/spec_helper.rb
|
69
|
-
- tasks/rspec.rake
|
60
|
+
- LICENSE
|
61
|
+
- README.rdoc
|
70
62
|
has_rdoc: true
|
71
63
|
homepage: http://www.bitcetera.com/products/autotest-growl
|
72
64
|
licenses: []
|
@@ -75,17 +67,26 @@ post_install_message: "\n\
|
|
75
67
|
\e[1;32mIn order to use autotest-growl, the following line has to be added to your\n\
|
76
68
|
~/.autotest file:\n\n\
|
77
69
|
require 'autotest/growl'\n\n\
|
78
|
-
Make sure
|
79
|
-
http://growl.info (Mac OS X)\n\
|
80
|
-
http://growlforwindows.com (Windows)\n\
|
70
|
+
Make sure the notification service installed on your computer:\n\n\
|
71
|
+
http://growl.info (Growl for Mac OS X)\n\
|
72
|
+
http://growlforwindows.com (Growl for Windows)\n\
|
73
|
+
http://www.galago-project.org (libnotify for Linux)\n\n\
|
81
74
|
If Growl notifications are not always displayed, take a look at the README\n\
|
82
75
|
for assistance.\n\n\
|
83
76
|
For more information, feedback and bug submissions, please visit:\n\n\
|
84
|
-
http://www.bitcetera.com/products/autotest-growl\n\
|
77
|
+
http://www.bitcetera.com/products/autotest-growl\n\n\
|
78
|
+
If you like this gem, please consider to recommend me on Working with\n\
|
79
|
+
Rails, thank you!\n\n\
|
80
|
+
http://workingwithrails.com/recommendation/new/person/11706-sven-schwyn\n\n\
|
81
|
+
+-------------------------------------------------------------------------+\n\
|
82
|
+
| READ THIS IF YOU ARE UPGRADING FROM 0.1.X |\n\
|
83
|
+
| As of 0.2.0 this gem no longer depends on the rather heavy ZenTest gem |\n\
|
84
|
+
| but the more lightweight autotest gem. You MUST uninstall ZenTest now! |\n\
|
85
|
+
| Please refer to the README in case you need more ZenTest functionality. |\n\
|
86
|
+
+-------------------------------------------------------------------------+\n\
|
85
87
|
\e[0m\n"
|
86
88
|
rdoc_options:
|
87
|
-
- --
|
88
|
-
- README.rdoc
|
89
|
+
- --charset=UTF-8
|
89
90
|
require_paths:
|
90
91
|
- lib
|
91
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -102,10 +103,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
103
|
version:
|
103
104
|
requirements: []
|
104
105
|
|
105
|
-
rubyforge_project:
|
106
|
+
rubyforge_project:
|
106
107
|
rubygems_version: 1.3.5
|
107
108
|
signing_key:
|
108
109
|
specification_version: 3
|
109
|
-
summary:
|
110
|
-
test_files:
|
111
|
-
|
110
|
+
summary: Growl notification support for autotest.
|
111
|
+
test_files:
|
112
|
+
- spec/autotest-growl_spec.rb
|
113
|
+
- spec/spec_helper.rb
|
data/Manifest.txt
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
Manifest.txt
|
3
|
-
PostInstall.txt
|
4
|
-
README.rdoc
|
5
|
-
Rakefile
|
6
|
-
autotest-growl.gemspec
|
7
|
-
growl/growlnotify
|
8
|
-
growl/growlnotify.com
|
9
|
-
img/error.png
|
10
|
-
img/failed.png
|
11
|
-
img/info.png
|
12
|
-
img/passed.png
|
13
|
-
img/pending.png
|
14
|
-
lib/autotest-growl.rb
|
15
|
-
lib/autotest/growl.rb
|
16
|
-
lib/autotest/result.rb
|
17
|
-
script/console
|
18
|
-
script/destroy
|
19
|
-
script/generate
|
20
|
-
spec/autotest-growl_spec.rb
|
21
|
-
spec/spec.opts
|
22
|
-
spec/spec_helper.rb
|
23
|
-
tasks/rspec.rake
|
data/PostInstall.txt
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
In order to use autotest-growl, the following line has to be added to your
|
2
|
-
~/.autotest file:
|
3
|
-
|
4
|
-
require 'autotest/growl'
|
5
|
-
|
6
|
-
Make sure Growl is installed on your computer. Download it from:
|
7
|
-
|
8
|
-
http://growl.info (Mac OS X)
|
9
|
-
http://growlforwindows.com (Windows)
|
10
|
-
|
11
|
-
If Growl notifications are not always displayed, take a look at the README
|
12
|
-
for assistance.
|
13
|
-
|
14
|
-
For more information, feedback and bug submissions, please visit:
|
15
|
-
|
16
|
-
http://www.bitcetera.com/products/autotest-growl
|
data/Rakefile
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
gem 'hoe', '>= 2.1.0'
|
3
|
-
require 'hoe'
|
4
|
-
require 'fileutils'
|
5
|
-
require './lib/autotest-growl'
|
6
|
-
|
7
|
-
Hoe.plugin :newgem
|
8
|
-
# Hoe.plugin :website
|
9
|
-
# Hoe.plugin :cucumberfeatures
|
10
|
-
|
11
|
-
$hoe = Hoe.spec 'autotest-growl' do
|
12
|
-
self.developer 'Sven Schwyn', 'ruby@bitcetera.com'
|
13
|
-
self.summary = %q{Next generation Growl notification support for ZenTest's autotest.}
|
14
|
-
self.description = %q{This gem aims to improve support for Growl notification by ZenTest's autotest. It comes with a nice colored Ruby icon set and - for now - supports Cucumber by means of a workaround.}
|
15
|
-
self.url = %q{http://www.bitcetera.com/products/autotest-growl}
|
16
|
-
self.post_install_message = "\n\e[1;32m" + File.read('PostInstall.txt') + "\e[0m\n"
|
17
|
-
self.rubyforge_name = self.name
|
18
|
-
self.extra_deps = [
|
19
|
-
['ZenTest','>= 4.1.3'],
|
20
|
-
]
|
21
|
-
end
|
22
|
-
|
23
|
-
require 'newgem/tasks'
|
24
|
-
Dir['tasks/**/*.rake'].each { |t| load t }
|
25
|
-
|
26
|
-
task :default => [:spec]
|
data/autotest-growl.gemspec
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{autotest-growl}
|
5
|
-
s.version = "0.1.7"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Sven Schwyn"]
|
9
|
-
s.date = %q{2009-10-09}
|
10
|
-
s.description = %q{This gem aims to improve support for Growl notification by ZenTest's autotest. It comes with a nice colored Ruby icon set and - for now - supports Cucumber by means of a workaround.}
|
11
|
-
s.email = ["ruby@bitcetera.com"]
|
12
|
-
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt"]
|
13
|
-
s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "autotest-growl.gemspec", "growl/growlnotify", "growl/growlnotify.com", "img/error.png", "img/failed.png", "img/info.png", "img/passed.png", "img/pending.png", "lib/autotest-growl.rb", "lib/autotest/growl.rb", "lib/autotest/result.rb", "script/console", "script/destroy", "script/generate", "spec/autotest-growl_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake"]
|
14
|
-
s.homepage = %q{http://www.bitcetera.com/products/autotest-growl}
|
15
|
-
s.post_install_message = %q{
|
16
|
-
[1;32mIn order to use autotest-growl, the following line has to be added to your
|
17
|
-
~/.autotest file:
|
18
|
-
|
19
|
-
require 'autotest/growl'
|
20
|
-
|
21
|
-
Make sure Growl is installed on your computer. Download it from:
|
22
|
-
|
23
|
-
http://growl.info (Mac OS X)
|
24
|
-
http://growlforwindows.com (Windows)
|
25
|
-
|
26
|
-
If Growl notifications are not always displayed, take a look at the README
|
27
|
-
for assistance.
|
28
|
-
|
29
|
-
For more information, feedback and bug submissions, please visit:
|
30
|
-
|
31
|
-
http://www.bitcetera.com/products/autotest-growl
|
32
|
-
[0m
|
33
|
-
}
|
34
|
-
s.rdoc_options = ["--main", "README.rdoc"]
|
35
|
-
s.require_paths = ["lib"]
|
36
|
-
s.rubyforge_project = %q{autotest-growl}
|
37
|
-
s.rubygems_version = %q{1.3.5}
|
38
|
-
s.summary = %q{Next generation Growl notification support for ZenTest's autotest.}
|
39
|
-
|
40
|
-
if s.respond_to? :specification_version then
|
41
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
42
|
-
s.specification_version = 3
|
43
|
-
|
44
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
45
|
-
s.add_runtime_dependency(%q<ZenTest>, [">= 4.1.3"])
|
46
|
-
s.add_development_dependency(%q<hoe>, [">= 2.3.3"])
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<ZenTest>, [">= 4.1.3"])
|
49
|
-
s.add_dependency(%q<hoe>, [">= 2.3.3"])
|
50
|
-
end
|
51
|
-
else
|
52
|
-
s.add_dependency(%q<ZenTest>, [">= 4.1.3"])
|
53
|
-
s.add_dependency(%q<hoe>, [">= 2.3.3"])
|
54
|
-
end
|
55
|
-
end
|
data/lib/autotest-growl.rb
DELETED
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/autotest/growl.rb'}"
|
9
|
-
puts "Loading autotest-growl gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|
data/tasks/rspec.rake
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
5
|
-
require 'spec'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'spec/rake/spectask'
|
9
|
-
rescue LoadError
|
10
|
-
puts <<-EOS
|
11
|
-
To use rspec for testing you must install rspec gem:
|
12
|
-
gem install rspec
|
13
|
-
EOS
|
14
|
-
exit(0)
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Run the specs under spec/models"
|
18
|
-
Spec::Rake::SpecTask.new do |t|
|
19
|
-
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
-
end
|