metrix 0.0.9 → 0.0.10

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.
data/lib/metrix/cli.rb CHANGED
@@ -110,7 +110,6 @@ module Metrix
110
110
  reporter << m
111
111
  end
112
112
  end
113
-
114
113
  reporter.flush
115
114
  rescue SystemExit
116
115
  $running = false
@@ -135,7 +134,7 @@ module Metrix
135
134
  end
136
135
 
137
136
  def reporter
138
- if attributes[:opentsdb]
137
+ @reporter ||= if attributes[:opentsdb]
139
138
  require "metrix/opentsdb"
140
139
  uri = URI.parse(attributes[:opentsdb])
141
140
  Metrix::OpenTSDB.new(uri.host, uri.port)
@@ -1,3 +1,3 @@
1
1
  module Metrix
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: