logstash-input-redis 2.0.5 → 2.0.6

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: 22b3c005ab16c8deb568f638544803601c43742e
4
- data.tar.gz: deaba88a346f3e17b48f33a72ce3b6de3ba72493
3
+ metadata.gz: 564f6e394e2466bc13815871cf15db38b1237688
4
+ data.tar.gz: df81825e4c313901b68c150bd524d54a86b63bc2
5
5
  SHA512:
6
- metadata.gz: 9864fa5f906a49dbf0e0084429cd59806c920d7d3bc0ff9811ea606ce5278886bbec9cb86afff7f13b9192037227248ce72e8d39abd8358b69ed2e1931fdb97e
7
- data.tar.gz: 24860ded2eaf35176b9334b0479781b358e2188051c01cca4e74d1111ac000543f1b6fdc87178a63b4fc565d79c3f585794aca1dfcac97bdc56665daa205fef6
6
+ metadata.gz: c707ab288fabc83959f958afb3ea084e57e06ba6d17bf066ebac95ddfcebe0c3fefc474266d8798c15b8225a4335b58348c60914f6a93bd416e1b4e09bd52074
7
+ data.tar.gz: 080b14241eee6b06b29bac7c3b9dcd053b2997d996b5491a505ce1369a4d7bda5d82413008ad99cc8240a7e137a1750e3fdbd2cdf908c488c234c70b50f01bf2
@@ -1,3 +1,5 @@
1
+ # 2.0.6
2
+ - make integration tests more reliable because of occasional travis failures
1
3
  # 2.0.5
2
4
  - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
5
  # 2.0.4
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-redis'
4
- s.version = '2.0.5'
4
+ s.version = '2.0.6'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This input will read events from a Redis instance"
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"
@@ -215,26 +215,30 @@ describe LogStash::Inputs::Redis do
215
215
 
216
216
  def close_thread(inst, rt)
217
217
  Thread.new(inst, rt) do |subj, runner|
218
- sleep 0.4 # allow the messages through
218
+ # block for the messages
219
+ e1 = accumulator.pop
220
+ e2 = accumulator.pop
221
+ # put em back for the tests
222
+ accumulator.push(e1)
223
+ accumulator.push(e2)
219
224
  runner.raise(LogStash::ShutdownSignal)
220
225
  subj.close
221
226
  end
222
227
  end
223
228
 
229
+ let(:accumulator) { Queue.new }
230
+
224
231
  let(:instance) do
225
232
  inst = described_class.new(cfg)
226
233
  inst.register
227
234
  inst
228
235
  end
229
236
 
230
- before do
237
+ before(:example, type: :mocked) do
231
238
  subject.register
232
239
  subject.use_redis(redis)
233
240
  allow(connection).to receive(:is_a?).and_return(true)
234
241
  allow(redis).to receive(:client).and_return(connection)
235
- end
236
-
237
- before(:example, type: :mocked) do
238
242
  expect(redis).to receive(:connected?).and_return(connected.last)
239
243
  expect(connection).to receive(:unsubscribe)
240
244
 
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-04-07 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: '1.0'
14
20
  requirement: !ruby/object:Gem::Requirement
15
21
  requirements:
16
- - - "~>"
22
+ - - ~>
17
23
  - !ruby/object:Gem::Version
18
24
  version: '1.0'
19
- name: logstash-core-plugin-api
20
25
  prerelease: false
21
26
  type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: logstash-codec-json
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: logstash-codec-json
34
39
  prerelease: false
35
40
  type: :runtime
41
+ - !ruby/object:Gem::Dependency
42
+ name: redis
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: redis
48
53
  prerelease: false
49
54
  type: :runtime
55
+ - !ruby/object:Gem::Dependency
56
+ name: logstash-devutils
50
57
  version_requirements: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ">="
59
+ - - '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
62
  requirement: !ruby/object:Gem::Requirement
57
63
  requirements:
58
- - - ">="
64
+ - - '>='
59
65
  - !ruby/object:Gem::Version
60
66
  version: '0'
61
- name: logstash-devutils
62
67
  prerelease: false
63
68
  type: :development
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
69
  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
70
70
  email: info@elastic.co
71
71
  executables: []
@@ -93,12 +93,12 @@ require_paths:
93
93
  - lib
94
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ">="
96
+ - - '>='
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []