barkeep-client 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "barkeep-client"
6
- s.version = "0.0.4"
6
+ s.version = "0.1.0"
7
7
  s.authors = ["Caleb Spare"]
8
8
  s.email = ["caleb@ooyala.com"]
9
9
  s.homepage = "https://github.com/ooyala/barkeep"
@@ -42,6 +42,10 @@ module BarkeepClient
42
42
  exit 1
43
43
  end
44
44
  info = JSON.parse(result.body)
45
- info.each { |key, value| puts " #{key.rjust(info.keys.map(&:size).max)}: #{value}" }
45
+ info.each do |key, value|
46
+ next if value.nil?
47
+ value = Time.at(value).strftime("%m/%d/%Y %I:%M%p") if key == "approved_at"
48
+ puts " #{key.rjust(info.keys.map(&:size).max)}: #{value}"
49
+ end
46
50
  end
47
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barkeep-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
16
- requirement: &70206455274940 !ruby/object:Gem::Requirement
16
+ requirement: &70220815352200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.16.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70206455274940
24
+ version_requirements: *70220815352200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: dedent
27
- requirement: &70206455274460 !ruby/object:Gem::Requirement
27
+ requirement: &70220815351720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.0.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70206455274460
35
+ version_requirements: *70220815351720
36
36
  description: A command-line client for Barkeep's REST API.
37
37
  email:
38
38
  - caleb@ooyala.com