logstash-output-http 1.1.1 → 2.0.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: f7bdce3a5a4b518dd65c7a99db5f3442540aa112
4
- data.tar.gz: f5c6894d57ec7606344c6a74937a6d33da4420c7
3
+ metadata.gz: aec5c4f25fa21f9b5e6448170409a27e2686836e
4
+ data.tar.gz: eb1398722a76eda6cd20e8624bc2825a6b811f3b
5
5
  SHA512:
6
- metadata.gz: 4fbf0c5ea31c2fd8fa994f19f1a695ede4bd7eaa8ebd9ff098127ada67f929c99b06946200860ffaee04c55e8f3103ead44544b3c95fcd32587be7d01b306da3
7
- data.tar.gz: bf4f3a9dd411f36211e55509a8400b3b538574b341d5e954c2ff451c93da171ce369eea756e1a0e9ad825b2badfb9d664bdbc518e78509f908d6fdde74944089
6
+ metadata.gz: d5b1b2ef55750bc9f9d241729f04f71c39b4eabce97739e3af68aa1f643bc2cb1a95921db6f8af1b23bcf76578669e390a1d45e91841c188e144b734de149316
7
+ data.tar.gz: 6204c7b3e9ccbfa2e51d92c1bca24cdd90e8242b968dbc8eea40e88555ca5c11524a33030db8e2f7c4bd7ebba4b66936e99a44d1c6dac3506f15820a09afb95d
data/CHANGELOG.md CHANGED
@@ -1,8 +1,4 @@
1
- ## 1.1.1
2
- - fixed memory leak
3
- - fixed potential race condition on async callbacks
4
-
5
- ## 1.1.0
1
+ * 1.1.0
6
2
  - Concurrent execution
7
3
  - Add many HTTP options via the http_client mixin
8
4
  - Switch to manticore as HTTP Client
@@ -89,8 +89,6 @@ class LogStash::Outputs::Http < LogStash::Outputs::Base
89
89
  validate_format!
90
90
  end # def register
91
91
 
92
- # TODO: (colin) the request call sequence + async handling will have to be reworked when using
93
- # Maticore >= 5.0. I will set a version constrain in the gemspec for this.
94
92
  def receive(event)
95
93
  return unless output?(event)
96
94
 
@@ -104,17 +102,13 @@ class LogStash::Outputs::Http < LogStash::Outputs::Base
104
102
  headers = event_headers(event)
105
103
 
106
104
  # Create an async request
107
- request = client.send(@http_method, url, :body => body, :headers => headers, :async => true)
105
+ request = client.send(@http_method, url, body: body, headers: headers, async: true)
108
106
 
109
- # with Maticore version < 0.5 using :async => true places the requests in an @async_requests
110
- # list which is used & cleaned by Client#execute! but we are not using it here and we must
111
- # purge it manually to avoid leaking requests.
112
- client.clear_pending
113
-
114
- # attach handlers before performing request
107
+ # Invoke it using the Manticore Executor (CachedThreadPool) directly
108
+ request_async_background(request)
115
109
 
110
+ # Make sure we return the token to the pool
116
111
  request.on_complete do
117
- # Make sure we return the token to the pool
118
112
  @request_tokens << token
119
113
  end
120
114
 
@@ -139,9 +133,6 @@ class LogStash::Outputs::Http < LogStash::Outputs::Base
139
133
  :backtrace => exception.backtrace
140
134
  )
141
135
  end
142
-
143
- # Invoke it using the Manticore Executor (CachedThreadPool) directly
144
- request_async_background(request)
145
136
  end
146
137
 
147
138
  private
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-http'
4
- s.version = '1.1.1'
4
+ s.version = '2.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output lets you `PUT` or `POST` events to a generic HTTP(S) endpoint"
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/plugin install gemname. This gem is not a stand-alone program"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = `git ls-files`.split($\)+::Dir.glob('vendor/*')
14
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -20,13 +20,9 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
23
+ s.add_runtime_dependency "logstash-core", "~> 2.0.0.snapshot"
24
24
  s.add_runtime_dependency 'logstash-mixin-http_client', '>= 1.0.1', '< 2.0.0'
25
25
 
26
- # Constrain Maticore dependency to less than 0.5.0 because of changes in the async handling
27
- # see note in http.rb
28
- s.add_runtime_dependency "manticore", "< 0.5.0"
29
-
30
26
  s.add_development_dependency 'logstash-devutils'
31
27
  s.add_development_dependency 'logstash-codec-plain'
32
28
  s.add_development_dependency 'sinatra'
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
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-10-20 00:00:00.000000000 Z
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
- - - '>='
24
+ - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 1.4.0
30
- - - <
31
- - !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:
@@ -50,20 +44,6 @@ dependencies:
50
44
  - - <
51
45
  - !ruby/object:Gem::Version
52
46
  version: 2.0.0
53
- - !ruby/object:Gem::Dependency
54
- requirement: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - <
57
- - !ruby/object:Gem::Version
58
- version: 0.5.0
59
- name: manticore
60
- prerelease: false
61
- type: :runtime
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - <
65
- - !ruby/object:Gem::Version
66
- version: 0.5.0
67
47
  - !ruby/object:Gem::Dependency
68
48
  requirement: !ruby/object:Gem::Requirement
69
49
  requirements:
@@ -126,14 +106,12 @@ executables: []
126
106
  extensions: []
127
107
  extra_rdoc_files: []
128
108
  files:
129
- - .gitignore
130
109
  - CHANGELOG.md
131
110
  - CONTRIBUTORS
132
111
  - Gemfile
133
112
  - LICENSE
134
113
  - NOTICE.TXT
135
114
  - README.md
136
- - Rakefile
137
115
  - lib/logstash/outputs/http.rb
138
116
  - logstash-output-http.gemspec
139
117
  - spec/outputs/http_spec.rb
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- *.gem
2
- Gemfile.lock
3
- .bundle
4
- vendor
5
- .idea
6
- *~
data/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- @files=[]
2
-
3
- task :default do
4
- system("rake -T")
5
- end
6
-
7
- require "logstash/devutils/rake"