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 +4 -4
- data/.gitignore +1 -0
- data/lib/wavefront-cli/display/base.rb +6 -2
- data/lib/wavefront-cli/display/message.rb +5 -1
- data/lib/wavefront-cli/version.rb +1 -1
- data/spec/wavefront-cli/message_spec.rb +1 -1
- data/wavefront-cli.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b927f378e45604265322586b41adfc505f6f817
|
4
|
+
data.tar.gz: 04c4a0d7ac7a0c8f09d956a45d130ceee0380fde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c761352761708b57c2d1244317324e3ffa2abed5363b28ca76208aef41ad7ce59861e566784ae82d361653b0245a0fd2c27ab672cd5af137594934454dc0ddd
|
7
|
+
data.tar.gz: 22a3fb23be4711fa52b39a6c57708f01c5a9993748b7d0d6849a2697b86897aaf7b3b269c2ba01d94fd2d92957bb4d7ee7a3ba13ed9a2f046c7ed22b9a9837bd
|
data/.gitignore
CHANGED
@@ -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
|
-
|
97
|
-
|
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)
|
@@ -1 +1 @@
|
|
1
|
-
WF_CLI_VERSION = '1.0.
|
1
|
+
WF_CLI_VERSION = '1.0.1'.freeze
|
data/wavefront-cli.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
40
|
+
version: 1.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|