carlosbrando-autotest-notification 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,29 +1,34 @@
1
- 1.6.0 - Oct 08, 2008
1
+ == 1.7.0 2008-11-13
2
+
3
+ * 1.7.0 - Nov 13, 2008
4
+ * Update to new newgem gem.
5
+
6
+ * 1.6.0 - Oct 08, 2008
2
7
  * Buuf Edition - display Buuf icons by Mattahan [http://mattahan.deviantart.com] (samflores)
3
8
  * Added --sticky flag to an-install to keep notifications on screen in case of errors/failures or pending specs (samflores)
4
9
  * Pending notifications now have a priority different from Passed and Failled notifications, to allow set diff color with Growl (samflores)
5
10
 
6
- 1.5.0 - Oct 02, 2008
11
+ * 1.5.0 - Oct 02, 2008
7
12
  * If an-install is run with --pending, shows a yellow warning when there are no errors/failures but there are pending specs. (lucasuyezu)
8
13
 
9
- 1.4.0 - Jun 18, 2008
14
+ * 1.4.0 - Jun 18, 2008
10
15
  * Special Doom Edition for Linux (ozsantana)
11
16
 
12
- 1.3.1 - Jun 18, 2008
17
+ * 1.3.1 - Jun 18, 2008
13
18
  * Added backup to old .autotest file (tchandy)
14
19
 
15
- 1.3.0 - Jun 18, 2008
20
+ * 1.3.0 - Jun 18, 2008
16
21
  * Added Doom sounds.
17
22
 
18
- 1.2.0 - Jun 17, 2008
23
+ * 1.2.0 - Jun 17, 2008
19
24
  * Special Doom Edition
20
25
 
21
- 1.1.2
26
+ * 1.1.2
22
27
  * Refactoring code.
23
28
 
24
29
  * 1.1.1
25
30
  * Changed to speak when passing the tests after a series of failures. Only in Mac.
26
-
31
+
27
32
  * 1.1.0
28
33
  * Now speaking in Linux too.
29
34
 
@@ -53,6 +58,3 @@
53
58
 
54
59
  * 0.0.4:
55
60
  * Added an-uninstall to remove the autotest hook.
56
-
57
- * 1 major enhancement:
58
- * Initial release
data/Manifest.txt CHANGED
@@ -1,45 +1,8 @@
1
- autotest-notification.gemspec
2
1
  History.txt
3
- License.txt
4
2
  Manifest.txt
5
3
  PostInstall.txt
6
- README.txt
4
+ README.rdoc
7
5
  Rakefile
8
- config/hoe.rb
9
- config/requirements.rb
10
- lib/autotest_notification.rb
11
- lib/autotest_notification/version.rb
12
- lib/autotest_notification/linux.rb
13
- lib/autotest_notification/windows.rb
14
- lib/autotest_notification/cygwin.rb
15
- lib/autotest_notification/mac.rb
16
- lib/autotest_notification/doom.rb
17
- lib/autotest_notification/buuf.rb
18
- script/console
19
- script/destroy
20
- script/generate
21
- script/txt2html
22
- setup.rb
23
- tasks/deployment.rake
24
- tasks/environment.rake
25
- tasks/website.rake
26
- test/test_autotest_notification.rb
27
- test/test_helper.rb
28
- test/autotest_notification/test_cygwin.rb
29
- test/autotest_notification/test_linux.rb
30
- test/autotest_notification/test_windows.rb
31
- test/autotest_notification/test_mac.rb
32
- website/index.html
33
- website/index.txt
34
- website/javascripts/rounded_corners_lite.inc.js
35
- website/stylesheets/screen.css
36
- website/template.html.erb
37
- bin/an-install
38
- bin/an-uninstall
39
- bin/playsound
40
- images/pass.png
41
- images/fail.png
42
- images/pending.png
43
6
  images/buuf/fail.png
44
7
  images/buuf/pass.png
45
8
  images/buuf/pending.png
@@ -50,10 +13,23 @@ images/doom/doom_3.png
50
13
  images/doom/doom_4.png
51
14
  images/doom/doom_5.png
52
15
  images/doom/doom_6.png
16
+ images/fail.png
17
+ images/pass.png
18
+ images/pending.png
19
+ lib/autotest_notification.rb
20
+ script/console
21
+ script/destroy
22
+ script/generate
53
23
  sounds/doom/0.wav
54
24
  sounds/doom/1.wav
55
25
  sounds/doom/2.wav
56
26
  sounds/doom/3.wav
57
27
  sounds/doom/4.wav
58
28
  sounds/doom/5.wav
59
- sounds/doom/6.wav
29
+ sounds/doom/6.wav
30
+ test/autotest_notification/test_cygwin.rb
31
+ test/autotest_notification/test_linux.rb
32
+ test/autotest_notification/test_mac.rb
33
+ test/autotest_notification/test_windows.rb
34
+ test/test_autotest_notification.rb
35
+ test/test_helper.rb
@@ -2,12 +2,10 @@
2
2
 
3
3
  * http://github.com/carlosbrando/autotest-notification/
4
4
 
5
-
6
5
  == DESCRIPTION:
7
6
 
8
7
  This gem set the autotest (ZenTest) to send messages to software as Growl, LibNotify, and Snarl, displaying a window with the results.
9
8
 
10
-
11
9
  == REQUIREMENTS:
12
10
 
13
11
  Independent of operating system you are using, you must install the ZenTest:
@@ -67,7 +65,6 @@ Independent of operating system you are using, you must install the ZenTest:
67
65
 
68
66
  To hear the sounds of Doom Edition, you need the mplayer [http://www.mplayerhq.hu/design7/dload.html] installed.
69
67
 
70
-
71
68
  == INSTALL:
72
69
 
73
70
  $ sudo gem install carlosbrando-autotest-notification --source=http://gems.github.com
@@ -99,24 +96,24 @@ To turn off the notifier:
99
96
 
100
97
  == CONTRIBUTORS:
101
98
 
102
- * carlosbrando [http://www.nomedojogo.com]
103
- * simpsomboy [http://alexandredasilva.wordpress.com]
104
- * urubatan [http://www.urubatan.info]
105
- * chjunior [http://tas.milk-it.net]
106
- * daviscabral [http://blog.impactmedia.com.br]
107
- * tapajos [http://www.improveit.com.br/tapajos]
108
- * tchandy [http://tchandy.wordpress.com]
109
- * ozsantana [http://blog.iconcreative.net]
110
- * lucasuyezu [http://xucros.com]
111
- * samflores [http://github.com/samflores]
112
- * dcrec1 [http://www.mouseoverstudio.com/blog]
113
- * nuxlli [http://www.nuxlli.com.br]
99
+ * carlosbrando [http://www.nomedojogo.com]
100
+ * simpsomboy [http://alexandredasilva.wordpress.com]
101
+ * urubatan [http://www.urubatan.info]
102
+ * chjunior [http://tas.milk-it.net]
103
+ * daviscabral [http://blog.impactmedia.com.br]
104
+ * tapajos [http://www.improveit.com.br/tapajos]
105
+ * tchandy [http://tchandy.wordpress.com]
106
+ * ozsantana [http://blog.iconcreative.net]
107
+ * lucasuyezu [http://xucros.com]
108
+ * samflores [http://github.com/samflores]
109
+ * dcrec1 [http://www.mouseoverstudio.com/blog]
110
+ * nuxlli [http://www.nuxlli.com.br]
114
111
 
115
112
  == LICENSE:
116
113
 
117
114
  (The MIT License)
118
115
 
119
- Copyright (c) 2008
116
+ Copyright (c) 2008 Carlos Brando
120
117
 
121
118
  Permission is hereby granted, free of charge, to any person obtaining
122
119
  a copy of this software and associated documentation files (the
@@ -135,4 +132,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
135
132
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
136
133
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
137
134
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
138
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
135
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,4 +1,28 @@
1
- require 'config/requirements'
2
- require 'config/hoe' # setup Hoe + all gem configuration
1
+ %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
+ require File.dirname(__FILE__) + '/lib/autotest_notification'
3
3
 
4
- Dir['tasks/**/*.rake'].each { |rake| load rake }
4
+ # Generate all the Rake tasks
5
+ # Run 'rake -T' to see list of generated tasks (from gem root directory)
6
+ $hoe = Hoe.new('autotest-notification', AutotestNotification::VERSION) do |p|
7
+ p.developer('Carlos Brando', 'eduardobrando@gmail.com')
8
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
9
+ p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
10
+ p.rubyforge_name = p.name # TODO this is default value
11
+ p.extra_deps = [
12
+ ['ZenTest', '>= 3.9.2']
13
+ ]
14
+ p.extra_dev_deps = [
15
+ ['newgem', ">= #{::Newgem::VERSION}"]
16
+ ]
17
+
18
+ p.clean_globs |= %w[**/.DS_Store tmp *.log]
19
+ path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
20
+ p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
21
+ p.rsync_args = '-av --delete --ignore-errors'
22
+ end
23
+
24
+ require 'newgem/tasks' # load /tasks/*.rake
25
+ Dir['tasks/**/*.rake'].each { |t| load t }
26
+
27
+ # TODO - want other tests/tasks run by default? Add them to the list
28
+ # task :default => [:spec, :features]
@@ -1,7 +1,12 @@
1
- $:.unshift(File.dirname(__FILE__))
1
+ $:.unshift(File.dirname(__FILE__)) unless
2
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
+
4
+ require "autotest"
2
5
  %w{ linux mac windows cygwin doom buuf }.each { |x| require "autotest_notification/#{x}" }
3
6
 
4
7
  module AutotestNotification
8
+ VERSION = '1.7.0'
9
+
5
10
  IMAGES_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../images/")
6
11
  SUCCESS_IMAGE = "#{IMAGES_DIRECTORY}/pass.png";
7
12
  FAIL_IMAGE = "#{IMAGES_DIRECTORY}/fail.png";
data/script/console CHANGED
@@ -5,6 +5,6 @@ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
5
5
  libs = " -r irb/completion"
6
6
  # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
7
  # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -r #{File.dirname(__FILE__) + '/../lib/autotest_notification.rb'}"
9
- puts "Loading autotest_notification gem"
8
+ libs << " -r #{File.dirname(__FILE__) + '/../lib/autotest-notification.rb'}"
9
+ puts "Loading autotest-notification gem"
10
10
  exec "#{irb} #{libs} --simple-prompt"
@@ -1,44 +1,44 @@
1
- require File.dirname(__FILE__) + '/test_helper.rb'
2
-
3
- class TestAutotestNotification < Test::Unit::TestCase
4
-
5
- def setup
6
- @title = "title"
7
- @msg = "message"
8
- @image = "image"
9
- @priority = 0
10
- @total = 0
11
- @failures = 0
12
-
13
- %w( DOOM_EDITION SPEAKING STICKY BUUF ).each do |c|
14
- AutotestNotification.const_set(c.to_sym, false) unless AutotestNotification.const_defined?(c.to_sym)
15
- end
16
- end
17
-
18
- def test_notify_when_os_is_cygwin
19
- AutotestNotification::Cygwin.expects(:notify).with(@title, @msg, @image)
20
- verify_to("cygwin")
21
- end
22
-
23
- def test_notify_when_os_is_windows
24
- AutotestNotification::Windows.expects(:notify).with(@title, @msg, @image)
25
- verify_to("mswin")
26
- end
27
-
28
- def test_notify_when_os_is_linux
29
- AutotestNotification::Linux.expects(:notify).with(@title, @msg, @image, @total, @failures)
30
- verify_to("linux")
31
- end
32
-
33
- def test_notify_when_os_is_mac
34
- AutotestNotification::Mac.expects(:notify).with(@title, @msg, @image, @total, @failures, @priority)
35
- verify_to("darwin")
36
- end
37
-
38
- private
39
-
40
- def verify_to(so)
41
- AutotestNotification.const_set :RUBY_PLATFORM, so
42
- AutotestNotification.notify(@title, @msg, @image, @total, @failures, @priority)
43
- end
44
- end
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class TestAutotestNotification < Test::Unit::TestCase
4
+
5
+ def setup
6
+ @title = "title"
7
+ @msg = "message"
8
+ @image = "image"
9
+ @priority = 0
10
+ @total = 0
11
+ @failures = 0
12
+
13
+ %w( DOOM_EDITION SPEAKING STICKY BUUF ).each do |c|
14
+ AutotestNotification.const_set(c.to_sym, false) unless AutotestNotification.const_defined?(c.to_sym)
15
+ end
16
+ end
17
+
18
+ def test_notify_when_os_is_cygwin
19
+ AutotestNotification::Cygwin.expects(:notify).with(@title, @msg, @image)
20
+ verify_to("cygwin")
21
+ end
22
+
23
+ def test_notify_when_os_is_windows
24
+ AutotestNotification::Windows.expects(:notify).with(@title, @msg, @image)
25
+ verify_to("mswin")
26
+ end
27
+
28
+ def test_notify_when_os_is_linux
29
+ AutotestNotification::Linux.expects(:notify).with(@title, @msg, @image, @total, @failures)
30
+ verify_to("linux")
31
+ end
32
+
33
+ def test_notify_when_os_is_mac
34
+ AutotestNotification::Mac.expects(:notify).with(@title, @msg, @image, @total, @failures, @priority)
35
+ verify_to("darwin")
36
+ end
37
+
38
+ private
39
+
40
+ def verify_to(so)
41
+ AutotestNotification.const_set :RUBY_PLATFORM, so
42
+ AutotestNotification.notify(@title, @msg, @image, @total, @failures, @priority)
43
+ end
44
+ end
metadata CHANGED
@@ -1,24 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carlosbrando-autotest-notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
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
17
8
  autorequire:
18
9
  bindir: bin
19
10
  cert_chain: []
20
11
 
21
- date: 2008-10-09 00:00:00 -07:00
12
+ date: 2008-11-13 00:00:00 -08:00
22
13
  default_executable:
23
14
  dependencies:
24
15
  - !ruby/object:Gem::Dependency
@@ -30,6 +21,15 @@ dependencies:
30
21
  - !ruby/object:Gem::Version
31
22
  version: 3.9.2
32
23
  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:
@@ -37,67 +37,26 @@ dependencies:
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.7.0
40
+ version: 1.8.0
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
- - autotest-notification@carlosbrando.com
45
- executables:
46
- - an-install
47
- - an-uninstall
48
- - playsound
44
+ - eduardobrando@gmail.com
45
+ executables: []
46
+
49
47
  extensions: []
50
48
 
51
49
  extra_rdoc_files:
52
50
  - History.txt
53
- - License.txt
54
51
  - Manifest.txt
55
52
  - PostInstall.txt
56
- - README.txt
57
- - website/index.txt
53
+ - README.rdoc
58
54
  files:
59
- - autotest-notification.gemspec
60
55
  - History.txt
61
- - License.txt
62
56
  - Manifest.txt
63
57
  - PostInstall.txt
64
- - README.txt
58
+ - README.rdoc
65
59
  - 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
95
- - bin/an-install
96
- - bin/an-uninstall
97
- - bin/playsound
98
- - images/pass.png
99
- - images/fail.png
100
- - images/pending.png
101
60
  - images/buuf/fail.png
102
61
  - images/buuf/pass.png
103
62
  - images/buuf/pending.png
@@ -108,6 +67,13 @@ files:
108
67
  - images/doom/doom_4.png
109
68
  - images/doom/doom_5.png
110
69
  - images/doom/doom_6.png
70
+ - images/fail.png
71
+ - images/pass.png
72
+ - images/pending.png
73
+ - lib/autotest_notification.rb
74
+ - script/console
75
+ - script/destroy
76
+ - script/generate
111
77
  - sounds/doom/0.wav
112
78
  - sounds/doom/1.wav
113
79
  - sounds/doom/2.wav
@@ -115,21 +81,18 @@ files:
115
81
  - sounds/doom/4.wav
116
82
  - sounds/doom/5.wav
117
83
  - sounds/doom/6.wav
84
+ - test/autotest_notification/test_cygwin.rb
85
+ - test/autotest_notification/test_linux.rb
86
+ - test/autotest_notification/test_mac.rb
87
+ - test/autotest_notification/test_windows.rb
88
+ - test/test_autotest_notification.rb
89
+ - test/test_helper.rb
118
90
  has_rdoc: true
119
91
  homepage: http://github.com/carlosbrando/autotest-notification/
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
-
92
+ post_install_message: PostInstall.txt
130
93
  rdoc_options:
131
94
  - --main
132
- - README.txt
95
+ - README.rdoc
133
96
  require_paths:
134
97
  - lib
135
98
  required_ruby_version: !ruby/object:Gem::Requirement