logstash-input-github 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/github.rb +2 -1
- data/logstash-input-github.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd62e5eafdf1aa5b1a95c3bb1c6742270b4a57e6
|
4
|
+
data.tar.gz: d4a670557712f862268408083d9fb5d53f3e9182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b71b11d510ca77b5dd1712e69bedb3f0475d944c1cbdef87d090fd0dde4b368638e19c8630a281c6b19b810effa4e39ca5937663dc7df60c32a3836a7ccc1a1c
|
7
|
+
data.tar.gz: 50b02a77b7282d7156b358ff197769d906ff0c24e431de538816d896f91ebb724a0eca707d421b74e2d2c8c9014f2386ec5ebcccfdae050c009a1b1b67f50958
|
@@ -3,6 +3,7 @@ require "logstash/inputs/base"
|
|
3
3
|
require "logstash/namespace"
|
4
4
|
require "socket"
|
5
5
|
require "json"
|
6
|
+
require "rack"
|
6
7
|
|
7
8
|
# Read events from github webhooks
|
8
9
|
class LogStash::Inputs::GitHub < LogStash::Inputs::Base
|
@@ -29,7 +30,7 @@ class LogStash::Inputs::GitHub < LogStash::Inputs::Base
|
|
29
30
|
def run(output_queue)
|
30
31
|
@server = FTW::WebServer.new(@ip, @port) do |request, response|
|
31
32
|
body = request.read_body
|
32
|
-
event = build_event_from_request(body, request.
|
33
|
+
event = build_event_from_request(body, request.headers.to_hash)
|
33
34
|
valid_event = verify_signature(event,body)
|
34
35
|
if !valid_event && @drop_invalid
|
35
36
|
@logger.info("Dropping invalid Github message")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-github'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Accept events from github webhooks."
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
128
|
+
rubygems_version: 2.4.8
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Accept events from github webhooks.
|