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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5fe5e6006694e0e3683bcc58dbb55e1ad703ff8
4
- data.tar.gz: 96154590a344297b93be93b7e3cad81f42ffbb4d
3
+ metadata.gz: f1aeafac23fddaa8dfb5cdc4a6440db3b5a4a10d
4
+ data.tar.gz: f5d3e3788ed34453db7fd408e54f5afd7914ef02
5
5
  SHA512:
6
- metadata.gz: 981838fe6e017bd0bb1d1c14612ef2cec3ff746bcceb90cbac243c9b245aeb02010f76eadb6aac1d75b2c4e3945186c771e49f1a52465948e161dea62c7aa3ab
7
- data.tar.gz: b760924a3672f4e1ff8b909940feb2d13cd9003d83a1be7188e2330d71ada5b134af80e9ae4e5abae3817023d40ab37da27bf351e9287592ad04b2c65dff8811
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.2'.freeze
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.2
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-04 00:00:00.000000000 Z
11
+ date: 2017-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt