logstash-output-stomp 3.0.2 → 3.0.4
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/logstash/outputs/stomp.rb +8 -8
- data/logstash-output-stomp.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: 4d83ef0ad53ff6ab07a032829fa94e8d9dc5389b
|
4
|
+
data.tar.gz: 25c9f05b37a4405a08c43cc353e20e7ec6a4417f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d45cafab0abc306b2bd38799039f1e2b420638bd425783d166feb01ab1279b48248b3e372d77e2de09b1ce1b6cf6477f4aa96cf6da2a103366f6ce3e69c05f8
|
7
|
+
data.tar.gz: e110c2090101777cdeaf1511a8a4fe2d1edc69a9dcdab868d718ae30fbe4242cfdd674e0b1f4471c58d8eaf04fdea6339885bf65d86b0ceb3d0fcd49906baa6e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 3.0.4
|
2
|
+
- A `logger.debug` statement was crashing because of a type mismatch
|
3
|
+
|
4
|
+
## 3.0.3
|
5
|
+
- Correctly merges the headers before sending the events and fix an undefined `event` variables #13, #14
|
6
|
+
|
1
7
|
## 3.0.2
|
2
8
|
- Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
|
3
9
|
|
@@ -72,17 +72,17 @@ class LogStash::Outputs::Stomp < LogStash::Outputs::Base
|
|
72
72
|
|
73
73
|
def multi_receive(events)
|
74
74
|
|
75
|
-
|
76
|
-
if @headers
|
77
|
-
@headers.each do |k,v|
|
78
|
-
headers[k] = event.sprintf(v)
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
@logger.debug(["stomp sending events in batch", { :host => @host, :events => events.length, :headers => headers }])
|
75
|
+
@logger.debug("stomp sending events in batch", { :host => @host, :events => events.length })
|
83
76
|
|
84
77
|
@client.transaction do |t|
|
85
78
|
events.each { |event|
|
79
|
+
headers = Hash.new
|
80
|
+
if @headers
|
81
|
+
@headers.each do |k,v|
|
82
|
+
headers[k] = event.sprintf(v)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
86
|
t.send(event.sprintf(@destination), event.to_json, headers)
|
87
87
|
}
|
88
88
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-stomp'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.4'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Send events to a stomp server"
|
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/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-output-stomp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.4.8
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Send events to a stomp server
|