logstash-filter-drop 2.0.2 → 2.0.4

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: 0c51824e8a7b77d66f262cc2c16012671ac2f144
4
- data.tar.gz: ec5c24985cfc0a0f65f8b25cba8ff80ddfeaad86
3
+ metadata.gz: 875371e6fd4e794ace5392c58cc48dd7209afeed
4
+ data.tar.gz: dfa9e421656000bbdc1a24b60c740039ade8fff5
5
5
  SHA512:
6
- metadata.gz: 7cf12a19ef999f73626bb9a1cda224c37c813708a4cba70b799edc28e2473f4234a22c6d9a13eee3d49d53be218da3f6b4613d58e9e1e35c6e1f0930f084af23
7
- data.tar.gz: 96201abf9f18cddf34748308be21bacc180a8dbff90b4f2d21283bee5509fe38cc724234e34b08caa9a41abf3a9ffe915cadd474c8539f58cdaf1ca38d09b7ef
6
+ metadata.gz: 1229ad573e9723cae1094bd3c63edea3955aceb2eadde4a174c7904d8885b490e7e0c89e0fdb9f6724e59c5578c338472104a1ab059138a6439b80fd1ca340e4
7
+ data.tar.gz: 69706e72c780838efdb416a6edc19542cb319d5a749139f8606183c69caf50484528c2c7198979737dd1f367d7106dd32744ff1be01311378e3bbdcfaa022f80
@@ -1,3 +1,7 @@
1
+ # 2.0.4
2
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
+ # 2.0.3
4
+ - New dependency requirements for logstash-core for the 5.0 release
1
5
  ## 2.0.0
2
6
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
7
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Logstash Plugin
2
2
 
3
+ [![Build
4
+ Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-drop-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-drop-unit/)
5
+
3
6
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
7
 
5
8
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-drop'
4
- s.version = '2.0.2'
4
+ s.version = '2.0.4'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Drops everything that gets to this filter."
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"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core", ">= 2.0.0.beta2", "< 3.0.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
24
24
 
25
25
  s.add_development_dependency 'logstash-devutils'
26
26
  end
@@ -3,28 +3,29 @@ require "logstash/filters/drop"
3
3
 
4
4
  describe LogStash::Filters::Drop do
5
5
 
6
+ let(:config) { Hash.new }
7
+ subject { described_class.new(config) }
8
+
9
+ let(:message) { "hello" }
10
+ let(:event) { LogStash::Event.new("message" => message) }
11
+
6
12
  describe "drop the event" do
7
- config <<-CONFIG
8
- filter {
9
- drop { }
10
- }
11
- CONFIG
12
-
13
- sample "hello" do
14
- insist { subject }.nil?
13
+
14
+ it "drops the event" do
15
+ subject.register
16
+ subject.filter(event)
17
+ expect(event).to be_cancelled
15
18
  end
16
- end
17
19
 
18
- describe "drop the event" do
19
- config <<-CONFIG
20
- filter {
21
- drop { percentage => 0 }
22
- }
23
- CONFIG
24
-
25
- sample "hello" do
26
- reject { subject }.nil?
20
+ context "when using percentage" do
21
+ let(:config) { { "percentage" => 0 }}
22
+
23
+ it "drops the event" do
24
+ subject.register
25
+ subject.filter(event)
26
+ expect(event).not_to be_cancelled
27
+ end
28
+
27
29
  end
28
30
  end
29
-
30
31
  end
metadata CHANGED
@@ -1,39 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-drop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - '>='
16
+ - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 2.0.0.beta2
19
- - - <
20
- - !ruby/object:Gem::Version
21
- version: 3.0.0
22
- name: logstash-core
18
+ version: '1.0'
19
+ name: logstash-core-plugin-api
23
20
  prerelease: false
24
21
  type: :runtime
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - '>='
28
- - !ruby/object:Gem::Version
29
- version: 2.0.0.beta2
30
- - - <
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 3.0.0
26
+ version: '1.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
- - - '>='
30
+ - - ">="
37
31
  - !ruby/object:Gem::Version
38
32
  version: '0'
39
33
  name: logstash-devutils
@@ -41,7 +35,7 @@ dependencies:
41
35
  type: :development
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
- - - '>='
38
+ - - ">="
45
39
  - !ruby/object:Gem::Version
46
40
  version: '0'
47
41
  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
@@ -71,12 +65,12 @@ require_paths:
71
65
  - lib
72
66
  required_ruby_version: !ruby/object:Gem::Requirement
73
67
  requirements:
74
- - - '>='
68
+ - - ">="
75
69
  - !ruby/object:Gem::Version
76
70
  version: '0'
77
71
  required_rubygems_version: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - '>='
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
75
  version: '0'
82
76
  requirements: []