logstash-input-http 1.0.3 → 2.0.0
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/http.rb +6 -8
- data/logstash-input-http.gemspec +3 -3
- data/spec/inputs/http_spec.rb +5 -1
- metadata +7 -15
- data/.gitignore +0 -5
- data/Rakefile +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97dfceaee181480b60632d77a55b6467dfa912d5
|
4
|
+
data.tar.gz: 87f8b3113840fbbf88d95f8dfaef84b82ac6dfdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de01d5243131b5b4c8f83a2c80322b7532a5fb3db269b17ceb8c17da0f848f95ba02b54191c286ea965eefc08f3d02314ae5cfd3f6b41ef8800f64262ff4c8e0
|
7
|
+
data.tar.gz: 5da08d76797288e10701b8295a56f81505df45a3775db54b4197de8ce58ae3b25e1c30714942cfc0a801c1fa0583bb25d817cebc37bba9e2a09f33a40da018c7
|
data/lib/logstash/inputs/http.rb
CHANGED
@@ -149,14 +149,12 @@ class LogStash::Inputs::Http < LogStash::Inputs::Base
|
|
149
149
|
end
|
150
150
|
|
151
151
|
public
|
152
|
-
def
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
end
|
159
|
-
end
|
152
|
+
def stop
|
153
|
+
return unless @server
|
154
|
+
@server.stop(true)
|
155
|
+
@server.binder.close if @server.binder
|
156
|
+
rescue IOError
|
157
|
+
# do nothing
|
160
158
|
end
|
161
159
|
|
162
160
|
end # class LogStash::Inputs::Http
|
data/logstash-input-http.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-http'
|
3
|
-
s.version = '
|
3
|
+
s.version = '2.0.0'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Logstash Input plugin that receives HTTP requests"
|
6
6
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.require_paths = ["lib"]
|
11
11
|
|
12
12
|
# Files
|
13
|
-
s.files =
|
13
|
+
s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
|
14
14
|
# Tests
|
15
15
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
16
16
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
|
19
19
|
|
20
20
|
# Gem dependencies
|
21
|
-
s.add_runtime_dependency "logstash-core",
|
21
|
+
s.add_runtime_dependency "logstash-core", "~> 2.0.0.snapshot"
|
22
22
|
s.add_runtime_dependency 'logstash-codec-plain'
|
23
23
|
s.add_runtime_dependency 'stud'
|
24
24
|
s.add_runtime_dependency 'puma', '~> 2.11.3'
|
data/spec/inputs/http_spec.rb
CHANGED
@@ -15,7 +15,11 @@ describe LogStash::Inputs::Http do
|
|
15
15
|
let(:port) { rand(5000) + 1025 }
|
16
16
|
|
17
17
|
after :each do
|
18
|
-
subject.
|
18
|
+
subject.stop
|
19
|
+
end
|
20
|
+
|
21
|
+
it_behaves_like "an interruptible input plugin" do
|
22
|
+
let(:config) { { "port" => port } }
|
19
23
|
end
|
20
24
|
|
21
25
|
describe "#run" do
|
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- -
|
17
|
-
- !ruby/object:Gem::Version
|
18
|
-
version: 1.4.0
|
19
|
-
- - <
|
16
|
+
- - ~>
|
20
17
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.0.0
|
18
|
+
version: 2.0.0.snapshot
|
22
19
|
name: logstash-core
|
23
20
|
prerelease: false
|
24
21
|
type: :runtime
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 1.4.0
|
30
|
-
- - <
|
24
|
+
- - ~>
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: 2.0.0
|
26
|
+
version: 2.0.0.snapshot
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
requirement: !ruby/object:Gem::Requirement
|
35
29
|
requirements:
|
@@ -120,14 +114,12 @@ executables: []
|
|
120
114
|
extensions: []
|
121
115
|
extra_rdoc_files: []
|
122
116
|
files:
|
123
|
-
- .gitignore
|
124
117
|
- CHANGELOG.md
|
125
118
|
- DEVELOPER.md
|
126
119
|
- Gemfile
|
127
120
|
- LICENSE
|
128
121
|
- NOTICE.TXT
|
129
122
|
- README.md
|
130
|
-
- Rakefile
|
131
123
|
- lib/logstash/inputs/http.rb
|
132
124
|
- logstash-input-http.gemspec
|
133
125
|
- spec/inputs/http_spec.rb
|
@@ -153,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
145
|
version: '0'
|
154
146
|
requirements: []
|
155
147
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.4.
|
148
|
+
rubygems_version: 2.4.8
|
157
149
|
signing_key:
|
158
150
|
specification_version: 4
|
159
151
|
summary: Logstash Input plugin that receives HTTP requests
|
data/.gitignore
DELETED
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require "logstash/devutils/rake"
|