termcity 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/termcity/formatters/simple.rb +3 -3
- data/lib/termcity/summary.rb +2 -1
- data/lib/termcity/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f386697ce1621f60a18b800c2b3219c519168bae
|
|
4
|
+
data.tar.gz: 973ffd6398b8a9c32c1e70d760f7ecca4eae1ea2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a5d1814e89d2b3a005c186355c05312bd7efec924db62be8557e7a279f7e852ce2220d89caa681928ed0a970670599d700e339ea819c6599990439344de01bb
|
|
7
|
+
data.tar.gz: 440466c299c1cb2ce99eb27377e22b2c533c0196c03bb47878612ce61606a2ccbc7441f3c9b9440e86471f36c874be1687096f6105b790f9e514bca9d6e90ae6
|
|
@@ -9,7 +9,7 @@ module Termcity
|
|
|
9
9
|
"failing" => :red,
|
|
10
10
|
"queued" => :yellow,
|
|
11
11
|
"running" => :blue,
|
|
12
|
-
"
|
|
12
|
+
"not_run" => :default,
|
|
13
13
|
"failed" => :red,
|
|
14
14
|
"success" => :green
|
|
15
15
|
}
|
|
@@ -35,7 +35,7 @@ module Termcity
|
|
|
35
35
|
def status_string(build)
|
|
36
36
|
name = build.fetch("status")
|
|
37
37
|
name = "#{name},q" if build.fetch("re_enqueued")
|
|
38
|
-
color = COLORS[build.fetch("status")]
|
|
38
|
+
color = COLORS[build.fetch("status")] || :default
|
|
39
39
|
|
|
40
40
|
text =
|
|
41
41
|
if block_given?
|
|
@@ -71,7 +71,7 @@ module Termcity
|
|
|
71
71
|
["Success", summary.counts[:success]],
|
|
72
72
|
["Failure", summary.counts[:failure]],
|
|
73
73
|
["Running", summary.counts[:running]],
|
|
74
|
-
["
|
|
74
|
+
["Not Run", summary.counts[:not_run]],
|
|
75
75
|
["Queued", summary.counts[:queued]],
|
|
76
76
|
["Re-Queued", summary.counts[:re_enqueued]]
|
|
77
77
|
]
|
data/lib/termcity/summary.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Termcity
|
|
|
33
33
|
failure: 0,
|
|
34
34
|
running: 0,
|
|
35
35
|
queued: 0,
|
|
36
|
-
|
|
36
|
+
not_run: 0,
|
|
37
37
|
re_enqueued: 0,
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -66,6 +66,7 @@ module Termcity
|
|
|
66
66
|
else
|
|
67
67
|
build.fetch("status").to_sym
|
|
68
68
|
end
|
|
69
|
+
counts[count_type] ||= 0
|
|
69
70
|
counts[count_type] += 1
|
|
70
71
|
counts[:total] += 1
|
|
71
72
|
counts[:re_enqueued] +=1 if build.fetch("re_enqueued")
|
data/lib/termcity/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: termcity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pete Kinnecom
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-12-
|
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|