logstash-core-event 2.2.3.snapshot2-java → 2.2.4-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/timestamp.rb +7 -1
- data/lib/logstash-core-event/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 021c115ce630e1d2ceecbd01c62756970b87d535
|
4
|
+
data.tar.gz: 2f19ce804b24cb9f8141a50d74a33cf92c47f377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2098efe3c3ea9a1ac330e4f6afc7388142cd49037110e1c4de0fc992fdba91f902da05c745bdae5e8b9bafde4148536726865c5757c79f7ab69abb8c3addb59d
|
7
|
+
data.tar.gz: de99839e53a8a6b37e9a1ada546d3a72011203a5025e1f41563a5416466c904f03da894a43ae1b1c170f7cb3dc8673ec7df8fa883f2465cf4725db60ee5d6eec
|
data/lib/logstash/timestamp.rb
CHANGED
@@ -24,7 +24,13 @@ module LogStash
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.at(*args)
|
27
|
-
|
27
|
+
epoch = args.first
|
28
|
+
if epoch.is_a?(BigDecimal)
|
29
|
+
# bug in JRuby prevents correcly parsing a BigDecimal fractional part, see https://github.com/elastic/logstash/issues/4565
|
30
|
+
Timestamp.new(::Time.at(epoch.to_i, epoch.frac.to_f * 1000000))
|
31
|
+
else
|
32
|
+
Timestamp.new(::Time.at(*args))
|
33
|
+
end
|
28
34
|
end
|
29
35
|
|
30
36
|
def self.parse(*args)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core-event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The core event component of logstash, the scalable log and event management tool
|
14
14
|
email:
|
@@ -38,14 +38,14 @@ require_paths:
|
|
38
38
|
- lib
|
39
39
|
required_ruby_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project:
|
51
51
|
rubygems_version: 2.4.8
|