logstash-filter-translate 3.0.0 → 3.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acfc6640bfba3a33d089e25dabcb4e80af6225f4
4
- data.tar.gz: 220ed14bfd31c28b5084ae926ffc9f54667bbd52
3
+ metadata.gz: a88523429ce3660b177179da29ca3817bbe0e4fd
4
+ data.tar.gz: 69e3b1a02058d4876b2b2e8a3104f5d346ed81d0
5
5
  SHA512:
6
- metadata.gz: e536664483feac265b01e0dd723d5cf8de7a8fef4a64a2fd782211c399aeba0e2d7bcc5c086a1161ee03b004be7cecde9a907a4fee11b61706db4c66d53f7937
7
- data.tar.gz: 3c43650e40ea637c743306d4204b7b2d70772eafd97fe0443a1972b90f59f7e186d59af9b0d348ae3ee85924cb12e692208e20c5912c4c8682e7f129c274828e
6
+ metadata.gz: 27cccb3185892156caac4e68bbbaa044837284505d33f0ca1b42b4a1b7bef478cda2927b86f03f4c1e62cafe6fc768050a9d8a2ce6a8bc11e70281ecb89eee57
7
+ data.tar.gz: 2938b6b48d5dc0159d9fe4236849b84bb8fcdf3878cf487324785881c503ca9d680b33375121cb6188ceb9fde515604e9e50f90b2d1d38ab3b65367ded3f788e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 3.0.1
2
+ - Docs: Fixed asciidoc formatting problem so info about supported dictionary file types renders
3
+
1
4
  # 3.0.0
2
5
  - Breaking: Updated plugin to use new Java Event APIs
3
6
 
@@ -7,9 +7,9 @@ require "csv"
7
7
  java_import 'java.util.concurrent.locks.ReentrantReadWriteLock'
8
8
 
9
9
 
10
- # A general search and replace tool which uses a configured hash
10
+ # A general search and replace tool that uses a configured hash
11
11
  # and/or a file to determine replacement values. Currently supported are
12
- # YAML, JSON and CSV files.
12
+ # YAML, JSON, and CSV files.
13
13
  #
14
14
  # The dictionary entries can be specified in one of two ways: First,
15
15
  # the `dictionary` configuration item may contain a hash representing
@@ -45,7 +45,8 @@ class LogStash::Filters::Translate < LogStash::Filters::Base
45
45
  config :override, :validate => :boolean, :default => false
46
46
 
47
47
  # The dictionary to use for translation, when specified in the logstash filter
48
- # configuration item (i.e. do not use the `@dictionary_path` file)
48
+ # configuration item (i.e. do not use the `@dictionary_path` file).
49
+ #
49
50
  # Example:
50
51
  # [source,ruby]
51
52
  # filter {
@@ -56,11 +57,12 @@ class LogStash::Filters::Translate < LogStash::Filters::Base
56
57
  # "old version", "new version" ]
57
58
  # }
58
59
  # }
59
- # NOTE: it is an error to specify both `dictionary` and `dictionary_path`
60
+ #
61
+ # NOTE: It is an error to specify both `dictionary` and `dictionary_path`.
60
62
  config :dictionary, :validate => :hash, :default => {}
61
63
 
62
64
  # The full path of the external dictionary file. The format of the table
63
- # should be a standard YAML, JSON or CSV. Make sure you specify any integer-based keys
65
+ # should be a standard YAML, JSON, or CSV. Make sure you specify any integer-based keys
64
66
  # in quotes. For example, the YAML file should look something like this:
65
67
  # [source,ruby]
66
68
  # "100": Continue
@@ -68,12 +70,13 @@ class LogStash::Filters::Translate < LogStash::Filters::Base
68
70
  # merci: gracias
69
71
  # old version: new version
70
72
  #
71
- # NOTE: it is an error to specify both `dictionary` and `dictionary_path`
72
- # NOTE: Currently supported formats are YAML, JSON and CSV, format selection is
73
- # based on the file extension, json for JSON, (yaml|yml) for YAML and csv for CSV.
74
- # NOTE: The JSON format only supports simple key/value, unnested objects. The CSV
75
- # format expects exactly two columns with the first serving as the original text,
76
- # the second column as the replacement
73
+ # NOTE: it is an error to specify both `dictionary` and `dictionary_path`.
74
+ #
75
+ # The currently supported formats are YAML, JSON, and CSV. Format selection is
76
+ # based on the file extension: `json` for JSON, `yaml` or `yml` for YAML, and
77
+ # `csv` for CSV. The JSON format only supports simple key/value, unnested
78
+ # objects. The CSV format expects exactly two columns, with the first serving
79
+ # as the original text, and the second column as the replacement.
77
80
  config :dictionary_path, :validate => :path
78
81
 
79
82
  # When using a dictionary file, this setting will indicate how frequently
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-translate'
4
- s.version = '3.0.0'
4
+ s.version = '3.0.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "A general search and replace tool which uses a configured hash and/or a YAML file to determine replacement values."
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"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-29 00:00:00.000000000 Z
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