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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4130cbc51930de60ce2849178e6880c5b5eb7d2
4
- data.tar.gz: dc658741d0aa06170bf51ab1139730fa65fdcb6b
3
+ metadata.gz: fd62e5eafdf1aa5b1a95c3bb1c6742270b4a57e6
4
+ data.tar.gz: d4a670557712f862268408083d9fb5d53f3e9182
5
5
  SHA512:
6
- metadata.gz: bac6c5400c17f3530cd1c3cc646968b0c5643ef067f199c29b04f33b90a6ae6f4ef933ee2bb31342ee347a2962ea229dc3c5e5c841c693ef31fa7759d7a4e237
7
- data.tar.gz: cefd895337b752a05657517b3895b138712284e4e255b907b5bd65c5d9687af40a60805921347d39b726a46f89e2dded711a47fc27e4251b8ef2f4525f6552cf
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.headers_.to_hash)
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.1'
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.1
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: 2016-07-14 00:00:00.000000000 Z
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.6.3
128
+ rubygems_version: 2.4.8
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Accept events from github webhooks.