logstash-output-stomp 2.0.5 → 3.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: fe2392a8a6785427e4508f79908db9ff0c1dd330
4
- data.tar.gz: 629a9bb8a4ce6f868b2eaf8536bbb002ff089ad7
3
+ metadata.gz: 3f5d93e2bb0848421ab182895f8474d340ccb323
4
+ data.tar.gz: 2bcdcd9d1b4adf82713f53ea556567fb4a859d8a
5
5
  SHA512:
6
- metadata.gz: 9e6b9c6c0ecc3bc678b2fa6927a5ddaa3d844f706bd20d32857c727ca29a9319dcb19eee079245b3500b6fbc5bd9ea8a6a37b0bcfeba135ccb97611aaaa3a60d
7
- data.tar.gz: 0b04edd2c2054937cc9498854fb709b5adb7ad9f866d6453399a45d2524919a61cded2e28ebe8c7fa24f8dab482fa94e5320db35e9f31f7bd38d0dc3ab97e24a
6
+ metadata.gz: d651a73a632aa6ca5fcf46b6740dbc621f9909260d0f93b68fa9333d93d9552ee7ea4690dddc81f0da99bfbbfa0e981d9ed482aeff36e2e9214dbf9995df3314
7
+ data.tar.gz: 0d96173489b3f921665eba44169e614635f2b819db9b2d04c501cd0becb85f29e48cbf1a3d0f70723a62120660963e55ab9c273a9abc226c67416577cdb16231
@@ -1,14 +1,9 @@
1
- ## 2.0.5
2
- - Fix a data loss issue when shutting down logstash #8
3
- - Move from receive to `multi_receive` api and send events per batch #9
4
- - Allow to send custom header #3
5
-
6
- ## 2.0.4
1
+ # 3.0.0 (2016-05-20)
2
+ - Breaking: Updated to use new Java APIs
3
+ # 2.0.4
7
4
  - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
8
-
9
- ## 2.0.3
5
+ # 2.0.3
10
6
  - New dependency requirements for logstash-core for the 5.0 release
11
-
12
7
  ## 2.0.0
13
8
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
14
9
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
@@ -27,12 +27,6 @@ class LogStash::Outputs::Stomp < LogStash::Outputs::Base
27
27
  # The vhost to use
28
28
  config :vhost, :validate => :string, :default => nil
29
29
 
30
- # Custom headers to send with each message. Supports string expansion, meaning
31
- # %{foo} values will expand to the field value.
32
- #
33
- # Example: headers => ["amq-msg-type", "text", "host", "%{host}"]
34
- config :headers, :validate => :hash
35
-
36
30
  # Enable debugging output?
37
31
  config :debug, :validate => :boolean, :default => false
38
32
 
@@ -63,28 +57,11 @@ class LogStash::Outputs::Stomp < LogStash::Outputs::Base
63
57
 
64
58
  connect
65
59
  end # def register
60
+
61
+ def receive(event)
62
+
66
63
 
67
- public
68
- def close
69
- @logger.warn("Disconnecting from stomp broker")
70
- @client.disconnect if @client.connected?
71
- end # def close
72
-
73
- def multi_receive(events)
74
-
75
- headers = Hash.new
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 }])
83
-
84
- @client.transaction do |t|
85
- events.each { |event|
86
- t.send(event.sprintf(@destination), event.to_json, headers)
87
- }
88
- end
64
+ @logger.debug(["stomp sending event", { :host => @host, :event => event }])
65
+ @client.send(event.sprintf(@destination), event.to_json)
89
66
  end # def receive
90
67
  end # class LogStash::Outputs::Stomp
@@ -1,6 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
+
2
3
  s.name = 'logstash-output-stomp'
3
- s.version = '2.0.5'
4
+ s.version = '3.0.0'
4
5
  s.licenses = ['Apache License (2.0)']
5
6
  s.summary = "Send events to a stomp server"
6
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"
@@ -19,7 +20,7 @@ Gem::Specification.new do |s|
19
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
20
21
 
21
22
  # Gem dependencies
22
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
23
24
 
24
25
  s.add_runtime_dependency 'onstomp'
25
26
 
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-stomp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 3.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: 2016-06-16 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: logstash-core-plugin-api
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
14
20
  requirement: !ruby/object:Gem::Requirement
15
21
  requirements:
16
- - - "~>"
22
+ - - ~>
17
23
  - !ruby/object:Gem::Version
18
- version: '1.0'
19
- name: logstash-core-plugin-api
24
+ version: '2.0'
20
25
  prerelease: false
21
26
  type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: onstomp
22
29
  version_requirements: !ruby/object:Gem::Requirement
23
30
  requirements:
24
- - - "~>"
31
+ - - '>='
25
32
  - !ruby/object:Gem::Version
26
- version: '1.0'
27
- - !ruby/object:Gem::Dependency
33
+ version: '0'
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
30
- - - ">="
36
+ - - '>='
31
37
  - !ruby/object:Gem::Version
32
38
  version: '0'
33
- name: onstomp
34
39
  prerelease: false
35
40
  type: :runtime
41
+ - !ruby/object:Gem::Dependency
42
+ name: logstash-devutils
36
43
  version_requirements: !ruby/object:Gem::Requirement
37
44
  requirements:
38
- - - ">="
45
+ - - '>='
39
46
  - !ruby/object:Gem::Version
40
47
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
48
  requirement: !ruby/object:Gem::Requirement
43
49
  requirements:
44
- - - ">="
50
+ - - '>='
45
51
  - !ruby/object:Gem::Version
46
52
  version: '0'
47
- name: logstash-devutils
48
53
  prerelease: false
49
54
  type: :development
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
55
  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
56
56
  email: info@elastic.co
57
57
  executables: []
@@ -79,12 +79,12 @@ require_paths:
79
79
  - lib
80
80
  required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - '>='
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []