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: 6d89b1491b157c8b9f842f0307ad3aea8c409d23
4
- data.tar.gz: be5c959b4adf357587a4fc3b8f8a917fb4d7a3c6
3
+ metadata.gz: 2bae6ca75d104c326be6ced9c85897fbe3e4f727
4
+ data.tar.gz: 39d52c0c1faadc5bd940c521143c3409ff8f6692
5
5
  SHA512:
6
- metadata.gz: ad4d6207506324b9645ff6a677d008068e2ba54bd0ff3cb30c98cb7e03bacaedc497c87d0be201e29384b30aa5e716548ca06a2f25bdcb302b605770c34e3ec1
7
- data.tar.gz: 1a2128dbcb97c957cac70c8a737086d908d8a822c1b50f6537a7bd805eeb36b5fc14f2dc268fc401282278d8c0e8f0b0e8a4dd33d4f2eedb989f7d7e54764687
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
@@ -15,6 +15,7 @@ end
15
15
  require "logstash/logging"
16
16
  require "logstash/environment"
17
17
  require "logstash/devutils/rspec/logstash_helpers"
18
+ require "logstash/devutils/rspec/shared_examples"
18
19
  require "insist"
19
20
 
20
21
  $TESTING = true
@@ -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.15"
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.15
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-06-17 00:00:00.000000000 Z
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: 3.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: 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: 1.0.0
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: '0'
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.0.20
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.4.8
162
+ rubygems_version: 2.2.2
148
163
  signing_key:
149
164
  specification_version: 4
150
165
  summary: logstash-devutils