fluent-plugin-dict-map 0.1.0 → 0.1.1

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
- SHA1:
3
- metadata.gz: bd4e2441b2f79a58ae9613eaa8c2b1416b62ae71
4
- data.tar.gz: a6d72c1e02117f5397623715cf45c44b9b867ca3
2
+ SHA256:
3
+ metadata.gz: fd89ad318fb65a21b1017bf86e3711b31952695c0c10bf1a1abc2e79659f9522
4
+ data.tar.gz: 117a5381ec48d7796e3573cbe9087420b03ead8013a0a46d36cecbe56cc55529
5
5
  SHA512:
6
- metadata.gz: da87fd811c9dcb21b3de4b990862eefe6221f47309ee546b0250ce488291725583714c0147d429741070898792b84cdae82c0716d5651475b960654243189f46
7
- data.tar.gz: b46e61c2961e75c84002c0cfb517473eecc1c84d20e08058876a17d9dbcd4807884aafb6c23e64a00f35e9477bb4a6259e7bb3b076467df76e6f581522728b82
6
+ metadata.gz: 28e55c64010687554703a41f71daea93d0eee3462724473c4692a860a70c86e7afecbf26fb62ab0a4341be0088e91610d1677e6154215181a301ebfbe5f9cead
7
+ data.tar.gz: 6569e05a2766772955f5ccacfc57ac39a1876a5adce18a80b91389341a7c1f5776c9b97104ce997c578a84c1aecde58a30ce8b76c590e41b6397a0add5c7a200
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.1.1 - 2021/02/26
2
+
3
+ * Value coersion to string for supporting non-string value like numbers
4
+
1
5
  Release 0.1.0 - 2018/03/05
2
6
 
3
7
  * First release
@@ -4,12 +4,11 @@ $:.push File.expand_path('../lib', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "fluent-plugin-dict-map"
6
6
  gem.description = "Dictionary based map filter for Fluentd"
7
- gem.homepage = "https://github.com/repeatedly/fluent-plugin-record-dict-map"
7
+ gem.homepage = "https://github.com/repeatedly/fluent-plugin-dict-map"
8
8
  gem.summary = gem.description
9
- gem.version = "0.1.0"
9
+ gem.version = "0.1.1"
10
10
  gem.authors = ["Masahiro Nakagawa"]
11
11
  gem.email = "repeatedly@gmail.com"
12
- gem.has_rdoc = false
13
12
  #gem.platform = Gem::Platform::RUBY
14
13
  gem.license = 'MIT'
15
14
  gem.files = `git ls-files`.split("\n")
@@ -26,6 +26,8 @@ module Fluent::Plugin
26
26
  value = record[@key_name]
27
27
  return record unless value
28
28
 
29
+ value = value.to_s
30
+
29
31
  if @dict.include?(value)
30
32
  record[@target] = @dict[value]
31
33
  elsif !@default_value.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-dict-map
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-06 00:00:00.000000000 Z
11
+ date: 2021-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -72,7 +72,7 @@ files:
72
72
  - example/dict.json
73
73
  - fluent-plugin-dict-map.gemspec
74
74
  - lib/fluent/plugin/filter_dict_map.rb
75
- homepage: https://github.com/repeatedly/fluent-plugin-record-dict-map
75
+ homepage: https://github.com/repeatedly/fluent-plugin-dict-map
76
76
  licenses:
77
77
  - MIT
78
78
  metadata: {}
@@ -91,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 2.6.13
94
+ rubygems_version: 3.1.4
96
95
  signing_key:
97
96
  specification_version: 4
98
97
  summary: Dictionary based map filter for Fluentd