cody 0.8.3 → 0.8.4

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: bb76da799abde0f40871e41fa9ed6bbcaf655c9b2f5ed4646d8e7288af31d7a8
4
- data.tar.gz: 7c7c53ed681e4cc7f6cb9441394f6f61c77cc91d4395e408861e73ab1066f0d3
3
+ metadata.gz: 9d6fdf44489bad80aaeefebe260e8b8cbc15524155c7b11a805f5e95793d5a39
4
+ data.tar.gz: db2136e65bd87b4816cb2510cc0b14b2192657685f001ac60dcfb4358bc94bac
5
5
  SHA512:
6
- metadata.gz: 5fdb64cd0da4df5de7de9bd90a418ce94f0768d98d483a557909e4090634591cd5f5cbfb40589a75676b3648f1e9edde197578f3f75cf70fa7744811f62b0640
7
- data.tar.gz: fa7410c0edaf38296f01821d544df72f68ad8035265ad891ac31005a4e66877eb2a07ac7e48f70d019126395f6b5cb50da3976afdad0dd12f20f6863f4f7a6c1
6
+ metadata.gz: 8c7144f9771a4f6dc40b142a349ebaf3e986f0ce0d1cd91a2cb1a19f7df4dfa9ea9349178c2df4fcb989ea44a6cc7a2438ffce4c92fe09c8ecb5ff7a27814c8b
7
+ data.tar.gz: 4df7ffee32c4dd417b946454d898a6d5ae5985ee85699e51d3870476e418382cc1ec376df239d2657dd05bec6a9f52f0eb4266e7830f34738443feaa223182cd
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.4]
7
+ - improve final message, report build_status
8
+
6
9
  ## [0.8.3]
7
10
  - #11 sleep on error for cloudwatch logs
8
11
  - also add `-t` alias for `--type` option
data/lib/cody/tailer.rb CHANGED
@@ -34,6 +34,13 @@ module Cody
34
34
  end
35
35
 
36
36
  stop_cloudwatch_tail(build)
37
+ final_message(build)
38
+ end
39
+
40
+ def final_message(build)
41
+ status = build.build_status
42
+ status = status != "SUCCEEDED" ? status.color(:red) : status.color(:green)
43
+ puts "Final build status: #{status}"
37
44
  puts "The build took #{build_time(build)} to complete."
38
45
  end
39
46
 
@@ -122,8 +129,8 @@ module Cody
122
129
  end
123
130
  return if already_shown
124
131
 
125
- status = details[:phase_status]
126
- status = status&.include?("FAILED") ? status.color(:red) : status
132
+ status = details[:phase_status].to_s # in case of nil
133
+ status = status == "SUCCEEDED" ? status.color(:green) : status.color(:red)
127
134
  say [
128
135
  "Phase:".color(:green), details[:phase_type],
129
136
  "Status:".color(:purple), status,
data/lib/cody/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cody
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cody
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-28 00:00:00.000000000 Z
11
+ date: 2019-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport