metrix 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
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: