autotest-snarl 0.0.3 → 0.0.4

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 +3 -2
  3. metadata +3 -3
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.3'
7
+ s.version = '0.0.4'
8
8
  s.author = 'Luis Lavena'
9
9
  s.email = 'luislavena@gmail.com'
10
10
  s.description = <<-EOT
@@ -29,9 +29,10 @@ class Autotest
29
29
  'passed'
30
30
  end
31
31
  when 'test-unit'
32
- if results.has?('test-failed')
32
+ if results.has?('test-failed') || results.has?('test-error')
33
+ total = results['test-failed'].to_i + results['test-error'].to_i
33
34
  notify "#{@project}: some tests failed.",
34
- "#{results['test-failed']} of #{results.get('test')} failed",
35
+ "#{total} of #{results.get('test')} failed",
35
36
  'failed'
36
37
  elsif results.has?('test-skip')
37
38
  notify "#{@project}: some tests were skipped.",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autotest-snarl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-snarl
16
- requirement: &19483140 !ruby/object:Gem::Requirement
16
+ requirement: &19481304 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19483140
24
+ version_requirements: *19481304
25
25
  description: ! 'This makes more easy to see autotest messages using Net::Snarl
26
26
 
27
27
  '