logstash-output-courier 1.8.4 → 1.9.0

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: e595eb2a39c35cbc7adbc02bcd2b4cfc91ff0bcd
4
- data.tar.gz: 094f39943082553b8ae187442a451ffb8e6eeee6
3
+ metadata.gz: 85f196f3c2bfaf0d70c4488b408b0e5de2259c08
4
+ data.tar.gz: 9b788878b0e761a8c1ccaec9b041ec6f1dc9aa9d
5
5
  SHA512:
6
- metadata.gz: 0902103b8e6ee24af93f68c619bbb8e574a18d2aae10a233755ab1b6c9fdadbf34595c8b1a155e6ddd397ead81fbfe38b9c71e49adc148e0623272fcb761d48f
7
- data.tar.gz: 51826d481ae3ee6b250af896c9769b9e617fddd30f5ed41c3cf99a1697c95bd305a22f026890dd65a73c2363890e52e234b4c85bed3026c8b4dc8df81dca1595
6
+ metadata.gz: 4db94b1617190cf4c1b8477f9acbf23bb98e7093da0d9e9741acfa962e778ef365cbb238ee6e8f6876f08366eeca88369c7397cb13c989e2bdf1ba29610b0f50
7
+ data.tar.gz: 9265e5f48d897d893a9551c30da5bfbaa0cb72256511262a15751c37fd920f04a26138a033f0899fe5398d9d4ad80d5cb79c40c5320e30c43178b4e5f159527e
@@ -66,14 +66,21 @@ module LogStash
66
66
 
67
67
  def receive(event)
68
68
  return unless output?(event)
69
- if event == LogStash::SHUTDOWN
70
- @client.shutdown
71
- finished
72
- return
73
- end
74
69
  @client.publish event.to_hash
75
70
  end
76
71
 
72
+ # Logstash < 2.0.0 shutdown
73
+ def teardown
74
+ close
75
+ end
76
+
77
+ # Logstash >= 2.0.0 shutdown
78
+ def close
79
+ @client.shutdown
80
+ finished
81
+ nil
82
+ end
83
+
77
84
  private
78
85
 
79
86
  def options
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-courier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-08 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core
@@ -34,14 +34,14 @@ dependencies:
34
34
  name: log-courier
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '='
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 1.8.3
39
+ version: '1.9'
40
40
  requirement: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - '='
42
+ - - "~>"
43
43
  - !ruby/object:Gem::Version
44
- version: 1.8.3
44
+ version: '1.9'
45
45
  prerelease: false
46
46
  type: :runtime
47
47
  description: Courier Output Logstash Plugin