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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eff46dce19ce289664364fdb1d47dbb79ce30b62a55646c9210fad216f1f0bb
4
- data.tar.gz: 6e4944bef0a9b9da0ab0cf985148b9866884753f53d14b408b770cf8e97b6ad6
3
+ metadata.gz: c982091a8f87efc5ed66124586d93bfff189d401022059b0e9eea04b7a476983
4
+ data.tar.gz: 0d268422fadbc597010b0e621147b0647ef14e131c87b1c68c1a0285159c7bcf
5
5
  SHA512:
6
- metadata.gz: 2b0d285df7cdd66b59173c690e2105af45074a38db77fa7bf564bcb8f827285f5b2547e79f41fc86473b09e9460143a91d23bb42ab637d227a63402a6bbd2cc3
7
- data.tar.gz: 9361cc2a7f9e51c22f0dfe21bf944989dc19b8a31ecfd22e69e5b6907137626a70738d52d32fb9588d8bcdea8d3b55cb8597e3444cc8576bb4093ad79fc736a1
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
@@ -56,7 +56,7 @@ filter {
56
56
  }
57
57
 
58
58
  mutate {
59
- rename => ["shortHostname", "hostname" ]
59
+ rename => {"shortHostname" => "hostname"}
60
60
  }
61
61
  }
62
62
  -----
@@ -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.agent.configuration.invalid_plugin_register",
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.agent.configuration.invalid_plugin_register",
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.1'
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"
@@ -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 LogStash::ConfigurationError
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 LogStash::ConfigurationError
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.1
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-03-10 00:00:00.000000000 Z
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