autotest-notification 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/autotest-notification.gemspec +1 -1
- data/lib/autotest_notification.rb +7 -2
- metadata +3 -3
@@ -27,8 +27,13 @@ module AutotestNotification
|
|
27
27
|
end
|
28
28
|
|
29
29
|
Autotest.add_hook :ran_command do |at|
|
30
|
-
|
31
|
-
|
30
|
+
|
31
|
+
result = if at.results.is_a?(Array)
|
32
|
+
at.results.last == "\n" ? at.results[-2] : at.results.last
|
33
|
+
else
|
34
|
+
at.results.split("\n").last
|
35
|
+
end
|
36
|
+
|
32
37
|
if result
|
33
38
|
%w{ test assertion error example pending failure }.each { |x| instance_variable_set "@#{x}s", result[/(\d+) #{x}/, 1].to_i }
|
34
39
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autotest-notification
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 2.3.
|
9
|
+
- 1
|
10
|
+
version: 2.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Carlos Brando
|