fluent-plugin-resque_stat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "fluent-plugin-resque_stat"
|
7
|
-
gem.version = "0.0.
|
7
|
+
gem.version = "0.0.4"
|
8
8
|
gem.authors = ["Spring_MT"]
|
9
9
|
gem.email = ["today.is.sky.blue.sky@gmail.com"]
|
10
10
|
gem.summary = %q{Fluent input plugin for Resque info}
|
@@ -42,7 +42,7 @@ module Fluent
|
|
42
42
|
begin
|
43
43
|
resque_stat = Resque.info
|
44
44
|
record = {}
|
45
|
-
|
45
|
+
resque_stat.each { |key, value| record[key.to_s] = value }
|
46
46
|
tag = @tag
|
47
47
|
if tag
|
48
48
|
Engine.emit(tag, Engine.now, record)
|
data/spec/in_resque_stat_spec.rb
CHANGED
@@ -23,7 +23,7 @@ describe Fluent::ResqueStatInput do
|
|
23
23
|
emits = d.emits
|
24
24
|
emits.length.should > 0
|
25
25
|
emits[0][0].should eql('test')
|
26
|
-
emits[0][2].keys.should eql([
|
26
|
+
emits[0][2].keys.should eql(['pending', 'processed', 'queues', 'workers', 'working', 'failed', 'servers', 'environment'])
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|