wavefront-cli 10.0.0 → 10.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/HISTORY.md +3 -0
- data/README.md +1 -1
- data/lib/wavefront-cli/base.rb +1 -1
- data/lib/wavefront-cli/version.rb +1 -1
- data/lib/wavefront-cli/write.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3cc375202509fd2afb294abeb754c14be541d80595995ccea9f0ac3a2a2c2b5
|
4
|
+
data.tar.gz: 6161a91e6dc4bce5c5581ddeb272f104d57049d2b230ecb2d3edad9975eae7e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2f3cb2a9492934c12e18784b79551ccbb33d4b5adb0991b75eab1cd0a3e84031574449894dc465f93d390faf069d8b1851beaee92be778431cb168c2aa01e82
|
7
|
+
data.tar.gz: b4b4f79d6d866b223551cffbab943cd059fd54270d66148ff1932bc45bb80e1a85a3c2557446268f384a4ffaa4cfe67a7ad23b2d6886b539978e0c5cd540ab03
|
data/Gemfile
CHANGED
@@ -10,5 +10,5 @@ gem 'rubocop-minitest', '~> 0.26', group: :development
|
|
10
10
|
gem 'rubocop-performance', '~> 1.15', group: :development
|
11
11
|
gem 'rubocop-rake', '~> 0.6', group: :development
|
12
12
|
gem 'spy', '~> 1.0', group: :development
|
13
|
-
gem 'webmock', '~> 3.
|
13
|
+
gem 'webmock', '~> 3.20.0', group: :development
|
14
14
|
gem 'yard', '~> 0.9', group: :development
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Wavefront CLI
|
2
|
-
[![Test](https://github.com/snltd/wavefront-cli/actions/workflows/test.yml/badge.svg
|
2
|
+
[![Test](https://github.com/snltd/wavefront-cli/actions/workflows/test.yml/badge.svg)](https://github.com/snltd/wavefront-cli/actions/workflows/test.yml) ![Release](https://github.com/snltd/wavefront-sdk/workflows/Release/badge.svg) [![Gem Version](https://badge.fury.io/rb/wavefront-cli.svg)](https://badge.fury.io/rb/wavefront-cli) ![](http://ruby-gem-downloads-badge.herokuapp.com/wavefront-cli?type=total)
|
3
3
|
|
4
4
|
This is a complete command-line interface to
|
5
5
|
[Wavefront](https://www.wavefront.com/)'s API. It also provides easy
|
data/lib/wavefront-cli/base.rb
CHANGED
@@ -246,7 +246,7 @@ module WavefrontCli
|
|
246
246
|
|
247
247
|
def check_response_blocks(data)
|
248
248
|
%i[status response].each do |b|
|
249
|
-
abort "
|
249
|
+
abort "No #{b} block in API response" unless data.respond_to?(b)
|
250
250
|
end
|
251
251
|
end
|
252
252
|
|
data/lib/wavefront-cli/write.rb
CHANGED
@@ -187,8 +187,11 @@ module WavefrontCli
|
|
187
187
|
#
|
188
188
|
def read_stdin
|
189
189
|
open_connection
|
190
|
-
$stdin.each_line
|
190
|
+
ret = $stdin.each_line.map do |l|
|
191
|
+
call_write(process_line(l.strip), false)
|
192
|
+
end
|
191
193
|
close_connection
|
194
|
+
ret.last
|
192
195
|
rescue SystemExit, Interrupt
|
193
196
|
puts 'ctrl-c. Exiting.'
|
194
197
|
wf.close
|
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: 10.0.
|
4
|
+
version: 10.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: 2024-
|
11
|
+
date: 2024-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|