wavefront-cli 2.3.0 → 2.3.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: d72f979bcf612478ecbde4f9b0ac5e6a5e3bb0be3cf756b80a23f5c75d25a3bd
4
- data.tar.gz: deec46d8e93bec91ec04ce09cad50fcf69930257bc1655ab60b4e011b3cff08b
3
+ metadata.gz: 0712d7ce74bb2e1b5d61a0bbbe33f90fdd36c9d79d41d481b392f903f46228b3
4
+ data.tar.gz: 6fd070960f3e2184d31f3ce6b3c25c2ebbdbb512934e7236b4468d3ee26fa094
5
5
  SHA512:
6
- metadata.gz: 14517c7aaf32a9f6c16c30cc797ed6d4901e9501f31535f60e7b893e526d2e6368c5aa358dabcd7707bebd8e957429774cc316c085eca1620934bcbc4e8e49c6
7
- data.tar.gz: 1b935a46c79c0ad620364e03e9c7213267498d4733f91b0eb906af861240a6bd871e1089d4d52e6600824ffc700fe9f5e2e630399c78af31a250a22b1d5d0a9c
6
+ metadata.gz: 84a8143458a13242879ffb590abcee1d98b505e85ce59889423bc83d76d11394193baf17c66a112af20c9e8b16b140907ee0e4d674c8a7f422f850c30edf0fa5
7
+ data.tar.gz: 99c7f6877e10db8f529b3bda1dbdfc8ff3e15db2aa595e69d35ac3cf09f514342b33ce91397fcf7cda100c246e1a279801bf76adff3c0ffff3f682eda268f902
data/README.md CHANGED
@@ -233,3 +233,10 @@ If you set the file to `-`, you can read from standard in:
233
233
  ```
234
234
  $ while true; do echo $RANDOM; sleep 1; done | wf write file -m cli.demo -Fv -
235
235
  ```
236
+
237
+ Due to limitations in [docopt](https://github.com/docopt/docopt.rb),
238
+ writing negative values is a bit of a mess.
239
+
240
+ ```
241
+ $ wf write point cli.example "\-10"
242
+ ```
@@ -1 +1 @@
1
- WF_CLI_VERSION = '2.3.0'.freeze
1
+ WF_CLI_VERSION = '2.3.1'.freeze
@@ -14,7 +14,7 @@ module WavefrontCli
14
14
  end
15
15
  def do_point
16
16
  p = { path: options[:'<metric>'],
17
- value: options[:'<value>'].to_f,
17
+ value: options[:'<value>'].delete('\\').to_f,
18
18
  tags: tags_to_hash(options[:tag]) }
19
19
 
20
20
  p[:source] = options[:host] if options[:host]
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: 2.3.0
4
+ version: 2.3.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: 2018-02-23 00:00:00.000000000 Z
11
+ date: 2018-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt