termcity 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c892485b183a6b842bc3423e3e763e46cf7290f0
4
- data.tar.gz: 9624a4743a97c74b8615a0ab6131fdedc9f800e2
3
+ metadata.gz: f386697ce1621f60a18b800c2b3219c519168bae
4
+ data.tar.gz: 973ffd6398b8a9c32c1e70d760f7ecca4eae1ea2
5
5
  SHA512:
6
- metadata.gz: 57adcd164a8300e3b36d43a2696c9cde192cd9147fd7c1aef643c8643fb412dd1a09b873ceae23d1679f7663939f48a3dab40ee44f9144c6965827a530f38312
7
- data.tar.gz: e2ff976bdf83a13e6341f0bd2e81b509d1a2ae5861bd437906c1fb4447dbdf08b73595d78a631d6292b29c58344573557c2dd024db64ba8c61837b28bf3c6ac0
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
- "failstrt" => :default,
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
- ["FailedToStart", summary.counts[:failstrt]],
74
+ ["Not Run", summary.counts[:not_run]],
75
75
  ["Queued", summary.counts[:queued]],
76
76
  ["Re-Queued", summary.counts[:re_enqueued]]
77
77
  ]
@@ -33,7 +33,7 @@ module Termcity
33
33
  failure: 0,
34
34
  running: 0,
35
35
  queued: 0,
36
- failstrt: 0,
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")
@@ -1,3 +1,3 @@
1
1
  module Termcity
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
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.0.0
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-15 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler