wavefront-cli 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfee50381c5609e38fdefab8aa7db8b7daf58fbbc547437d3a09654c65060f0b
4
- data.tar.gz: 9fa8ef583e2e0e5547cbd81a84ab5fafe56e1e26b7738918f20d092187e332f6
3
+ metadata.gz: f98d17cf9a5e38f58258bdcf1fd4be6d08a6e92d57d2ae756f43becb165bc0e4
4
+ data.tar.gz: f06aa55fd7305834f02227413aea031f865c849eefe77156e12d451c15fa0698
5
5
  SHA512:
6
- metadata.gz: 2d4c4b99f8e0bdc57fd43f7813b47830e17dfdf4349f9c6ae2fc27b97474ccd3db2db0bc23dd368e937ccdd281c6982489f47438d4cdaad43d8f484cf53f956f
7
- data.tar.gz: 2a12e2a4af8f144d3f0dca74265b98dac65d0187320d6d26557725bd559d5c07b965e0987f3232b23d7597df67e31711bf1f22dd01f7cd2e2008dba8396c7aba
6
+ metadata.gz: d6490226f534671ca73243a249fcb35b686d57beb16b277ead5418409186c023ae823e359472a0daf6b447ef823d91d7bf077ac1377f68a6909b62504c60e84f
7
+ data.tar.gz: 80b657cd6f9b416860a4169d7ac6d5d7f8f560f61b6096d9e38b74a475c8880e483a80ea9e88c28f5292965954ce0ae0bd2c0ec0116289fdc472d633cbed8394
data/HISTORY.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.1.3 (24/04/2019)
4
+ * Fix `write distribution` bug. Points would be sent, but results
5
+ could not be displayed, causing a crash unless you used `-q`.
6
+
3
7
  ## 3.1.2 (06/04/2019)
4
8
  * Bugfix on handling of invalid config files.
5
9
  * Explicitly specifying a missing config file now causes an error
@@ -4,14 +4,13 @@ module WavefrontDisplay
4
4
  # Format human-readable output when writing distributions
5
5
  #
6
6
  class Distribution < Write
7
- # rubocop:disable Metrics/AbcSize
8
7
  def do_distribution
9
- unless options[:quiet] || (data[:unsent] + data[:rejected].positive?)
10
- report
11
- end
12
-
8
+ print_report unless options[:quiet]
13
9
  exit(data.rejected.zero? && data.unsent.zero? ? 0 : 1)
14
10
  end
15
- # rubocop:enable Metrics/AbcSize
11
+
12
+ def print_report
13
+ report unless (data[:unsent] + data[:rejected]).positive?
14
+ end
16
15
  end
17
16
  end
@@ -1 +1 @@
1
- WF_CLI_VERSION = '3.1.2'.freeze
1
+ WF_CLI_VERSION = '3.1.3'.freeze
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: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-06 00:00:00.000000000 Z
11
+ date: 2019-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt