hu 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hu/deploy.rb +7 -3
- data/lib/hu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c84051e7dd55494d3fe963f9a325459a8fe491d
|
4
|
+
data.tar.gz: 5677775e398872d01f65dbdd802184ec7dfe54b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a27d01c529c0d3431f3a90b3ef2e563ed72edc483434da8b7ba0af8d2b3f6a876a52418164281f5aab23c78d4f033ff0a840497d62bad61d6afd60774ee3b323
|
7
|
+
data.tar.gz: 2489962faf6246061a2e62023260e36274be354d530355e45d68c1508d69ecb652aef468791c6abffefe6bf720391dde1a066661803b9619b7fdc34f296eda26
|
data/lib/hu/deploy.rb
CHANGED
@@ -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
|
-
|
400
|
-
|
401
|
-
|
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']
|
data/lib/hu/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|