fluent-plugin-time_parser 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'fluent-plugin-time_parser'
|
3
|
-
gem.version = '0.0.
|
3
|
+
gem.version = '0.0.6'
|
4
4
|
gem.authors = ['Carlos Donderis', 'Michael H. Oshita']
|
5
5
|
gem.email = ['cdonderis@gmail.com', 'ijinpublic+github@gmail.com']
|
6
6
|
gem.homepage = 'http://github.com/cads/fluent-plugin-time_parser'
|
@@ -46,7 +46,7 @@ module Fluent
|
|
46
46
|
record_time = DateTime.parse(record[key])
|
47
47
|
|
48
48
|
if time_zone && time_zone != ""
|
49
|
-
tz = TZInfo::Timezone.get(time_zone
|
49
|
+
tz = TZInfo::Timezone.get(time_zone)
|
50
50
|
|
51
51
|
period = tz.period_for_utc(record_time)
|
52
52
|
rational_offset = period.utc_total_offset_rational
|
@@ -57,7 +57,7 @@ class TimeParserOutputTest < Test::Unit::TestCase
|
|
57
57
|
d = create_driver(%[
|
58
58
|
key time
|
59
59
|
add_tag_prefix extracted.
|
60
|
-
time_zone
|
60
|
+
time_zone Asia/Tokyo
|
61
61
|
])
|
62
62
|
tag = 'test'
|
63
63
|
record = {'time' => TIME}
|
@@ -110,7 +110,7 @@ class TimeParserOutputTest < Test::Unit::TestCase
|
|
110
110
|
d = create_driver(%[
|
111
111
|
key time
|
112
112
|
add_tag_prefix extracted.
|
113
|
-
time_zone
|
113
|
+
time_zone Asia/Tokyo
|
114
114
|
])
|
115
115
|
|
116
116
|
d.run { d.emit('time' => TIME) }
|
@@ -125,7 +125,7 @@ class TimeParserOutputTest < Test::Unit::TestCase
|
|
125
125
|
d = create_driver(%[
|
126
126
|
key time
|
127
127
|
add_tag_prefix extracted.
|
128
|
-
time_zone
|
128
|
+
time_zone Asia/Tokyo
|
129
129
|
])
|
130
130
|
|
131
131
|
d.run do
|
@@ -146,7 +146,7 @@ class TimeParserOutputTest < Test::Unit::TestCase
|
|
146
146
|
d = create_driver(%[
|
147
147
|
key time
|
148
148
|
add_tag_prefix extracted.
|
149
|
-
time_zone
|
149
|
+
time_zone Asia/Tokyo
|
150
150
|
])
|
151
151
|
wrong_time = 'wrong time'
|
152
152
|
d.run { d.emit('time' => wrong_time) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-time_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 1.8.
|
132
|
+
rubygems_version: 1.8.24
|
133
133
|
signing_key:
|
134
134
|
specification_version: 3
|
135
135
|
summary: Fluentd plugin to parse the time parameter.
|