cody 0.8.5 → 0.8.6

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
  SHA256:
3
- metadata.gz: 173c5575c3d569b9f3f7a923a9c6998799cc725c7646301281f8c80b1d2386da
4
- data.tar.gz: 810c27981e1b0b6a780917116b0175778d1fa6b97adc7e5a32fefe9e2aaf6f6c
3
+ metadata.gz: ba9f8bf325cf0dc7b02a62295ef48e8897beffd0ff258216ef0089cebbc6be83
4
+ data.tar.gz: 0afd2fdea1f74ba15b69148bd5543e48ede3b11e7d553728501a79e0444bb911
5
5
  SHA512:
6
- metadata.gz: f0b34f5820b0f265de6dfe41087b3fa4dca36a2ae5fbcbb453fa0683eb9b0e33aa4fb91867352e0205af03d12cb0ee7a5b35515f7f0873c4eed485abbd478e33
7
- data.tar.gz: f0afd77f39eafa11845a72218e39eb146aee6ff62bba30599296f2374c9ec5d49bb8fe9f35704e59940d83597be9652472e36314b80269ad9cb97aeb8f0af38d
6
+ metadata.gz: 33c187131adaf7a27dbadf4aa10f908b7f2bbee9fd5f0fb40ebea752742a8a1d346fffbd64674905cb7d7b341ba951beba65d7d450349f0d9853cc38b08ef0d6
7
+ data.tar.gz: 16cdcd2e6c9f61e0f1fa002950d49179691029067f0d33006baf892f6cbfc16af9ff74d9fbaaafbaafefd119d8a5ce9e2293c31a90b97b0f5968c5dad59d85ff
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.8.6]
7
+ - only print Failed Phases when there are failed phases
8
+
6
9
  ## [0.8.5]
7
10
  - #12 display failed phases at the end if failed
8
11
  - also dont sleep 10 if command is coming from logs
@@ -46,9 +46,13 @@ module Cody
46
46
  end
47
47
 
48
48
  def display_failed_phases(build)
49
+ failed_phases = build.phases.select do |phase|
50
+ phase.phase_status != "SUCCEEDED" && !phase.phase_status.to_s == ""
51
+ end
52
+ return if failed_phases.empty?
53
+
49
54
  puts "Failed Phases:"
50
- build.phases.each do |phase|
51
- next if phase.phase_status == "SUCCEEDED" or phase.phase_status.nil? or phase.phase_status == ""
55
+ failed_phases.each do |phase|
52
56
  puts "#{phase.phase_type}: #{phase.phase_status.color(:red)}"
53
57
  end
54
58
  end
@@ -1,3 +1,3 @@
1
1
  module Cody
2
- VERSION = "0.8.5"
2
+ VERSION = "0.8.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cody
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen