fluent-plugin-xml-simple-filter 0.0.18 → 0.0.19

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: f90edd152d717d0e68239e6fb42648753450005f
4
- data.tar.gz: 7b72166cd96166c2b8f2e163ae51cdd94bce8a0e
3
+ metadata.gz: 0f6480ed1aa118fa20d0170ec93422a6d0e86990
4
+ data.tar.gz: f2db4875454a0f7a2095ae2800f2f1df41e5f2b8
5
5
  SHA512:
6
- metadata.gz: e99c87bdd1f0c2899ba216bc05db6537690d89caa22c1dc9f776a218e6ffe46a60146d939ef834d7b3f431d74025c9826377542183a7d1d3f1586ef809935a05
7
- data.tar.gz: 723025c16ade656902614df1dfbb0104f70bdaf180553799dc18e963ee1ac8ac9d70ba5331d7253b15579798c39ff12ae52d5fc4fb05cfe3ab43a750e9e811a4
6
+ metadata.gz: 694053ff5f3d9ac0eff1fab9ebafce63d90580a94a282008d7cd828347c3ba72caa1a99e1aff7932f7483dc12d158fb69712fe5094b48eef128a56555e74d7eb
7
+ data.tar.gz: 54f76592fc66b7e297ca5829ea6ee5b8c07d3bc26a9edd8f1f9a5acc5dbd0cc28ab3be23c05a60f6d3b3317371e367728161a8e3833c97a5d49eba942f81cdb2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.18
1
+ 0.0.19
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: fluent-plugin-xml-simple-filter 0.0.18 ruby lib
5
+ # stub: fluent-plugin-xml-simple-filter 0.0.19 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "fluent-plugin-xml-simple-filter".freeze
9
- s.version = "0.0.18"
9
+ s.version = "0.0.19"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
@@ -56,11 +56,13 @@ module Fluent
56
56
  private
57
57
 
58
58
  def convert_times(hash)
59
- hash.each { |key, value|
60
- hash[key] = value.class == Hash ? convert_times(value) : try_to_convert(value) { |x|
59
+ hash.map { |key, value|
60
+ new_value = value.class == Hash ? convert_times(value) : try_to_convert(value) { |x|
61
61
  (self.time_format ? Time.strptime(x, self.time_format) : Time.parse(x)).to_i
62
62
  }
63
- }
63
+
64
+ [key, new_value]
65
+ }.to_h
64
66
  end
65
67
 
66
68
  def try_to_convert(value, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-xml-simple-filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Lukyanov