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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09fbd2dd451ea0b319a8d1a36ac1c0f3e95e186fc506363f47b5f8436e67d19d'
4
- data.tar.gz: c2e562c485f9e520be34922d55f5b6e7dfca5c3f876cd20857ebc2030c2cfc17
3
+ metadata.gz: e3cc375202509fd2afb294abeb754c14be541d80595995ccea9f0ac3a2a2c2b5
4
+ data.tar.gz: 6161a91e6dc4bce5c5581ddeb272f104d57049d2b230ecb2d3edad9975eae7e6
5
5
  SHA512:
6
- metadata.gz: 103663abbe25ed7a75e2622e85ea1ce1e984da813b4a85b3128e8bf24aa6d2d95d63000e5efa87d5ad615211f7bdc6f3193bacc435de0c437b3134948b5078cd
7
- data.tar.gz: c8bcfaafbe5da6fe7a5a3065cf51de47b67ed086a0e54f444d1e1b7260212ea22ad032325ce8c4135d5b0c36cdd62aed91e57c1e569ac63d541f2b3d9c6ca711
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.18', group: :development
13
+ gem 'webmock', '~> 3.20.0', group: :development
14
14
  gem 'yard', '~> 0.9', group: :development
data/HISTORY.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 10.0.1 (2024-04-07)
4
+ * Fix "no status in API response" bug when sending stdin data to API.
5
+
3
6
  ## 10.0.0 (2024-01-19)
4
7
  * Remove support for Ruby < 3.0 (Breaking change.)
5
8
  * Fix HTTP proxy write bug by bumping SDK dependency.
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?branch=master)](https://github.com/snltd/wavefront-cli/actions/workflows/test.yml) ![Release](https://github.com/snltd/wavefront-sdk/workflows/Release/badge.svg) [![Maintainability](https://api.codeclimate.com/v1/badges/9b712047af0b2dafc146/maintainability)](https://codeclimate.com/github/snltd/wavefront-cli/maintainability) [![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)
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
@@ -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 "no #{b} block in API response" unless data.respond_to?(b)
249
+ abort "No #{b} block in API response" unless data.respond_to?(b)
250
250
  end
251
251
  end
252
252
 
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- WF_CLI_VERSION = '10.0.0'
3
+ WF_CLI_VERSION = '10.0.1'
@@ -187,8 +187,11 @@ module WavefrontCli
187
187
  #
188
188
  def read_stdin
189
189
  open_connection
190
- $stdin.each_line { |l| call_write(process_line(l.strip), false) }
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.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-01-21 00:00:00.000000000 Z
11
+ date: 2024-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt