cody 0.8.5 → 0.8.6
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/CHANGELOG.md +3 -0
- data/lib/cody/tailer.rb +6 -2
- data/lib/cody/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba9f8bf325cf0dc7b02a62295ef48e8897beffd0ff258216ef0089cebbc6be83
|
4
|
+
data.tar.gz: 0afd2fdea1f74ba15b69148bd5543e48ede3b11e7d553728501a79e0444bb911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c187131adaf7a27dbadf4aa10f908b7f2bbee9fd5f0fb40ebea752742a8a1d346fffbd64674905cb7d7b341ba951beba65d7d450349f0d9853cc38b08ef0d6
|
7
|
+
data.tar.gz: 16cdcd2e6c9f61e0f1fa002950d49179691029067f0d33006baf892f6cbfc16af9ff74d9fbaaafbaafefd119d8a5ce9e2293c31a90b97b0f5968c5dad59d85ff
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/cody/tailer.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/cody/version.rb
CHANGED