sw2at-ui 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/VERSION +1 -1
- data/app/models/revision.rb +4 -2
- data/lib/swat/engine.rb +7 -0
- data/sw2at-ui.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1d9628ec4a25ec7fb995563f2fe6f61ae45fb50
|
4
|
+
data.tar.gz: c62d486a93e9b1ca57f4050e20384fbce66c682c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 637a7d3990a6f638bf7d5e2416d1f1044e0e732d0701cc0b4db7be7dd5acddf4eecb264faa4b6c352130192eb4753f15b2d7094785160dcc879de156ca979f98
|
7
|
+
data.tar.gz: b0a79e331583ae51fa1127272f7b9d7b7da9faeb178001aac0bbea47df5f78fa6e46eeed5d8ed108f08a178761653efeac6e0dbc807f4b2c569bcf3a9c2171bb
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/app/models/revision.rb
CHANGED
@@ -46,12 +46,14 @@ class Revision < Fire::SingleNestedModel
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def collect_ended_thread(rspec_notification, data)
|
49
|
+
fails = rspec_notification.failure_notifications.map{|fn|fn.example.metadata[:execution_result].exception}
|
50
|
+
total_time = rspec_notification.examples.map{|ex| ex.metadata[:execution_result].run_time }.inject(:+)
|
49
51
|
rspec_data = {
|
50
52
|
total_examples: rspec_notification.examples.count,
|
51
53
|
failed_examples: rspec_notification.failed_examples.count,
|
52
54
|
pending_examples: rspec_notification.pending_examples.count,
|
53
|
-
|
54
|
-
total_runtime:
|
55
|
+
failure_notifications: fails,
|
56
|
+
total_runtime: total_time,
|
55
57
|
}
|
56
58
|
object = rspec_data.merge(data)
|
57
59
|
add_to_threads(object)
|
data/lib/swat/engine.rb
CHANGED
data/sw2at-ui.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: sw2at-ui 0.0.
|
5
|
+
# stub: sw2at-ui 0.0.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "sw2at-ui"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.6"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|