hu 1.5.5 → 1.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hu/deploy.rb +7 -3
  3. data/lib/hu/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1953813520b23befdc17abe944d71ea64f4845f
4
- data.tar.gz: ce2a23649c56d6fab1a6e91d89b1b4f499a17101
3
+ metadata.gz: 9c84051e7dd55494d3fe963f9a325459a8fe491d
4
+ data.tar.gz: 5677775e398872d01f65dbdd802184ec7dfe54b4
5
5
  SHA512:
6
- metadata.gz: 39a47006bc86cd654d4aac160c2315517a97f03042e58042184a4cf58ceeb2a6e30e58d2a7178d7f624e35427f34b1a53bcb44ef7814b06e5a0675b7291f5613
7
- data.tar.gz: 2ce87b36dfeda0ccbe00742fa675da113dc3c892afc695bcaca7ad02b7c0f4a26784d62488b2b86a384a17913dce6aea8d4b81016e1e85de490f62d2e68e0b6f
6
+ metadata.gz: a27d01c529c0d3431f3a90b3ef2e563ed72edc483434da8b7ba0af8d2b3f6a876a52418164281f5aab23c78d4f033ff0a840497d62bad61d6afd60774ee3b323
7
+ data.tar.gz: 2489962faf6246061a2e62023260e36274be354d530355e45d68c1508d69ecb652aef468791c6abffefe6bf720391dde1a066661803b9619b7fdc34f296eda26
@@ -396,9 +396,13 @@ module Hu
396
396
  # heroku uses wrong timezone offset in the slug api... /facepalm
397
397
  # table_row[3] = ChronicDuration.output(Time.now.utc - Time.parse(slug_info['updated_at']), :units => 1)
398
398
 
399
- delta = Time.now.utc - Time.parse(release_info['updated_at'])
400
- table_row[3] = delta < 60 ? 'less than a minute' : ChronicDuration.output(delta, units: 1)
401
- table_row[3] += ' ago'
399
+ if release_info['updated_at'].nil?
400
+ table_row[3] += 'unknown'
401
+ else
402
+ delta = Time.now.utc - Time.parse(release_info['updated_at'])
403
+ table_row[3] = delta < 60 ? 'less than a minute' : ChronicDuration.output(delta, units: 1)
404
+ table_row[3] += ' ago'
405
+ end
402
406
  # table_row[3] += "\n\e[30;1m" + slug_info['updated_at']
403
407
 
404
408
  table_row[4] = release_info['user']['email']
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hu
3
- VERSION = '1.5.5'
3
+ VERSION = '1.5.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - moe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-26 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler