wavefront-cli 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wavefront-cli/display/printer/terse.rb +1 -2
- data/lib/wavefront-cli/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: f1aeafac23fddaa8dfb5cdc4a6440db3b5a4a10d
|
4
|
+
data.tar.gz: f5d3e3788ed34453db7fd408e54f5afd7914ef02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e1567a9d826482395e543db1cce76e1388fef90af69126b969d4d080c5ea4f9677420b42418beb825d7816b9fa4224dbd198f431482088b34bf53e7afdda993
|
7
|
+
data.tar.gz: a425b699c9d6a14f0709714bbdc9bf0da6f0f039533f17b6c706ec2cfb79d5f42273109e3bd392675f4be0236db72dc4d7c2e95cdd57300f38bb251189120b47
|
@@ -8,8 +8,6 @@ module WavefrontDisplayPrinter
|
|
8
8
|
attr_reader :data, :keys, :fmt_string
|
9
9
|
|
10
10
|
def initialize(data, *keys)
|
11
|
-
# require 'json'
|
12
|
-
# File.open('/tmp/1', 'w') { |f| f.puts data.to_json }
|
13
11
|
@data = data
|
14
12
|
@keys = keys
|
15
13
|
@fmt_string = format_string.rstrip
|
@@ -32,6 +30,7 @@ module WavefrontDisplayPrinter
|
|
32
30
|
keys.each_with_object(Hash[*keys.map { |k| [k, 0] }.flatten]) \
|
33
31
|
do |k, aggr|
|
34
32
|
data.each do |obj|
|
33
|
+
next unless obj.key?(k)
|
35
34
|
val = obj[k]
|
36
35
|
val = val.join(', ') if val.is_a?(Array)
|
37
36
|
aggr[k] = val.size if val.size > aggr[k]
|
@@ -1 +1 @@
|
|
1
|
-
WF_CLI_VERSION = '1.0.
|
1
|
+
WF_CLI_VERSION = '1.0.3'.freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wavefront-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Fisher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|