logstash-filter-mutate 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/index.asciidoc +1 -1
- data/lib/logstash/filters/mutate.rb +2 -2
- data/logstash-filter-mutate.gemspec +1 -1
- data/spec/filters/mutate_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c982091a8f87efc5ed66124586d93bfff189d401022059b0e9eea04b7a476983
|
4
|
+
data.tar.gz: 0d268422fadbc597010b0e621147b0647ef14e131c87b1c68c1a0285159c7bcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b726d7f17945dd1cf511c8291112c7686ba21a114e85d17ecd0bd5810c14fa5b4cb3a0f3f87ddd43c8dea3b48f22598a18e9640b5e4e37ccc02096bb45db0c61
|
7
|
+
data.tar.gz: 7d7639cc43f5d5dfa47b9cdbbd642f84a6cabf4a81ab73b4a056f8b7ae3ac60f7b04630a9ca125ee4e4e6daae1a2eebc9f285d2c59a195126cb6b879d8222046
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 3.5.2
|
2
|
+
- Fix: ensure that when an error occurs during registration, we use the correct i18n key to propagate the error message in a useful manner [#154](https://github.com/logstash-plugins/logstash-filter-mutate/pull/154)
|
3
|
+
|
1
4
|
## 3.5.1
|
2
5
|
- Fix: removed a minor optimization in case-conversion helpers that could result in a race condition in very rare and specific situations [#151](https://github.com/logstash-plugins/logstash-filter-mutate/pull/151)
|
3
6
|
|
data/docs/index.asciidoc
CHANGED
@@ -220,7 +220,7 @@ class LogStash::Filters::Mutate < LogStash::Filters::Base
|
|
220
220
|
@convert.nil? or @convert.each do |field, type|
|
221
221
|
if !valid_conversions.include?(type)
|
222
222
|
raise LogStash::ConfigurationError, I18n.t(
|
223
|
-
"logstash.
|
223
|
+
"logstash.runner.configuration.invalid_plugin_register",
|
224
224
|
:plugin => "filter",
|
225
225
|
:type => "mutate",
|
226
226
|
:error => "Invalid conversion type '#{type}', expected one of '#{valid_conversions.join(',')}'"
|
@@ -232,7 +232,7 @@ class LogStash::Filters::Mutate < LogStash::Filters::Base
|
|
232
232
|
@gsub.nil? or @gsub.each_slice(3) do |field, needle, replacement|
|
233
233
|
if [field, needle, replacement].any? {|n| n.nil?}
|
234
234
|
raise LogStash::ConfigurationError, I18n.t(
|
235
|
-
"logstash.
|
235
|
+
"logstash.runner.configuration.invalid_plugin_register",
|
236
236
|
:plugin => "filter",
|
237
237
|
:type => "mutate",
|
238
238
|
:error => "Invalid gsub configuration #{[field, needle, replacement]}. gsub requires 3 non-nil elements per config entry"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-mutate'
|
4
|
-
s.version = '3.5.
|
4
|
+
s.version = '3.5.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Performs mutations on fields"
|
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/mutate_spec.rb
CHANGED
@@ -321,7 +321,7 @@ describe LogStash::Filters::Mutate do
|
|
321
321
|
CONFIG
|
322
322
|
|
323
323
|
sample "not_really_important" do
|
324
|
-
expect {subject}.to raise_error
|
324
|
+
expect {subject}.to raise_error(LogStash::ConfigurationError, /Invalid conversion type/)
|
325
325
|
end
|
326
326
|
end
|
327
327
|
describe "invalid gsub triad should raise a configuration error" do
|
@@ -334,7 +334,7 @@ describe LogStash::Filters::Mutate do
|
|
334
334
|
CONFIG
|
335
335
|
|
336
336
|
sample "not_really_important" do
|
337
|
-
expect {subject}.to raise_error
|
337
|
+
expect {subject}.to raise_error(LogStash::ConfigurationError, /Invalid gsub configuration/)
|
338
338
|
end
|
339
339
|
end
|
340
340
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-mutate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|