fluent-plugin-webhook-mackerel 0.0.1 → 0.1.0

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
- SHA1:
3
- metadata.gz: a4a0840319dbdd39467c451e079f45996603ffd2
4
- data.tar.gz: 4fc2b3b2c49d93a9cbe3d142b8457cc0c1974275
2
+ SHA256:
3
+ metadata.gz: c8f05ee5570c4dfd4f05a5c28b9d583d0dc01bd82d4473bf9b3713c0c94cc01f
4
+ data.tar.gz: 7199429498bb7bd464e4ea5c9d160da4c3af3b670902cea506f6e71f0ce63c1b
5
5
  SHA512:
6
- metadata.gz: 18c33789894abebb57c4941360a09f48fc32283b4cafb8b113abdc97bf1a538a21452bc53b98b724c2f00dbbd87cab5b1c198d4dfef950559edd00fdc71916e8
7
- data.tar.gz: b60702519a5ed03986bc0ae7901612589555c460b8c51742a5a2abd614ba846e5cbff19af198e627ef84220e45b2af66476f683ab8f6dc6a134f753a99a188f0
6
+ metadata.gz: 57d1cab0cfadd826cdc57ca3ce634fe6d04f1cacb1f0f18f6bdc34b3293cd378ce22c028a2b8fd93c22ae1e1011ab570c19cd8fb2ea63fa855ae34c2ce536432
7
+ data.tar.gz: 0d0ed34c314a024f62dd3771435b54d736ff71aa08d6c36c7c045cec17e702e93458303745a1b7f96414c647bfac5fbebaf88b9e0d4653b9cf73bee1e3a61bec
data/README.md CHANGED
@@ -10,7 +10,7 @@ fluentd input plugin for incoming webhook from Mackerel.
10
10
 
11
11
  ```
12
12
  <source>
13
- type webhook_mackerel
13
+ @type webhook_mackerel
14
14
  tag mackerel
15
15
 
16
16
  # optional (values are default)
@@ -20,11 +20,11 @@ fluentd input plugin for incoming webhook from Mackerel.
20
20
  </source>
21
21
 
22
22
  <match mackerel.*>
23
- type stdout
23
+ @type stdout
24
24
  </match>
25
25
 
26
26
  <match mackerel.alert>
27
- type slack
27
+ @type slack
28
28
  </match>
29
29
  ```
30
30
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -8,15 +8,18 @@ Gem::Specification.new do |spec|
8
8
  spec.email = ["mackerel-developers@mackerel.io"]
9
9
  spec.summary = %q{fluentd input plugin for receiving Mackerel webhook}
10
10
  spec.description = %q{fluentd input plugin for receiving Mackerel webhook}
11
- spec.homepage = "https://mackerel.com/mackerelio/fluent-plugin-webhook-mackerel"
11
+ spec.homepage = "https://github.com/mackerelio/fluent-plugin-webhook-mackerel"
12
12
  spec.license = "MIT"
13
13
 
14
+ spec.required_ruby_version = ">= 2.7.0"
15
+
14
16
  spec.files = `git ls-files -z`.split("\x0")
15
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
19
  spec.require_paths = ["lib"]
18
20
 
19
- spec.add_runtime_dependency "fluentd", "~> 0"
20
- spec.add_development_dependency "bundler", "~> 1.6"
21
+ spec.add_runtime_dependency "fluentd", ">= 0.14.0"
22
+ spec.add_development_dependency "bundler", "~> 2.0"
21
23
  spec.add_development_dependency "rake"
24
+ spec.add_development_dependency "test-unit"
22
25
  end
@@ -1,5 +1,6 @@
1
1
  require "thread"
2
2
  require "json"
3
+ require 'fluent/input'
3
4
  require 'fluent/process'
4
5
 
5
6
  module Fluent
@@ -14,10 +15,12 @@ module Fluent
14
15
  config_param :mount, :string, :default => "/"
15
16
 
16
17
  def start
18
+ super
17
19
  @thread = Thread.new(&method(:run))
18
20
  end
19
21
 
20
22
  def shutdown
23
+ super
21
24
  @server.shutdown
22
25
  Thread.kill(@thread)
23
26
  end
@@ -52,7 +55,7 @@ module Fluent
52
55
  event = payload.delete "event"
53
56
  payload[:event] = event
54
57
  $log.info "tag: #{@tag.dup}.#{event}, payload:#{payload}"
55
- Engine.emit("#{@tag.dup}.#{event}", Engine.now, payload)
58
+ router.emit("#{@tag.dup}.#{event}", Engine.now, payload)
56
59
  end
57
60
  end
58
61
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-webhook-mackerel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mackerelio
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2024-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.14.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.14.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: '2.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.6'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: test-unit
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: fluentd input plugin for receiving Mackerel webhook
56
70
  email:
57
71
  - mackerel-developers@mackerel.io
@@ -69,11 +83,11 @@ files:
69
83
  - lib/fluent/plugin/in_webhook_mackerel.rb
70
84
  - test/helper.rb
71
85
  - test/plugin/test_in_webhook_mackerel.rb
72
- homepage: https://mackerel.com/mackerelio/fluent-plugin-webhook-mackerel
86
+ homepage: https://github.com/mackerelio/fluent-plugin-webhook-mackerel
73
87
  licenses:
74
88
  - MIT
75
89
  metadata: {}
76
- post_install_message:
90
+ post_install_message:
77
91
  rdoc_options: []
78
92
  require_paths:
79
93
  - lib
@@ -81,16 +95,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
95
  requirements:
82
96
  - - ">="
83
97
  - !ruby/object:Gem::Version
84
- version: '0'
98
+ version: 2.7.0
85
99
  required_rubygems_version: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - ">="
88
102
  - !ruby/object:Gem::Version
89
103
  version: '0'
90
104
  requirements: []
91
- rubyforge_project:
92
- rubygems_version: 2.2.2
93
- signing_key:
105
+ rubygems_version: 3.1.6
106
+ signing_key:
94
107
  specification_version: 4
95
108
  summary: fluentd input plugin for receiving Mackerel webhook
96
109
  test_files: