test_notifier 0.3.5.rc.1 → 0.3.5.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Rakefile +10 -0
- data/lib/test_notifier/notifier/kdialog.rb +1 -1
- data/lib/test_notifier/notifier/notify_send.rb +1 -1
- data/lib/test_notifier/notifier/osd_cat.rb +1 -1
- data/lib/test_notifier/notifier/snarl.rb +2 -2
- data/lib/test_notifier/notifier.rb +2 -2
- data/lib/test_notifier/runner/autotest.rb +3 -1
- data/lib/test_notifier/runner/test_unit.rb +3 -1
- data/test/notifier_test.rb +4 -0
- data/test_notifier.gemspec +28 -0
- metadata +44 -11
data/.gitignore
ADDED
data/Rakefile
ADDED
@@ -7,7 +7,7 @@ module TestNotifier
|
|
7
7
|
return false unless RUBY_PLATFORM =~ /(mswin|mingw)/
|
8
8
|
|
9
9
|
begin
|
10
|
-
require "snarl" unless defined?(Snarl)
|
10
|
+
require "snarl" unless defined?(::Snarl)
|
11
11
|
true
|
12
12
|
rescue LoadError
|
13
13
|
false
|
@@ -15,7 +15,7 @@ module TestNotifier
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def notify(options)
|
18
|
-
Snarl.show_message(options[:title], options[:message], options[:image])
|
18
|
+
::Snarl.show_message(options[:title], options[:message], options[:image])
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/test/notifier_test.rb
CHANGED
@@ -16,6 +16,10 @@ class TestNotifier::NotifierTest < Test::Unit::TestCase
|
|
16
16
|
assert_equal 7, TestNotifier::Notifier.notifiers.size
|
17
17
|
end
|
18
18
|
|
19
|
+
test "consider Placebo as fallback notifier" do
|
20
|
+
assert_equal TestNotifier::Notifier::Placebo, TestNotifier::Notifier.notifiers.last
|
21
|
+
end
|
22
|
+
|
19
23
|
test "return notifier by its name" do
|
20
24
|
assert_equal TestNotifier::Notifier::OsdCat, TestNotifier::Notifier.from_name(:osd_cat)
|
21
25
|
assert_equal TestNotifier::Notifier::NotifySend, TestNotifier::Notifier.from_name(:notify_send)
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "test_notifier/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "test_notifier"
|
7
|
+
s.version = "#{TestNotifier::Version::STRING}.rc.2"
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Nando Vieira"]
|
10
|
+
s.email = ["fnando.vieira@gmail.com"]
|
11
|
+
s.homepage = "http://rubygems.org/gems/test_notifier"
|
12
|
+
s.summary = "Display system notifications (dbus, growl and snarl) after running tests."
|
13
|
+
s.description = <<-DESC
|
14
|
+
Display system notifications (dbus, growl and snarl) after
|
15
|
+
running tests. It works on Mac OS X, Linux and Windows. Powerful when used
|
16
|
+
with Autotest ZenTest gem for Rails apps.
|
17
|
+
DESC
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
|
+
s.require_paths = ["lib"]
|
23
|
+
|
24
|
+
s.requirements << "You'll need Growl (Mac OS X), Libnotify, OSD or KDE (Linux) or Snarl (Windows)"
|
25
|
+
|
26
|
+
s.add_development_dependency "test-unit"
|
27
|
+
s.add_development_dependency "mocha"
|
28
|
+
end
|
metadata
CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
|
|
7
7
|
- 3
|
8
8
|
- 5
|
9
9
|
- rc
|
10
|
-
-
|
11
|
-
version: 0.3.5.rc.
|
10
|
+
- 2
|
11
|
+
version: 0.3.5.rc.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Nando Vieira
|
@@ -16,20 +16,52 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-11-12 00:00:00 -02:00
|
20
20
|
default_executable:
|
21
|
-
dependencies:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
name: test-unit
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: mocha
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id002
|
48
|
+
description: |
|
49
|
+
Display system notifications (dbus, growl and snarl) after
|
50
|
+
running tests. It works on Mac OS X, Linux and Windows. Powerful when used
|
51
|
+
with Autotest ZenTest gem for Rails apps.
|
22
52
|
|
23
|
-
|
24
|
-
|
53
|
+
email:
|
54
|
+
- fnando.vieira@gmail.com
|
25
55
|
executables: []
|
26
56
|
|
27
57
|
extensions: []
|
28
58
|
|
29
|
-
extra_rdoc_files:
|
30
|
-
|
59
|
+
extra_rdoc_files: []
|
60
|
+
|
31
61
|
files:
|
62
|
+
- .gitignore
|
32
63
|
- README.rdoc
|
64
|
+
- Rakefile
|
33
65
|
- lib/test_notifier.rb
|
34
66
|
- lib/test_notifier/autotest.rb
|
35
67
|
- lib/test_notifier/notifier.rb
|
@@ -57,13 +89,14 @@ files:
|
|
57
89
|
- test/stats_test.rb
|
58
90
|
- test/test_helper.rb
|
59
91
|
- test/test_notifier_test.rb
|
92
|
+
- test_notifier.gemspec
|
60
93
|
has_rdoc: true
|
61
|
-
homepage: http://
|
94
|
+
homepage: http://rubygems.org/gems/test_notifier
|
62
95
|
licenses: []
|
63
96
|
|
64
97
|
post_install_message:
|
65
|
-
rdoc_options:
|
66
|
-
|
98
|
+
rdoc_options: []
|
99
|
+
|
67
100
|
require_paths:
|
68
101
|
- lib
|
69
102
|
required_ruby_version: !ruby/object:Gem::Requirement
|