riemann-babbler 1.1.6 → 1.1.7

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.
@@ -4,6 +4,7 @@ require 'resolv'
4
4
 
5
5
  require 'riemann/babbler/support/deep_merge'
6
6
  require 'riemann/babbler'
7
+ require 'riemann/babbler/support/pinger'
7
8
 
8
9
  class Riemann::Babbler::Starter
9
10
 
@@ -0,0 +1,19 @@
1
+ require 'socket'
2
+ require 'json'
3
+
4
+ server = TCPServer.open(55755)
5
+
6
+ info = {
7
+ :version => Riemann::Babbler::VERSION,
8
+ :ruby => "#{RUBY_VERSION}-#{RUBY_PATCHLEVEL}"
9
+ }
10
+
11
+ t = Thread.new {
12
+ loop {
13
+ client = server.accept
14
+ client.puts info.to_json
15
+ client.close
16
+ }
17
+ }
18
+
19
+ t.join
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '1.1.6'
3
+ VERSION = '1.1.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-06 00:00:00.000000000 Z
12
+ date: 2013-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riemann-client
@@ -194,6 +194,7 @@ files:
194
194
  - lib/riemann/babbler/start.rb
195
195
  - lib/riemann/babbler/support/deep_merge.rb
196
196
  - lib/riemann/babbler/support/monkey_patches.rb
197
+ - lib/riemann/babbler/support/pinger.rb
197
198
  - lib/riemann/babbler/support/plugin_helpers.rb
198
199
  - lib/riemann/babbler/version.rb
199
200
  - riemann-babbler.gemspec