autotest-notify-osd 0.1.0 → 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/README.rdoc +8 -2
- data/autotest-notify-osd.gemspec +8 -25
- data/lib/autotest/notify-osd.rb +4 -63
- metadata +19 -32
data/README.rdoc
CHANGED
@@ -16,9 +16,15 @@ notifications by means of a workaround.
|
|
16
16
|
|
17
17
|
== INSTALL:
|
18
18
|
|
19
|
-
|
19
|
+
This gem has now been moved to Gemcutter. If you haven't used Gemcutter before,
|
20
|
+
do the following:
|
20
21
|
|
21
|
-
sudo gem install
|
22
|
+
sudo gem install gemcutter
|
23
|
+
sudo gem tumble
|
24
|
+
|
25
|
+
Now, install the gem:
|
26
|
+
|
27
|
+
sudo gem install autotest-notify-osd
|
22
28
|
|
23
29
|
Then add the following line to your ~/.autotest file:
|
24
30
|
|
data/autotest-notify-osd.gemspec
CHANGED
@@ -2,26 +2,23 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{autotest-notify-osd}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.2.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Stephen H. Gerstacker"]
|
9
|
-
s.date = %q{
|
10
|
-
s.description = %q{This gem
|
9
|
+
s.date = %q{2010-03-02}
|
10
|
+
s.description = %q{This gem has been deprecated and replaced by autotest-growl}
|
11
11
|
s.email = ["stephen@shortround.net"]
|
12
12
|
s.extra_rdoc_files = ["PostInstall.txt"]
|
13
13
|
s.files = ["Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "autotest-notify-osd.gemspec", "img/error.png", "img/failed.png", "img/info.png", "img/passed.png", "img/pending.png", "lib/autotest-notify-osd.rb", "lib/autotest/notify-osd.rb", "lib/autotest/result.rb", "script/console", "script/destroy", "script/generate", "spec/autotest-notify-osd_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake"]
|
14
14
|
s.homepage = %q{http://github.com/stack/autotest-notify-osd}
|
15
15
|
s.post_install_message = %q{
|
16
|
-
[1;
|
17
|
-
~/.autotest file:
|
16
|
+
[1;32mThis gem has been deprecated and replaced by autotest-growl
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
Make sure Notify OSD is installed on your computer. Download it from:
|
22
|
-
|
23
|
-
https://wiki.ubuntu.com/NotifyOSD
|
18
|
+
This gem was originally a fork of the autotest-growl gem to add linux support. The original gem now supports
|
19
|
+
linux, so this is no longer needed. Please uninstall and install the new gem.
|
24
20
|
|
21
|
+
This gem will be broken.
|
25
22
|
[0m
|
26
23
|
}
|
27
24
|
s.rdoc_options = ["--main", "README.rdoc"]
|
@@ -30,19 +27,5 @@ https://wiki.ubuntu.com/NotifyOSD
|
|
30
27
|
s.rubygems_version = %q{1.3.5}
|
31
28
|
s.summary = %q{Notify OSD notification support for ZenTest's autotest.}
|
32
29
|
|
33
|
-
if s.respond_to? :specification_version then
|
34
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
35
|
-
s.specification_version = 3
|
36
|
-
|
37
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
38
|
-
s.add_runtime_dependency(%q<ZenTest>, [">= 4.1.3"])
|
39
|
-
s.add_development_dependency(%q<hoe>, [">= 2.3.3"])
|
40
|
-
else
|
41
|
-
s.add_dependency(%q<ZenTest>, [">= 4.1.3"])
|
42
|
-
s.add_dependency(%q<hoe>, [">= 2.3.3"])
|
43
|
-
end
|
44
|
-
else
|
45
|
-
s.add_dependency(%q<ZenTest>, [">= 4.1.3"])
|
46
|
-
s.add_dependency(%q<hoe>, [">= 2.3.3"])
|
47
|
-
end
|
48
30
|
end
|
31
|
+
|
data/lib/autotest/notify-osd.rb
CHANGED
@@ -79,87 +79,28 @@ module Autotest::NotifyOSD
|
|
79
79
|
##
|
80
80
|
# Display the modified files.
|
81
81
|
Autotest.add_hook :updated do |autotest, modified|
|
82
|
-
|
83
|
-
if @@show_modified_files
|
84
|
-
if modified != @last_modified
|
85
|
-
notify_osd @label + 'Modifications detected.', modified.collect {|m| m[0]}.join(', '), 'info', 0
|
86
|
-
@last_modified = modified
|
87
|
-
end
|
88
|
-
end
|
82
|
+
print "\nThis gem has been deprecated and replaced by autotest-growl\n"
|
89
83
|
false
|
90
84
|
end
|
91
85
|
|
92
86
|
##
|
93
87
|
# Set the label and clear the terminal.
|
94
88
|
Autotest.add_hook :run_command do
|
95
|
-
|
96
|
-
print "\n"*2 + '-'*80 + "\n"*2
|
97
|
-
system %(clear) if @@clear_terminal
|
89
|
+
print "\nThis gem has been deprecated and replaced by autotest-growl\n"
|
98
90
|
false
|
99
91
|
end
|
100
92
|
|
101
93
|
##
|
102
94
|
# Parse the RSpec and Test::Unit results and send them to Growl.
|
103
95
|
Autotest.add_hook :ran_command do |autotest|
|
104
|
-
|
105
|
-
result = Result.new(autotest)
|
106
|
-
if result.exists?
|
107
|
-
case result.framework
|
108
|
-
when 'test-unit'
|
109
|
-
if result.has?('test-error')
|
110
|
-
notify_osd @label + 'Cannot run some unit tests.', "#{result.get('test-error')} in #{result.get('test')}", 'error', 2
|
111
|
-
elsif result.has?('test-failed')
|
112
|
-
notify_osd @label + 'Some unit tests failed.', "#{result['test-failed']} of #{result.get('test-assertion')} in #{result.get('test')} failed", 'failed', 2
|
113
|
-
else
|
114
|
-
notify_osd @label + 'All unit tests passed.', "#{result.get('test-assertion')} in #{result.get('test')}", 'passed', -2
|
115
|
-
end
|
116
|
-
when 'rspec'
|
117
|
-
if result.has?('example-failed')
|
118
|
-
notify_osd @label + 'Some RSpec examples failed.', "#{result['example-failed']} of #{result.get('example')} failed", 'failed', 2
|
119
|
-
elsif result.has?('example-pending')
|
120
|
-
notify_osd @label + 'Some RSpec examples are pending.', "#{result['example-pending']} of #{result.get('example')} pending", 'pending', -1
|
121
|
-
else
|
122
|
-
notify_osd @label + 'All RSpec examples passed.', "#{result.get('example')}", 'passed', -2
|
123
|
-
end
|
124
|
-
end
|
125
|
-
else
|
126
|
-
notify_osd @label + 'Could not run tests.', '', 'error', 2
|
127
|
-
end
|
128
|
-
@ran_test = true
|
129
|
-
end
|
96
|
+
print "\nThis gem has been deprecated and replaced by autotest-growl\n"
|
130
97
|
false
|
131
98
|
end
|
132
99
|
|
133
100
|
##
|
134
101
|
# Parse the Cucumber results and sent them to Growl.
|
135
102
|
Autotest.add_hook :ran_features do |autotest|
|
136
|
-
|
137
|
-
result = Result.new(autotest)
|
138
|
-
if result.exists?
|
139
|
-
case result.framework
|
140
|
-
when 'cucumber'
|
141
|
-
explanation = []
|
142
|
-
if result.has?('scenario-undefined') || result.has?('step-undefined')
|
143
|
-
explanation << "#{result['scenario-undefined']} of #{result.get('scenario')} not defined" if result['scenario-undefined']
|
144
|
-
explanation << "#{result['step-undefined']} of #{result.get('step')} not defined" if result['step-undefined']
|
145
|
-
notify_osd @label + 'Some Cucumber scenarios are not defined.', "#{explanation.join("\n")}", 'pending', -1
|
146
|
-
elsif result.has?('scenario-failed') || result.has?('step-failed')
|
147
|
-
explanation << "#{result['scenario-failed']} of #{result.get('scenario')} failed" if result['scenario-failed']
|
148
|
-
explanation << "#{result['step-failed']} of #{result.get('step')} failed" if result['step-failed']
|
149
|
-
notify_osd @label + 'Some Cucumber scenarios failed.', "#{explanation.join("\n")}", 'failed', 2
|
150
|
-
elsif result.has?('scenario-pending') || result.has?('step-pending')
|
151
|
-
explanation << "#{result['scenario-pending']} of #{result.get('scenario')} pending" if result['scenario-pending']
|
152
|
-
explanation << "#{result['step-pending']} of #{result.get('step')} pending" if result['step-pending']
|
153
|
-
notify_osd @label + 'Some Cucumber scenarios are pending.', "#{explanation.join("\n")}", 'pending', -1
|
154
|
-
else
|
155
|
-
notify_osd @label + 'All Cucumber features passed.', '', 'passed', -2
|
156
|
-
end
|
157
|
-
end
|
158
|
-
else
|
159
|
-
notify_osd @label + 'Could not run features.', '', 'error', 2
|
160
|
-
end
|
161
|
-
@ran_features = true
|
162
|
-
end
|
103
|
+
print "\nThis gem has been deprecated and replaced by autotest-growl\n"
|
163
104
|
false
|
164
105
|
end
|
165
106
|
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autotest-notify-osd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Stephen H. Gerstacker
|
@@ -9,30 +14,11 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-03-02 00:00:00 -05:00
|
13
18
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
17
|
-
type: :runtime
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 4.1.3
|
24
|
-
version:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: hoe
|
27
|
-
type: :development
|
28
|
-
version_requirement:
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.3.3
|
34
|
-
version:
|
35
|
-
description: This gem aims to improve support for Notify OSD notification by ZenTest's autotest. It comes with a nice colored Ruby icon set and - for now - supports Cucumber by means of a workaround.
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: This gem has been deprecated and replaced by autotest-growl
|
36
22
|
email:
|
37
23
|
- stephen@shortround.net
|
38
24
|
executables: []
|
@@ -67,11 +53,10 @@ homepage: http://github.com/stack/autotest-notify-osd
|
|
67
53
|
licenses: []
|
68
54
|
|
69
55
|
post_install_message: "\n\
|
70
|
-
\e[1;
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
https://wiki.ubuntu.com/NotifyOSD\n\n\
|
56
|
+
\e[1;32mThis gem has been deprecated and replaced by autotest-growl\n\n\
|
57
|
+
This gem was originally a fork of the autotest-growl gem to add linux support. The original gem now supports\n\
|
58
|
+
linux, so this is no longer needed. Please uninstall and install the new gem.\n\n\
|
59
|
+
This gem will be broken.\n\
|
75
60
|
\e[0m\n"
|
76
61
|
rdoc_options:
|
77
62
|
- --main
|
@@ -82,18 +67,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
67
|
requirements:
|
83
68
|
- - ">="
|
84
69
|
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 0
|
85
72
|
version: "0"
|
86
|
-
version:
|
87
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
74
|
requirements:
|
89
75
|
- - ">="
|
90
76
|
- !ruby/object:Gem::Version
|
77
|
+
segments:
|
78
|
+
- 0
|
91
79
|
version: "0"
|
92
|
-
version:
|
93
80
|
requirements: []
|
94
81
|
|
95
82
|
rubyforge_project: autotest-notify-osd
|
96
|
-
rubygems_version: 1.3.
|
83
|
+
rubygems_version: 1.3.6
|
97
84
|
signing_key:
|
98
85
|
specification_version: 3
|
99
86
|
summary: Notify OSD notification support for ZenTest's autotest.
|