fluent-plugin-filter_typecast 0.0.1 → 0.0.2

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: 1919117676570ea14329cf37d6f50b9a64aa9c9c
4
- data.tar.gz: f5398fbf065a0dff9a47bd8d6d3ea27454682911
3
+ metadata.gz: 1043422f10ff6b270598cb7d6a84ec1730fdc5eb
4
+ data.tar.gz: 1af229a2028074a1e57605147ca49d8e182934e4
5
5
  SHA512:
6
- metadata.gz: 17378ad33c8d69a6f208a73c7bfbede155ece0d53cc358f1021fd65351fbced042c1312f9266892705c697280b4aa40036e011004f4807484673bc4369f7b1f7
7
- data.tar.gz: ff47c7167231a5dccffafcf53f842258ceb855a68e2cd061ff2207c0c7fad0d3ccf9cdc9f01c7ddfa1067a09c59fddef01d37533a261eff016c8685c92cac3de
6
+ metadata.gz: 4873bf099888429d793716aac7b950778ad7453a3c90ae1abcf5504d40b1978eb8e224a56f3767b580f012a3b1a3fcccd92c4f0c9d199d8442dec87fdc05b9f1
7
+ data.tar.gz: 87c584bff8740af532bef2ba8e7b1ad918fe16822c7918dd2cec81f9c9b9ae428361192bd9d81d8e271abfe0af5af60c54b5b4497cfd380e71b0bc836f60b9ec
@@ -1,3 +1,10 @@
1
+ ## 0.0.2
2
+
3
+ Enhancements:
4
+
5
+ * Remove `Array#to_h` to support old rubies
6
+
1
7
  ## 0.0.1
2
8
 
3
9
  First version
10
+
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-filter_typecast"
6
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
7
7
  s.authors = ["Naotoshi Seo"]
8
8
  s.email = ["sonots@gmail.com"]
9
9
  s.homepage = "https://github.com/sonots/fluent-plugin-filter_typecast"
@@ -5,9 +5,10 @@ module Fluent
5
5
  include ::Fluent::TextParser::TypeConverter
6
6
 
7
7
  def filter(tag, time, record)
8
- record.map do |key, val|
8
+ filtered = record.map do |key, val|
9
9
  [key, convert_type(key, val)]
10
- end.to_h
10
+ end
11
+ Hash[*filtered.flatten(1)]
11
12
  end
12
13
  end
13
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-filter_typecast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo