logstash-devutils 0.0.15-java → 0.0.16-java
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bae6ca75d104c326be6ced9c85897fbe3e4f727
|
4
|
+
data.tar.gz: 39d52c0c1faadc5bd940c521143c3409ff8f6692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20aa78b8ae9f08b11999cd9443ac9d3a018999438f8c2b782eb767f05cbc11e4934961b25fdc1129cf47d7e67d576b34e8da3a2c3f0a852728e1e904efa60f72
|
7
|
+
data.tar.gz: 743aeb725af75023d0b75d7beb44fa962093703fc4c2bcd6453868eaccb726aefe7d19c5ff346f44c77d85b72541bd452574df264a3b3678bdd9d2598817af6c
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'rspec/wait'
|
2
|
+
|
3
|
+
RSpec.shared_examples "an interruptible input plugin" do
|
4
|
+
describe "#stop" do
|
5
|
+
let(:queue) { SizedQueue.new(20) }
|
6
|
+
subject { described_class.new(config) }
|
7
|
+
before(:each) { subject.register }
|
8
|
+
|
9
|
+
it "returns from run" do
|
10
|
+
consumer_thread = Thread.new(queue) { |queue| loop { queue.pop } }
|
11
|
+
plugin_thread = Thread.new(subject, queue) { |subject, queue| subject.run(queue) }
|
12
|
+
# the run method is a long lived one, so it should still be running after "a bit"
|
13
|
+
sleep 0.5
|
14
|
+
expect(plugin_thread).to be_alive
|
15
|
+
# now let's actually stop the plugin
|
16
|
+
subject.do_stop
|
17
|
+
# why 3? 2 is not enough, 4 is too much..
|
18
|
+
wait(3).for { plugin_thread }.to_not be_alive
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/logstash-devutils.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
files = %x{git ls-files}.split("\n")
|
7
7
|
|
8
8
|
spec.name = "logstash-devutils"
|
9
|
-
spec.version = "0.0.
|
9
|
+
spec.version = "0.0.16"
|
10
10
|
spec.summary = "logstash-devutils"
|
11
11
|
spec.description = "logstash-devutils"
|
12
12
|
spec.license = "Apache 2.0"
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.homepage = "https://github.com/elasticsearch/logstash-devutils"
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "rspec", "~> 3.1.0" # MIT License
|
22
|
+
spec.add_runtime_dependency "rspec-wait" # MIT License
|
22
23
|
spec.platform = "java"
|
23
24
|
spec.add_runtime_dependency "rake" # MIT License
|
24
25
|
spec.add_runtime_dependency "gem_publisher" # MIT License
|
metadata
CHANGED
@@ -1,113 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-devutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.1.0
|
14
20
|
requirement: !ruby/object:Gem::Requirement
|
15
21
|
requirements:
|
16
22
|
- - ~>
|
17
23
|
- !ruby/object:Gem::Version
|
18
24
|
version: 3.1.0
|
19
|
-
name: rspec
|
20
25
|
prerelease: false
|
21
26
|
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-wait
|
22
29
|
version_requirements: !ruby/object:Gem::Requirement
|
23
30
|
requirements:
|
24
|
-
- -
|
31
|
+
- - '>='
|
25
32
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
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: rake
|
34
39
|
prerelease: false
|
35
40
|
type: :runtime
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
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: gem_publisher
|
48
53
|
prerelease: false
|
49
54
|
type: :runtime
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: gem_publisher
|
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: minitar
|
62
67
|
prerelease: false
|
63
68
|
type: :runtime
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitar
|
64
71
|
version_requirements: !ruby/object:Gem::Requirement
|
65
72
|
requirements:
|
66
73
|
- - '>='
|
67
74
|
- !ruby/object:Gem::Version
|
68
75
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
76
|
requirement: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
|
-
- - '
|
78
|
+
- - '>='
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
75
|
-
name: insist
|
80
|
+
version: '0'
|
76
81
|
prerelease: false
|
77
82
|
type: :runtime
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: insist
|
78
85
|
version_requirements: !ruby/object:Gem::Requirement
|
79
86
|
requirements:
|
80
87
|
- - '='
|
81
88
|
- !ruby/object:Gem::Version
|
82
89
|
version: 1.0.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
90
|
requirement: !ruby/object:Gem::Requirement
|
85
91
|
requirements:
|
86
|
-
- - '
|
92
|
+
- - '='
|
87
93
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
89
|
-
name: kramdown
|
94
|
+
version: 1.0.0
|
90
95
|
prerelease: false
|
91
96
|
type: :runtime
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: kramdown
|
92
99
|
version_requirements: !ruby/object:Gem::Requirement
|
93
100
|
requirements:
|
94
101
|
- - '>='
|
95
102
|
- !ruby/object:Gem::Version
|
96
103
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
104
|
requirement: !ruby/object:Gem::Requirement
|
99
105
|
requirements:
|
100
106
|
- - '>='
|
101
107
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0
|
103
|
-
name: stud
|
108
|
+
version: '0'
|
104
109
|
prerelease: false
|
105
110
|
type: :runtime
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: stud
|
106
113
|
version_requirements: !ruby/object:Gem::Requirement
|
107
114
|
requirements:
|
108
115
|
- - '>='
|
109
116
|
- !ruby/object:Gem::Version
|
110
117
|
version: 0.0.20
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 0.0.20
|
123
|
+
prerelease: false
|
124
|
+
type: :runtime
|
111
125
|
description: logstash-devutils
|
112
126
|
email:
|
113
127
|
- jls@semicomplete.com
|
@@ -121,6 +135,7 @@ files:
|
|
121
135
|
- lib/logstash/devutils/rake/publish.rake
|
122
136
|
- lib/logstash/devutils/rake/vendor.rake
|
123
137
|
- lib/logstash/devutils/rspec/logstash_helpers.rb
|
138
|
+
- lib/logstash/devutils/rspec/shared_examples.rb
|
124
139
|
- lib/logstash/devutils/rspec/spec_helper.rb
|
125
140
|
- logstash-devutils.gemspec
|
126
141
|
homepage: https://github.com/elasticsearch/logstash-devutils
|
@@ -144,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
159
|
version: '0'
|
145
160
|
requirements: []
|
146
161
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.2.2
|
148
163
|
signing_key:
|
149
164
|
specification_version: 4
|
150
165
|
summary: logstash-devutils
|