autotest-snarl 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/autotest/snarl.rb +14 -0
  3. metadata +28 -50
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rubygems/package_task'
4
4
  spec = Gem::Specification.new do |s|
5
5
  s.name = 'autotest-snarl'
6
6
  s.summary = 'Clean and stolen easy integration of Net::Snarl and autotest'
7
- s.version = '0.0.2'
7
+ s.version = '0.0.3'
8
8
  s.author = 'Luis Lavena'
9
9
  s.email = 'luislavena@gmail.com'
10
10
  s.description = <<-EOT
@@ -28,6 +28,20 @@ class Autotest
28
28
  "#{results.get('example')}",
29
29
  'passed'
30
30
  end
31
+ when 'test-unit'
32
+ if results.has?('test-failed')
33
+ notify "#{@project}: some tests failed.",
34
+ "#{results['test-failed']} of #{results.get('test')} failed",
35
+ 'failed'
36
+ elsif results.has?('test-skip')
37
+ notify "#{@project}: some tests were skipped.",
38
+ "#{results['test-skip']} of #{results.get('test')} skipped",
39
+ 'pending'
40
+ else
41
+ notify "#{@project}: all tests passed.",
42
+ "#{results.get('test')}",
43
+ 'passed'
44
+ end
31
45
  end
32
46
  else
33
47
  notify "#{@project}: Could not run tests.", '', 'error', true
metadata CHANGED
@@ -1,85 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: autotest-snarl
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 2
9
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Luis Lavena
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-10-28 00:00:00 -02:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: net-snarl
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &19483140 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 0
31
- - 1
20
+ - !ruby/object:Gem::Version
32
21
  version: 0.0.1
33
22
  type: :runtime
34
- version_requirements: *id001
35
- description: |
36
- This makes more easy to see autotest messages using Net::Snarl
23
+ prerelease: false
24
+ version_requirements: *19483140
25
+ description: ! 'This makes more easy to see autotest messages using Net::Snarl
37
26
 
27
+ '
38
28
  email: luislavena@gmail.com
39
29
  executables: []
40
-
41
30
  extensions: []
42
-
43
31
  extra_rdoc_files: []
44
-
45
- files:
32
+ files:
46
33
  - Rakefile
47
34
  - lib/autotest/results_parser.rb
48
35
  - lib/autotest/snarl.rb
49
36
  - img/failed.png
50
37
  - img/passed.png
51
38
  - img/pending.png
52
- has_rdoc: true
53
39
  homepage: http://github.com/luislavena/autotest-snarl
54
40
  licenses: []
55
-
56
41
  post_install_message:
57
42
  rdoc_options: []
58
-
59
- require_paths:
43
+ require_paths:
60
44
  - lib
61
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
62
46
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- segments:
67
- - 0
68
- version: "0"
69
- required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
52
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- segments:
75
- - 0
76
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
77
57
  requirements: []
78
-
79
58
  rubyforge_project:
80
- rubygems_version: 1.3.7
59
+ rubygems_version: 1.8.8
81
60
  signing_key:
82
61
  specification_version: 3
83
62
  summary: Clean and stolen easy integration of Net::Snarl and autotest
84
63
  test_files: []
85
-