fluent-plugin-output-solr 0.4.11 → 0.4.12

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
2
  SHA1:
3
- metadata.gz: 6a4eb0134ff37a071cd0d2f146374558469fdf7f
4
- data.tar.gz: d32077fbc8d29b01be5b38c84645da9fa7dbd945
3
+ metadata.gz: 69c8450973f1699e1a6d085914b2aff6b33336c9
4
+ data.tar.gz: 1c45581028a1e2554c9c34859af1353b2078214c
5
5
  SHA512:
6
- metadata.gz: 279793165b6c132e99ded418e4453c37025f9c796caa11ee6b59775681edb1196f17ce1a53684da842067c6f086b45c393591673b6faadec9de87b42255e119b
7
- data.tar.gz: fbc1c4378f4d85146133971a99f9aa85b2b6cfab25c6998abc58f98907e2e1b85bd7c26283563e1e18eee09d5cf153f69d7044a6996410583b353aab9dd161de
6
+ metadata.gz: 3b34e96a6bf48d9c402970c54feb4ebeab5dae6a3b1671e8508cb38343d418a46e2451446cb2fd6fbaa71942129def9bae6cc80c0b13ef3c072a315ed8990e46
7
+ data.tar.gz: 7f6687e3baba7bd6c7ae7cd97367bf82757a3383cb58c322720fa69c6bf5fd056805dbfb8d3459e2ed31b7d4a284069c495b7c7983e7c00a6000b91a7ba50a78
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-output-solr"
7
- spec.version = "0.4.11"
7
+ spec.version = "0.4.12"
8
8
  spec.authors = ["Minoru Osuka"]
9
9
  spec.email = ["minoru.osuka@gmail.com"]
10
10
 
@@ -117,26 +117,26 @@ module Fluent
117
117
 
118
118
  if record.has_key?(@time_field) then
119
119
  begin
120
- tmp_time = Time.strptime(record[@time_field], @time_format)
120
+ tmp_time = Time.strptime(record[@time_field], @time_format).utc
121
121
  if @millisecond then
122
- record.merge!({@time_field => '%s.%03dZ' % [tmp_time.utc.strftime('%FT%T'), tmp_time.usec/ 1000.0]})
122
+ record.merge!({@time_field => '%s.%03dZ' % [tmp_time.strftime('%FT%T'), tmp_time.usec / 1000.0]})
123
123
  else
124
- record.merge!({@time_field => tmp_time.utc.strftime('%FT%TZ')})
124
+ record.merge!({@time_field => tmp_time.strftime('%FT%TZ')})
125
125
  end
126
126
  rescue
127
127
  tmp_time = Time.at(time).utc
128
128
  if @millisecond then
129
- record.merge!({@time_field => '%s.%03dZ' % [tmp_time.utc.strftime('%FT%T'), tmp_time.usec/ 1000.0]})
129
+ record.merge!({@time_field => '%s.%03dZ' % [tmp_time.strftime('%FT%T'), tmp_time.usec / 1000.0]})
130
130
  else
131
- record.merge!({@time_field => tmp_time.utc.strftime('%FT%TZ')})
131
+ record.merge!({@time_field => tmp_time.strftime('%FT%TZ')})
132
132
  end
133
133
  end
134
134
  else
135
135
  tmp_time = Time.at(time).utc
136
136
  if @millisecond then
137
- record.merge!({@time_field => '%s.%03dZ' % [tmp_time.utc.strftime('%FT%T'), tmp_time.usec/ 1000.0]})
137
+ record.merge!({@time_field => '%s.%03dZ' % [tmp_time.strftime('%FT%T'), tmp_time.usec / 1000.0]})
138
138
  else
139
- record.merge!({@time_field => tmp_time.utc.strftime('%FT%TZ')})
139
+ record.merge!({@time_field => tmp_time.strftime('%FT%TZ')})
140
140
  end
141
141
  end
142
142
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-output-solr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minoru Osuka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-20 00:00:00.000000000 Z
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd