fluent-plugin-select 0.0.3 → 0.0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/fluent-plugin-select.gemspec +1 -1
- data/lib/fluent/plugin/out_select.rb +2 -2
- metadata +5 -5
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-select"
|
6
|
-
s.version = "0.0.3"
|
6
|
+
s.version = "0.0.3.1"
|
7
7
|
s.authors = ["Kohei Tomita"]
|
8
8
|
s.email = ["tommy.fmale@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/tomity/fluent-plugin-select"
|
@@ -39,7 +39,7 @@ module Fluent
|
|
39
39
|
def do_select(tag, es)
|
40
40
|
output_es = MultiEventStream.new
|
41
41
|
es.each {|time, record|
|
42
|
-
timeout_block{
|
42
|
+
timeout_block(tag, time, record){
|
43
43
|
if eval(@select)
|
44
44
|
output_es.add(time, record)
|
45
45
|
else
|
@@ -50,7 +50,7 @@ module Fluent
|
|
50
50
|
output_es
|
51
51
|
end
|
52
52
|
|
53
|
-
def timeout_block
|
53
|
+
def timeout_block(tag, time, record)
|
54
54
|
begin
|
55
55
|
Timeout.timeout(@timeout){
|
56
56
|
yield
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.3
|
4
|
+
version: 0.0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-08-11 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70213946234140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.9.2.2
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70213946234140
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: fluentd
|
27
|
-
requirement: &
|
27
|
+
requirement: &70213946231860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.10.24
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70213946231860
|
36
36
|
description: ! 'fluent-plugin-select is the non-buffered plugin that can be filtered
|
37
37
|
by ruby script. '
|
38
38
|
email:
|