cody 0.8.3 → 0.8.4
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 +9 -2
- data/lib/cody/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9d6fdf44489bad80aaeefebe260e8b8cbc15524155c7b11a805f5e95793d5a39
         | 
| 4 | 
            +
              data.tar.gz: db2136e65bd87b4816cb2510cc0b14b2192657685f001ac60dcfb4358bc94bac
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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 | 
| 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
    
    
    
        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. | 
| 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- | 
| 11 | 
            +
            date: 2019-11-29 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activesupport
         |