fluent-plugin-delay-inspector 0.0.3 → 0.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1dc65f6f360b759934098755dbcb773e0bad1946
4
- data.tar.gz: 4c61dc3e4bee202d99c5850e27fd79204d64f8ce
3
+ metadata.gz: 98eba909d8c2218cb1e30ed453b8442219d46ebe
4
+ data.tar.gz: f3e4d7765d9bc06fb8f682ddd97313bfadbe9518
5
5
  SHA512:
6
- metadata.gz: 3bfd4ced1255d355603f9b2ef91c8c2665c7cbc2280e8c16f9bfcdc756e8c0cb527a134c450e8273e8a02d51cb5a5167f4a9af89cd901e0e2c3408dae70a5c18
7
- data.tar.gz: 9dab7f9dd96b6278b94f69adb7cad123041b3d40bf8866723cbe7872fa4957445dc103a78c7f07818810e7a71f57c23b01ee8936ab56b237f3319cdef55cadc7
6
+ metadata.gz: ef5580876fc6dd53770a1b5e14c61f6c6d188f5fc1d459738e0747e1444e22d40dfad19b4a7cd8e911d9968fb9144da03199bdddfbe8c88cbc192bad09c71e63
7
+ data.tar.gz: d855209e658c3152dad02872fdb8380e6f762fb3eb57e030035c611d90575cf56e66d99cc5a5605078a3aace5d422a7c038baa96d8ac8f5845d85f522e67fe56
@@ -1,4 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
3
+ - 2.1
4
+ - 2.2
5
+ - 2.3.4
6
+ - 2.4.1
7
+ before_install:
8
+ - gem update bundler
data/LICENSE CHANGED
@@ -1,22 +1,13 @@
1
- Copyright (c) 2012 TAGOMORI Satoshi
1
+ Copyright (c) 2012- TAGOMORI Satoshi
2
2
 
3
- MIT License
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
4
6
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
7
+ http://www.apache.org/licenses/LICENSE-2.0
12
8
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -1,14 +1,12 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
1
  Gem::Specification.new do |gem|
4
2
  gem.name = "fluent-plugin-delay-inspector"
5
- gem.version = "0.0.3"
3
+ gem.version = "0.1.0"
6
4
  gem.authors = ["TAGOMORI Satoshi"]
7
5
  gem.email = ["tagomoris@gmail.com"]
8
6
  gem.summary = %q{Fluentd plugin to inspect diff of real-time and log-time}
9
7
  gem.description = %q{Inspect delay of log, and emit it, or inject it into message itself with specified attribute name}
10
8
  gem.homepage = "https://github.com/tagomoris/fluent-plugin-delay-inspector"
11
- gem.license = "APLv2"
9
+ gem.license = "Apache-2.0"
12
10
 
13
11
  gem.files = `git ls-files`.split($\)
14
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -16,5 +14,6 @@ Gem::Specification.new do |gem|
16
14
  gem.require_paths = ["lib"]
17
15
 
18
16
  gem.add_development_dependency "rake"
17
+ gem.add_development_dependency "test-unit", "~> 3.2.0"
19
18
  gem.add_runtime_dependency "fluentd"
20
19
  end
@@ -13,6 +13,11 @@ class Fluent::DelayInspectorOutput < Fluent::Output
13
13
  define_method("log") { $log }
14
14
  end
15
15
 
16
+ # Define `router` method of v0.12 to support v0.10 or earlier
17
+ unless method_defined?(:router)
18
+ define_method("router") { Fluent::Engine }
19
+ end
20
+
16
21
  def configure(conf)
17
22
  super
18
23
 
@@ -51,11 +56,11 @@ class Fluent::DelayInspectorOutput < Fluent::Output
51
56
  if @reserve_data
52
57
  es.each do |time,record|
53
58
  record[@key_name] = Fluent::Engine.now - time
54
- Fluent::Engine.emit(tag, time, record)
59
+ router.emit(tag, time, record)
55
60
  end
56
61
  else
57
62
  es.each do |time,record|
58
- Fluent::Engine.emit(tag, time, {@key_name => (Fluent::Engine.now - time)})
63
+ router.emit(tag, time, {@key_name => (Fluent::Engine.now - time)})
59
64
  end
60
65
  end
61
66
  chain.next
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-delay-inspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2017-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: test-unit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.2.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.2.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: fluentd
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,7 +72,7 @@ files:
58
72
  - test/plugin/test_out_delay_inspector.rb
59
73
  homepage: https://github.com/tagomoris/fluent-plugin-delay-inspector
60
74
  licenses:
61
- - APLv2
75
+ - Apache-2.0
62
76
  metadata: {}
63
77
  post_install_message:
64
78
  rdoc_options: []
@@ -76,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
90
  version: '0'
77
91
  requirements: []
78
92
  rubyforge_project:
79
- rubygems_version: 2.2.2
93
+ rubygems_version: 2.6.11
80
94
  signing_key:
81
95
  specification_version: 4
82
96
  summary: Fluentd plugin to inspect diff of real-time and log-time