logstash-core-event 2.3.0.snapshot5-java → 2.3.1-java

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: c1e23e0a7a0dbd30e2c069874740259c8ec2420e
4
- data.tar.gz: 867c9c71844e7448167e2a24e5d8ebbdf3c0a65d
3
+ metadata.gz: dc01fbe0bed4740be1f32e75a39a91cb10c49edb
4
+ data.tar.gz: 74eabdc266efb30b6fb76677a88c02034e6e9328
5
5
  SHA512:
6
- metadata.gz: 965304102aeff811940b5399387a29cba50d3f590eae9bbb5ba2c410bd0927bbfef3209d3287b05f6b19f7f96e6fbef4050427ed44e708a1978e4eec6a59c860
7
- data.tar.gz: d207af743cde5e258de9da5eb32b78b4c2ac3c75f0d554e571921f61320f4adcf2068228a5be49bb6ad863be495c29b27e15ea93f5cc974991343e0c11cbce81
6
+ metadata.gz: 218ba4c182f5897764d8ba8a1299a2d880ebf289fab15604df2a946a323a80b1e8e6c1e6e6a15bf41ea68f88316c3ba2d0288988a589e81089be355895728b69
7
+ data.tar.gz: 49a27acedf2e8a3096e85ec9d14609e775f552905d31728a71a4fec04d5ba3ac080329d9b10481fc7a37793639c318154ab434daa7a6020747b145bda22f191f
@@ -5,4 +5,4 @@
5
5
  # Note to authors: this should not include dashes because 'gem' barfs if
6
6
  # you include a dash in the version string.
7
7
 
8
- LOGSTASH_CORE_EVENT_VERSION = "2.3.0.snapshot5"
8
+ LOGSTASH_CORE_EVENT_VERSION = "2.3.1"
@@ -24,7 +24,13 @@ module LogStash
24
24
  end
25
25
 
26
26
  def self.at(*args)
27
- Timestamp.new(::Time.at(*args))
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.3.0.snapshot5
4
+ version: 2.3.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-29 00:00:00.000000000 Z
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: 1.3.1
48
+ version: '0'
49
49
  requirements: []
50
50
  rubyforge_project:
51
51
  rubygems_version: 2.4.8