wavefront-cli 1.0.0 → 1.0.1

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: abded61ee10732bf7af826637d39e1a736db92bc
4
- data.tar.gz: bf039ef6b77cde28bcd7f6c3c1d2e8f141e86f9c
3
+ metadata.gz: 8b927f378e45604265322586b41adfc505f6f817
4
+ data.tar.gz: 04c4a0d7ac7a0c8f09d956a45d130ceee0380fde
5
5
  SHA512:
6
- metadata.gz: e99d3375a2f2693e3b18974a8cd6099d642d3e78bbe88a752fef943d21fbc93432028ff59e5d345074aa1c93990de9b1bfd1a6da9e3f3f8e49eed647ab32554a
7
- data.tar.gz: b5a9e93eef9dda6708651c49736aa7d69008553c633494d955153fc1440afb80cfdc0a296ecdfc30b18cb5b2c3d87254463ba8cffae44277d32b23aa7f7b738a
6
+ metadata.gz: 1c761352761708b57c2d1244317324e3ffa2abed5363b28ca76208aef41ad7ce59861e566784ae82d361653b0245a0fd2c27ab672cd5af137594934454dc0ddd
7
+ data.tar.gz: 22a3fb23be4711fa52b39a6c57708f01c5a9993748b7d0d6849a2697b86897aaf7b3b269c2ba01d94fd2d92957bb4d7ee7a3ba13ed9a2f046c7ed22b9a9837bd
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ Gemfile.lock
1
2
  .yardoc
2
3
  /doc
3
4
  .*swp
@@ -93,8 +93,12 @@ module WavefrontDisplay
93
93
  # modified_data means that any fields parameter is ignored.
94
94
  #
95
95
  def long_output(fields = nil, modified_data = nil)
96
- require_relative 'printer/long'
97
- puts WavefrontDisplayPrinter::Long.new(data, fields, modified_data)
96
+ if data.empty? || (modified_data && modified_data.empty?)
97
+ puts 'No data.'
98
+ else
99
+ require_relative 'printer/long'
100
+ puts WavefrontDisplayPrinter::Long.new(data, fields, modified_data)
101
+ end
98
102
  end
99
103
 
100
104
  def multicolumn(*columns)
@@ -4,5 +4,9 @@ module WavefrontDisplay
4
4
  #
5
5
  # Format human-readable output for messages.
6
6
  #
7
- class Message < Base; end
7
+ class Message < Base
8
+ def do_list_brief
9
+ multicolumn(:id, :title)
10
+ end
11
+ end
8
12
  end
@@ -1 +1 @@
1
- WF_CLI_VERSION = '1.0.0'.freeze
1
+ WF_CLI_VERSION = '1.0.1'.freeze
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- id = 'message123'
3
+ id = 'CLUSTER::IHjNaHM9'
4
4
  bad_id = '(>_<)'
5
5
  word = 'message'
6
6
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
23
23
  gem.require_paths = %w(lib)
24
24
 
25
25
  gem.add_dependency 'docopt', '0.6.0'
26
- gem.add_dependency 'wavefront-sdk', '>= 1.0.0'
26
+ gem.add_dependency 'wavefront-sdk', '>= 1.0.1'
27
27
 
28
28
  gem.add_development_dependency 'bundler', '~> 1.3'
29
29
  gem.add_development_dependency 'rake', '~> 12.0'
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.0
4
+ version: 1.0.1
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-07-28 00:00:00.000000000 Z
11
+ date: 2017-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.0
33
+ version: 1.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.0
40
+ version: 1.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement