logstash-filter-sleep 3.0.2 → 3.0.3
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 +4 -4
- data/CHANGELOG.md +15 -8
- data/lib/logstash/filters/sleep.rb +1 -1
- data/logstash-filter-sleep.gemspec +1 -1
- data/spec/filters/sleep_spec.rb +9 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 557f29612aab142f21baed492f22ff142bda0ff3
|
4
|
+
data.tar.gz: 24a7d91dbc4769ca829332b9e7f827bb76765366
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40f691b559423b76048d6abb5a12611ca34ffb54176f2f7e1f7f55017b7520ecfb107784dc11cf0222380b82039204680f1725d47219ab4e5a0bc53dd977fa66
|
7
|
+
data.tar.gz: 1ff75fb5a927dc3dcca4347275c838426ebaa6c96292dad47831842181d7cee610e4aeffe10254851d2849cc3ef708c61d32d91f15b07b413c028eb6ce4411ca
|
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,23 @@
|
|
1
|
+
## 3.0.3
|
2
|
+
- Fix bug causing crash when `every` is set. (#5)
|
3
|
+
|
1
4
|
## 3.0.2
|
2
5
|
- Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
|
3
6
|
|
4
7
|
## 3.0.1
|
5
|
-
|
8
|
+
- internal: Republish all the gems under jruby.
|
9
|
+
|
6
10
|
## 3.0.0
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
11
|
+
- internal,deps: Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
|
12
|
+
|
13
|
+
## 2.0.4
|
14
|
+
- internal,deps: Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
15
|
+
|
16
|
+
## 2.0.3
|
17
|
+
- internal,deps: New dependency requirements for logstash-core for the 5.0 release
|
18
|
+
|
12
19
|
## 2.0.0
|
13
|
-
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
20
|
+
- internal: Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
14
21
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
15
|
-
- Dependency on logstash-core update to 2.0
|
22
|
+
- internal,deps: Dependency on logstash-core update to 2.0
|
16
23
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-sleep'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Sleep a given amount of time"
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|
data/spec/filters/sleep_spec.rb
CHANGED
@@ -19,7 +19,6 @@ describe LogStash::Filters::Sleep do
|
|
19
19
|
describe "sleep for a given time" do
|
20
20
|
|
21
21
|
let(:time) { 5 }
|
22
|
-
|
23
22
|
before(:each) do
|
24
23
|
subject.register
|
25
24
|
end
|
@@ -30,7 +29,6 @@ describe LogStash::Filters::Sleep do
|
|
30
29
|
end
|
31
30
|
|
32
31
|
context "when using every N events" do
|
33
|
-
|
34
32
|
let(:messages) { 20 }
|
35
33
|
let(:every) { 5 }
|
36
34
|
subject { LogStash::Filters::Sleep.new("time" => time, "every" => every ) }
|
@@ -46,6 +44,15 @@ describe LogStash::Filters::Sleep do
|
|
46
44
|
end
|
47
45
|
end
|
48
46
|
|
47
|
+
context "and `every` is given as a string" do
|
48
|
+
let(:every) { "5" }
|
49
|
+
it "should sleep for N seconds and continue" do
|
50
|
+
expect(subject).to receive(:sleep).with(5).exactly(4).times
|
51
|
+
messages.times do
|
52
|
+
subject.filter(event)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
49
56
|
end
|
50
57
|
end
|
51
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-sleep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.4.8
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Sleep a given amount of time
|