logstash-filter-throttle 2.0.4 → 3.0.0

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: a80116e6db54e5e2a484e80748208d3ec47e7aa8
4
- data.tar.gz: 2f08fbea4f012a850e7738ae3b0e95a741a8b147
3
+ metadata.gz: 5e66cde3b7bbdbf254f3032cf1b23b52c3a1fc3e
4
+ data.tar.gz: 93f6d98b7d1dc360a86c340f1723ea051dbde418
5
5
  SHA512:
6
- metadata.gz: 11cdd7b88854e9b3ecb9bbf496ea15a8357adbe1a9666778ac1640125133039b2760b498f91a9cdba5b6b4e59b07a0ff34c267969e9303ff373a93390d6580b8
7
- data.tar.gz: ded74a4dc2789be0fde9ed7743ad67d43e63519c74ba7d487ff6509746c9409ce6d3ae1a13412d42cc798b8563eae215cd1e439c844fa13ab78f27a8f606cf65
6
+ metadata.gz: 5b8103e27eed601fcd3e92a87891389d7fe80b298896fa8d9c3a6d58afafe87b75755e4b1e813c792926a847c78f79807bbb0ba3b01963df48d42da590975ae4
7
+ data.tar.gz: a48138cc625d08a176d4ca23b753eca229eb85b5eb24183b2ff351a2e903e031ef31b0a85d334103d8a4472c6442bfca4f2f5352db5caa4902163a3fddadb5dc
@@ -1,3 +1,5 @@
1
+ ## 3.0.0
2
+ - 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
1
3
  # 2.0.4
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.3
data/Gemfile CHANGED
@@ -1,2 +1,4 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
3
+ # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
+ gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,7 +1,6 @@
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-throttle-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-throttle-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-filter-throttle.svg)](https://travis-ci.org/logstash-plugins/logstash-filter-throttle)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
55
  ```
57
56
  - Install plugin
58
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
59
62
  bin/plugin install --no-verify
63
+
60
64
  ```
61
65
  - Run Logstash with your plugin
62
66
  ```sh
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
74
78
  ```
75
79
  - Install the plugin from the Logstash home
76
80
  ```sh
77
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
78
87
  ```
79
88
  - Start Logstash and proceed to test the plugin
80
89
 
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-throttle'
4
- s.version = '2.0.4'
4
+ s.version = '3.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The throttle filter is for throttling the number of events received."
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"
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"
8
8
  s.authors = ["Elastic"]
9
9
  s.email = 'info@elastic.co'
10
10
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
@@ -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-plugin-api", "~> 1.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
24
24
 
25
25
  s.add_development_dependency 'logstash-devutils'
26
26
  end
@@ -20,7 +20,7 @@ describe LogStash::Filters::Throttle do
20
20
  }
21
21
 
22
22
  sample event do
23
- insist { subject["tags"] } == nil
23
+ insist { subject.get("tags") } == nil
24
24
  end
25
25
  end
26
26
 
@@ -42,7 +42,7 @@ describe LogStash::Filters::Throttle do
42
42
  }
43
43
 
44
44
  sample event do
45
- insist { subject["tags"] } == [ "throttled" ]
45
+ insist { subject.get("tags") } == [ "throttled" ]
46
46
  end
47
47
  end
48
48
 
@@ -66,8 +66,8 @@ describe LogStash::Filters::Throttle do
66
66
  }]
67
67
 
68
68
  sample events do
69
- insist { subject[0]["tags"] } == [ "throttled" ]
70
- insist { subject[1]["tags"] } == nil
69
+ insist { subject[0].get("tags") } == [ "throttled" ]
70
+ insist { subject[1].get("tags") } == nil
71
71
  end
72
72
  end
73
73
 
@@ -95,10 +95,10 @@ describe LogStash::Filters::Throttle do
95
95
  }]
96
96
 
97
97
  sample events do
98
- insist { subject[0]["tags"] } == [ "throttled" ]
99
- insist { subject[1]["tags"] } == nil
100
- insist { subject[2]["tags"] } == nil
101
- insist { subject[3]["tags"] } == [ "throttled" ]
98
+ insist { subject[0].get("tags") } == [ "throttled" ]
99
+ insist { subject[1].get("tags") } == nil
100
+ insist { subject[2].get("tags") } == nil
101
+ insist { subject[3].get("tags") } == [ "throttled" ]
102
102
  end
103
103
  end
104
104
 
@@ -126,7 +126,7 @@ describe LogStash::Filters::Throttle do
126
126
 
127
127
  sample events do
128
128
  subject.each { | s |
129
- insist { s["tags"] } == nil
129
+ insist { s.get("tags") } == nil
130
130
  }
131
131
  end
132
132
  end
@@ -159,7 +159,7 @@ describe LogStash::Filters::Throttle do
159
159
 
160
160
  sample events do
161
161
  subject.each { | s |
162
- insist { s["tags"] } == nil
162
+ insist { s.get("tags") } == nil
163
163
  }
164
164
  end
165
165
  end
@@ -188,7 +188,7 @@ describe LogStash::Filters::Throttle do
188
188
  }]
189
189
 
190
190
  sample events do
191
- insist { subject[3]["tags"] } == nil
191
+ insist { subject[3].get("tags") } == nil
192
192
  end
193
193
  end
194
194
 
metadata CHANGED
@@ -1,44 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-throttle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: logstash-core-plugin-api
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
- version: '1.0'
19
- name: logstash-core-plugin-api
20
- prerelease: false
19
+ version: '2.0'
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: logstash-devutils
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
- name: logstash-devutils
34
- prerelease: false
35
34
  type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
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
41
+ description: This gem is a Logstash plugin required to be installed on top of the
42
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
43
+ gem is not a stand-alone program
42
44
  email: info@elastic.co
43
45
  executables: []
44
46
  extensions: []
@@ -59,7 +61,7 @@ licenses:
59
61
  metadata:
60
62
  logstash_plugin: 'true'
61
63
  logstash_group: filter
62
- post_install_message:
64
+ post_install_message:
63
65
  rdoc_options: []
64
66
  require_paths:
65
67
  - lib
@@ -74,9 +76,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
76
  - !ruby/object:Gem::Version
75
77
  version: '0'
76
78
  requirements: []
77
- rubyforge_project:
78
- rubygems_version: 2.4.8
79
- signing_key:
79
+ rubyforge_project:
80
+ rubygems_version: 2.5.1
81
+ signing_key:
80
82
  specification_version: 4
81
83
  summary: The throttle filter is for throttling the number of events received.
82
84
  test_files: