fluent-plugin-measure_time 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71f737d5d8ef8d2b58e9cbcb0efc4543fdc32b5f
|
4
|
+
data.tar.gz: 088ad69a3b4a0df7a921131f2c236f1f69cbaf4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b72b975884b09a17d51de6bb4b449db01a45528f2e8dee1a391fe97c2702b5320f27278b71467ad6c6fffa3139df8435180f46d210b4e7955b31854f88fbf01
|
7
|
+
data.tar.gz: 991c80b231cb877be57f33f6808dc29f21cb4a2056cad4d362ab4698709ea20c784da6c6837c5cff778cdc0b224891bd7986dbb9f40242e304da677237ffcb45
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-measure_time"
|
6
|
-
gem.version = "0.2.
|
6
|
+
gem.version = "0.2.1"
|
7
7
|
gem.authors = ["Naotoshi Seo"]
|
8
8
|
gem.email = "sonots@gmail.com"
|
9
9
|
gem.homepage = "https://github.com/sonots/fluent-plugin-measure_time"
|
@@ -9,6 +9,9 @@ module Fluent
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def configure(conf)
|
12
|
+
if Fluent::VERSION !~ /^0\.10/
|
13
|
+
raise ConfigError, "fluent-plugin-measure_time: Use <label @measure_time><match></match></label> instead of <source></source> for v0.12 or above"
|
14
|
+
end
|
12
15
|
::Fluent::Input.__send__(:include, MeasureTimable)
|
13
16
|
::Fluent::Output.__send__(:include, MeasureTimable)
|
14
17
|
end
|
@@ -3,11 +3,11 @@ require_relative 'spec_helper'
|
|
3
3
|
require 'fluent/plugin/in_forward'
|
4
4
|
require 'fluent/plugin/out_stdout'
|
5
5
|
|
6
|
-
describe Fluent::
|
6
|
+
describe Fluent::MeasureTimeOutput do
|
7
7
|
before { Fluent::Test.setup }
|
8
8
|
|
9
9
|
def create_driver(conf=%[])
|
10
|
-
d = Fluent::Test::InputTestDriver.new(Fluent::
|
10
|
+
d = Fluent::Test::InputTestDriver.new(Fluent::MeasureTimeOutput).configure(conf)
|
11
11
|
unless d.respond_to?(:router)
|
12
12
|
d.singleton_class.send(:define_method, :router) { ::Fluent::Engine }
|
13
13
|
end
|
@@ -22,7 +22,7 @@ describe "extends Fluent::ForwardInput" do
|
|
22
22
|
before { Fluent::Test.setup }
|
23
23
|
|
24
24
|
def create_driver(conf=CONFIG)
|
25
|
-
Fluent::
|
25
|
+
Fluent::MeasureTimeOutput.new.configure("")
|
26
26
|
Fluent::Test::InputTestDriver.new(Fluent::ForwardInput).configure(conf)
|
27
27
|
end
|
28
28
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-measure_time
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
@@ -123,7 +123,7 @@ files:
|
|
123
123
|
- lib/fluent/plugin/in_measure_time.rb
|
124
124
|
- lib/fluent/plugin/measure_timable.rb
|
125
125
|
- lib/fluent/plugin/out_measure_time.rb
|
126
|
-
- spec/
|
126
|
+
- spec/out_measure_time_spec.rb
|
127
127
|
- spec/spec_helper.rb
|
128
128
|
homepage: https://github.com/sonots/fluent-plugin-measure_time
|
129
129
|
licenses:
|
@@ -150,5 +150,5 @@ signing_key:
|
|
150
150
|
specification_version: 4
|
151
151
|
summary: Fluentd plugin to measure elapsed time to process messages
|
152
152
|
test_files:
|
153
|
-
- spec/
|
153
|
+
- spec/out_measure_time_spec.rb
|
154
154
|
- spec/spec_helper.rb
|