fluent-plugin-delay-inspector 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/README.md +2 -0
- data/fluent-plugin-delay-inspector.gemspec +2 -1
- data/lib/fluent/plugin/out_delay_inspector.rb +7 -2
- metadata +13 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc65f6f360b759934098755dbcb773e0bad1946
|
4
|
+
data.tar.gz: 4c61dc3e4bee202d99c5850e27fd79204d64f8ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bfd4ced1255d355603f9b2ef91c8c2665c7cbc2280e8c16f9bfcdc756e8c0cb527a134c450e8273e8a02d51cb5a5167f4a9af89cd901e0e2c3408dae70a5c18
|
7
|
+
data.tar.gz: 9dab7f9dd96b6278b94f69adb7cad123041b3d40bf8866723cbe7872fa4957445dc103a78c7f07818810e7a71f57c23b01ee8936ab56b237f3319cdef55cadc7
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -2,12 +2,13 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "fluent-plugin-delay-inspector"
|
5
|
-
gem.version = "0.0.
|
5
|
+
gem.version = "0.0.3"
|
6
6
|
gem.authors = ["TAGOMORI Satoshi"]
|
7
7
|
gem.email = ["tagomoris@gmail.com"]
|
8
8
|
gem.summary = %q{Fluentd plugin to inspect diff of real-time and log-time}
|
9
9
|
gem.description = %q{Inspect delay of log, and emit it, or inject it into message itself with specified attribute name}
|
10
10
|
gem.homepage = "https://github.com/tagomoris/fluent-plugin-delay-inspector"
|
11
|
+
gem.license = "APLv2"
|
11
12
|
|
12
13
|
gem.files = `git ls-files`.split($\)
|
13
14
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -8,6 +8,11 @@ class Fluent::DelayInspectorOutput < Fluent::Output
|
|
8
8
|
config_param :key_name, :string, :default => 'delay'
|
9
9
|
config_param :reserve_data, :bool, :default => false
|
10
10
|
|
11
|
+
# Define `log` method for v0.10.42 or earlier
|
12
|
+
unless method_defined?(:log)
|
13
|
+
define_method("log") { $log }
|
14
|
+
end
|
15
|
+
|
11
16
|
def configure(conf)
|
12
17
|
super
|
13
18
|
|
@@ -33,14 +38,14 @@ class Fluent::DelayInspectorOutput < Fluent::Output
|
|
33
38
|
if @remove_prefix and
|
34
39
|
( (tag.start_with?(@removed_prefix_string) and tag.length > @removed_length) or tag == @remove_prefix)
|
35
40
|
tag = tag[@removed_length..-1]
|
36
|
-
end
|
41
|
+
end
|
37
42
|
if @add_prefix
|
38
43
|
tag = if tag and tag.length > 0
|
39
44
|
@added_prefix_string + tag
|
40
45
|
else
|
41
46
|
@add_prefix
|
42
47
|
end
|
43
|
-
end
|
48
|
+
end
|
44
49
|
tag
|
45
50
|
end
|
46
51
|
if @reserve_data
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-delay-inspector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fluentd
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Inspect delay of log, and emit it, or inject it into message itself with
|
@@ -46,7 +46,8 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
- .gitignore
|
49
|
+
- ".gitignore"
|
50
|
+
- ".travis.yml"
|
50
51
|
- Gemfile
|
51
52
|
- LICENSE
|
52
53
|
- README.md
|
@@ -56,7 +57,8 @@ files:
|
|
56
57
|
- test/helper.rb
|
57
58
|
- test/plugin/test_out_delay_inspector.rb
|
58
59
|
homepage: https://github.com/tagomoris/fluent-plugin-delay-inspector
|
59
|
-
licenses:
|
60
|
+
licenses:
|
61
|
+
- APLv2
|
60
62
|
metadata: {}
|
61
63
|
post_install_message:
|
62
64
|
rdoc_options: []
|
@@ -64,17 +66,17 @@ require_paths:
|
|
64
66
|
- lib
|
65
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
68
|
requirements:
|
67
|
-
- -
|
69
|
+
- - ">="
|
68
70
|
- !ruby/object:Gem::Version
|
69
71
|
version: '0'
|
70
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
73
|
requirements:
|
72
|
-
- -
|
74
|
+
- - ">="
|
73
75
|
- !ruby/object:Gem::Version
|
74
76
|
version: '0'
|
75
77
|
requirements: []
|
76
78
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.2.2
|
78
80
|
signing_key:
|
79
81
|
specification_version: 4
|
80
82
|
summary: Fluentd plugin to inspect diff of real-time and log-time
|