autotest-growl 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Manifest.txt +2 -0
- data/PostInstall.txt +21 -22
- data/README.rdoc +24 -24
- data/Rakefile +4 -4
- data/autotest-growl.gemspec +65 -0
- data/lib/autotest-growl.rb +8 -0
- data/lib/autotest/growl.rb +1 -5
- metadata +23 -28
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -3,11 +3,13 @@ Manifest.txt
|
|
3
3
|
PostInstall.txt
|
4
4
|
README.rdoc
|
5
5
|
Rakefile
|
6
|
+
autotest-growl.gemspec
|
6
7
|
growl/growlnotify
|
7
8
|
img/error.png
|
8
9
|
img/failed.png
|
9
10
|
img/passed.png
|
10
11
|
img/pending.png
|
12
|
+
lib/autotest-growl.rb
|
11
13
|
lib/autotest/growl.rb
|
12
14
|
script/console
|
13
15
|
script/destroy
|
data/PostInstall.txt
CHANGED
@@ -1,24 +1,23 @@
|
|
1
|
+
In order to use autotest-growl, the following line has to be added to your
|
2
|
+
~/.autotest file:
|
1
3
|
|
2
|
-
|
3
|
-
| |
|
4
|
-
| In order to use autotest-growl, the following line has to be added |
|
5
|
-
| to the top of ~/.autotest file: |
|
6
|
-
| |
|
7
|
-
| require 'autotest/growl' |
|
8
|
-
| |
|
9
|
-
| IMPORTANT: If you use ZenTest-4.0.0, this won't work. See the README |
|
10
|
-
| for further instructions. |
|
11
|
-
| |
|
12
|
-
| Make sure Growl is installed on your computer. Download it from: |
|
13
|
-
| |
|
14
|
-
| http://growl.info |
|
15
|
-
| |
|
16
|
-
| If Growl notifications are not always displayed, take a look at the |
|
17
|
-
| README for help. |
|
18
|
-
| |
|
19
|
-
| For more information, feedback and bug submissions, please visit: |
|
20
|
-
| |
|
21
|
-
| See http://www.bitcetera.com/products/autotest-growl |
|
22
|
-
| |
|
23
|
-
+--------------------------------------------------------------------------+
|
4
|
+
require 'autotest/growl'
|
24
5
|
|
6
|
+
Make sure Growl is installed on your computer. Download it from:
|
7
|
+
|
8
|
+
http://growl.info
|
9
|
+
|
10
|
+
If Growl notifications are not always displayed, take a look at the README
|
11
|
+
for assistance.
|
12
|
+
|
13
|
+
For more information, feedback and bug submissions, please visit:
|
14
|
+
|
15
|
+
http://www.bitcetera.com/products/autotest-growl
|
16
|
+
|
17
|
+
+-------------------------------------------------------------------------+
|
18
|
+
| IMPORTANT NOTE FOR UPGRADES FROM VERSION 0.1.0 |
|
19
|
+
| ZenTest no longer comes with bundled Growl support and therefore the |
|
20
|
+
| require in your ~/.autotest must not contain the absolute path to this |
|
21
|
+
| gem anymore. Please update your ~/.autotest to contain the require line |
|
22
|
+
| mentioned above. |
|
23
|
+
+-------------------------------------------------------------------------+
|
data/README.rdoc
CHANGED
@@ -15,44 +15,28 @@ cycles.
|
|
15
15
|
|
16
16
|
=== Ruby 1.9.1 Note
|
17
17
|
|
18
|
-
For the moment, autotest
|
19
|
-
|
20
|
-
|
18
|
+
For the moment, autotest growl doesn't seem to work on Ruby 1.9.1. Fixing this
|
19
|
+
might take a while though as autotest itself is currently misbehaving on Ruby
|
20
|
+
1.9 - at least on my setup.
|
21
21
|
|
22
22
|
== REQUIREMENTS:
|
23
23
|
|
24
24
|
* Growl >= 1.1.4
|
25
|
-
* ZenTest >= 4.
|
25
|
+
* ZenTest >= 4.1.0
|
26
26
|
|
27
27
|
== INSTALL:
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
http://growl.info
|
32
|
-
|
33
|
-
Now install the gem:
|
29
|
+
First install the gem:
|
34
30
|
|
35
31
|
sudo gem install autotest-growl
|
36
32
|
|
37
|
-
|
38
|
-
|
39
|
-
Add the following line to your ~/.autotest file:
|
33
|
+
Then add the following line to your ~/.autotest file:
|
40
34
|
|
41
35
|
require 'autotest/growl'
|
42
36
|
|
43
|
-
|
44
|
-
|
45
|
-
ZenTest comes with a bundled Growl plugin which will be removed in the
|
46
|
-
near future. If you use ZenTest-4.0.0 or older, the above require won't do
|
47
|
-
the trick, instead do the following:
|
48
|
-
|
49
|
-
Find the full path to autotest-growl:
|
50
|
-
|
51
|
-
find /Library/Ruby /usr -name growl.rb | grep "gems/autotest"
|
52
|
-
|
53
|
-
Then add the output of the above to your ~/.autotest file:
|
37
|
+
Make sure Growl is installed on your computer. You can download it from:
|
54
38
|
|
55
|
-
|
39
|
+
http://growl.info
|
56
40
|
|
57
41
|
== CONFIGURATION:
|
58
42
|
|
@@ -98,6 +82,22 @@ whether a firewall is blocking the connection. Once the notification is
|
|
98
82
|
displayed, go back to the System Preferences and disable the checkbox
|
99
83
|
"Allow remote application registration" again.
|
100
84
|
|
85
|
+
== DEVELOPMENT:
|
86
|
+
|
87
|
+
You can install the bleeding-edge version as follows:
|
88
|
+
|
89
|
+
sudo gem uninstall autotest-growl
|
90
|
+
sudo gem install svoop-autotest-growl --source http://gems.github.com
|
91
|
+
|
92
|
+
Please submit issues on:
|
93
|
+
|
94
|
+
https://forge.bitcetera.com/projects/show/autotest-growl
|
95
|
+
|
96
|
+
To contribute code, fork the project on Github, add your code and submit a
|
97
|
+
pull request:
|
98
|
+
|
99
|
+
http://github.com/guides/fork-a-project-and-submit-your-modifications
|
100
|
+
|
101
101
|
== LICENSE:
|
102
102
|
|
103
103
|
(The MIT License)
|
data/Rakefile
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
2
2
|
%w[rake rake/clean fileutils newgem rubigen].each { |f| require f }
|
3
|
-
require File.dirname(__FILE__) + '/lib/autotest
|
3
|
+
require File.dirname(__FILE__) + '/lib/autotest-growl'
|
4
4
|
|
5
|
-
$hoe = Hoe.new('autotest-growl',
|
5
|
+
$hoe = Hoe.new('autotest-growl', AutotestGrowl::VERSION) do |p|
|
6
6
|
p.developer('Sven Schwyn', 'ruby@bitcetera.com')
|
7
7
|
p.summary = %q{Next generation Growl notification support for ZenTest's autotest.}
|
8
8
|
p.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.}
|
9
9
|
p.url = %q{http://www.bitcetera.com/products/autotest-growl}
|
10
10
|
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
11
|
-
p.post_install_message = File.read('PostInstall.txt')
|
11
|
+
p.post_install_message = "\n\e[1;32m" + File.read('PostInstall.txt') + "\e[0;30m\n"
|
12
12
|
p.rubyforge_name = p.name
|
13
13
|
p.extra_deps = [
|
14
|
-
['ZenTest','>= 4.
|
14
|
+
['ZenTest','>= 4.1.0'],
|
15
15
|
]
|
16
16
|
p.extra_dev_deps = [
|
17
17
|
['newgem', ">= #{::Newgem::VERSION}"]
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{autotest-growl}
|
5
|
+
s.version = "0.1.1"
|
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-06-03}
|
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", "README.rdoc"]
|
13
|
+
s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "autotest-growl.gemspec", "growl/growlnotify", "img/error.png", "img/failed.png", "img/passed.png", "img/pending.png", "lib/autotest-growl.rb", "lib/autotest/growl.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
|
24
|
+
|
25
|
+
If Growl notifications are not always displayed, take a look at the README
|
26
|
+
for assistance.
|
27
|
+
|
28
|
+
For more information, feedback and bug submissions, please visit:
|
29
|
+
|
30
|
+
http://www.bitcetera.com/products/autotest-growl
|
31
|
+
|
32
|
+
+-------------------------------------------------------------------------+
|
33
|
+
| IMPORTANT NOTE FOR UPGRADES FROM VERSION 0.1.0 |
|
34
|
+
| ZenTest no longer comes with bundled Growl support and therefore the |
|
35
|
+
| require in your ~/.autotest must not contain the absolute path to this |
|
36
|
+
| gem anymore. Please update your ~/.autotest to contain the require line |
|
37
|
+
| mentioned above. |
|
38
|
+
+-------------------------------------------------------------------------+
|
39
|
+
[0;30m
|
40
|
+
}
|
41
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
42
|
+
s.require_paths = ["lib"]
|
43
|
+
s.rubyforge_project = %q{autotest-growl}
|
44
|
+
s.rubygems_version = %q{1.3.3}
|
45
|
+
s.summary = %q{Next generation Growl notification support for ZenTest's autotest.}
|
46
|
+
|
47
|
+
if s.respond_to? :specification_version then
|
48
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
|
+
s.specification_version = 3
|
50
|
+
|
51
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
52
|
+
s.add_runtime_dependency(%q<ZenTest>, [">= 4.1.0"])
|
53
|
+
s.add_development_dependency(%q<newgem>, [">= 1.4.1"])
|
54
|
+
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
55
|
+
else
|
56
|
+
s.add_dependency(%q<ZenTest>, [">= 4.1.0"])
|
57
|
+
s.add_dependency(%q<newgem>, [">= 1.4.1"])
|
58
|
+
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
59
|
+
end
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<ZenTest>, [">= 4.1.0"])
|
62
|
+
s.add_dependency(%q<newgem>, [">= 1.4.1"])
|
63
|
+
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
64
|
+
end
|
65
|
+
end
|
data/lib/autotest/growl.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'autotest'
|
3
3
|
|
4
|
-
$:.unshift(File.dirname(__FILE__)) unless
|
5
|
-
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
6
|
-
|
7
4
|
##
|
8
5
|
# Autotest::Growl
|
9
6
|
#
|
@@ -16,7 +13,6 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
16
13
|
# require 'autotest/growl'
|
17
14
|
module Autotest::Growl
|
18
15
|
|
19
|
-
VERSION = '0.1.0'
|
20
16
|
GEM_PATH = File.expand_path(File.join(File.dirname(__FILE__), '../..'))
|
21
17
|
|
22
18
|
@@remote_notification = false
|
@@ -79,7 +75,7 @@ module Autotest::Growl
|
|
79
75
|
|
80
76
|
# FIXME: This is a temporary workaround until Cucumber is properly integrated!
|
81
77
|
Autotest.add_hook :waiting do |autotest|
|
82
|
-
if @run_scenarios && autotest.results.grep(/
|
78
|
+
if @run_scenarios && !autotest.results.grep(/^\d+ scenario/).empty?
|
83
79
|
gist = autotest.results.grep(/\d+\s+(scenario|step)s?/).map {|s| s.gsub(/(\e.*?m|\n)/, '') }.join(" / ")
|
84
80
|
if gist == ''
|
85
81
|
growl @label + 'Cannot run scenarios.', '', 'error'
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Schwyn
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-03 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 4.
|
23
|
+
version: 4.1.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: newgem
|
@@ -60,11 +60,13 @@ files:
|
|
60
60
|
- PostInstall.txt
|
61
61
|
- README.rdoc
|
62
62
|
- Rakefile
|
63
|
+
- autotest-growl.gemspec
|
63
64
|
- growl/growlnotify
|
64
65
|
- img/error.png
|
65
66
|
- img/failed.png
|
66
67
|
- img/passed.png
|
67
68
|
- img/pending.png
|
69
|
+
- lib/autotest-growl.rb
|
68
70
|
- lib/autotest/growl.rb
|
69
71
|
- script/console
|
70
72
|
- script/destroy
|
@@ -77,31 +79,24 @@ has_rdoc: true
|
|
77
79
|
homepage: http://www.bitcetera.com/products/autotest-growl
|
78
80
|
licenses: []
|
79
81
|
|
80
|
-
post_install_message:
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
| |
|
99
|
-
| For more information, feedback and bug submissions, please visit: |
|
100
|
-
| |
|
101
|
-
| See http://www.bitcetera.com/products/autotest-growl |
|
102
|
-
| |
|
103
|
-
+--------------------------------------------------------------------------+
|
104
|
-
|
82
|
+
post_install_message: "\n\
|
83
|
+
\e[1;32mIn order to use autotest-growl, the following line has to be added to your\n\
|
84
|
+
~/.autotest file:\n\n\
|
85
|
+
require 'autotest/growl'\n\n\
|
86
|
+
Make sure Growl is installed on your computer. Download it from:\n\n\
|
87
|
+
http://growl.info\n\n\
|
88
|
+
If Growl notifications are not always displayed, take a look at the README\n\
|
89
|
+
for assistance.\n\n\
|
90
|
+
For more information, feedback and bug submissions, please visit:\n\n\
|
91
|
+
http://www.bitcetera.com/products/autotest-growl\n\n\
|
92
|
+
+-------------------------------------------------------------------------+\n\
|
93
|
+
| IMPORTANT NOTE FOR UPGRADES FROM VERSION 0.1.0 |\n\
|
94
|
+
| ZenTest no longer comes with bundled Growl support and therefore the |\n\
|
95
|
+
| require in your ~/.autotest must not contain the absolute path to this |\n\
|
96
|
+
| gem anymore. Please update your ~/.autotest to contain the require line |\n\
|
97
|
+
| mentioned above. |\n\
|
98
|
+
+-------------------------------------------------------------------------+\n\
|
99
|
+
\e[0;30m\n"
|
105
100
|
rdoc_options:
|
106
101
|
- --main
|
107
102
|
- README.rdoc
|