logstash-core-event-java 5.0.0.alpha4.snapshot3-java → 5.0.0.alpha5.snapshot1-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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9cdd546d4db079dc1a5c5bc082edd7ab85b8b82
|
4
|
+
data.tar.gz: 940aefaa4055ed9f36fa8ead91668c85db9aad8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89eae9b8a6862d87a401c8f8142c1e57f7c59d4149346bc9437dac3740243b99ec25bcf60f8c48de6af22a13099dcb0561a671a00b2274e67452e1ce0108848d
|
7
|
+
data.tar.gz: 1cab5bd0af2882321a9b0b4e62318d4a083f3a9a038d9b4e34cf5f5cc19e9b36fbefdcce9bb3f457165bdf6041c58337e43f5eba4914d085e97d3d04f02e9f8d
|
Binary file
|
@@ -1,6 +1,14 @@
|
|
1
1
|
# this is a generated file, to avoid over-writing it just delete this comment
|
2
|
-
|
2
|
+
begin
|
3
|
+
require 'jar_dependencies'
|
4
|
+
rescue LoadError
|
5
|
+
require 'com/fasterxml/jackson/core/jackson-core/2.7.1/jackson-core-2.7.1.jar'
|
6
|
+
require 'com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar'
|
7
|
+
require 'com/fasterxml/jackson/core/jackson-databind/2.7.1-1/jackson-databind-2.7.1-1.jar'
|
8
|
+
end
|
3
9
|
|
4
|
-
|
5
|
-
require_jar( 'com.fasterxml.jackson.core', 'jackson-
|
6
|
-
require_jar( 'com.fasterxml.jackson.core', 'jackson-
|
10
|
+
if defined? Jars
|
11
|
+
require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.7.1' )
|
12
|
+
require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.7.0' )
|
13
|
+
require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.7.1-1' )
|
14
|
+
end
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
16
|
gem.name = "logstash-core-event-java"
|
17
17
|
gem.require_paths = ["lib"]
|
18
|
-
gem.version = LOGSTASH_CORE_EVENT_JAVA_VERSION
|
18
|
+
gem.version = LOGSTASH_CORE_EVENT_JAVA_VERSION
|
19
19
|
|
20
20
|
gem.platform = "java"
|
21
21
|
|
data/spec/event_spec.rb
CHANGED
@@ -114,6 +114,14 @@ describe LogStash::Event do
|
|
114
114
|
expect(e.get("foo")).to eq(-9223372036854776000)
|
115
115
|
end
|
116
116
|
|
117
|
+
it "should convert Time to Timestamp" do
|
118
|
+
e = LogStash::Event.new()
|
119
|
+
time = Time.now
|
120
|
+
e.set("[foo]", Time.at(time.to_f))
|
121
|
+
expect(e.get("foo")).to be_kind_of(LogStash::Timestamp)
|
122
|
+
expect(e.get("foo").to_f).to be_within(0.1).of(time.to_f)
|
123
|
+
end
|
124
|
+
|
117
125
|
it "should set XXJavaProxy Jackson crafted" do
|
118
126
|
proxy = com.logstash.Util.getMapFixtureJackson()
|
119
127
|
# proxy is {"string": "foo", "int": 42, "float": 42.42, "array": ["bar","baz"], "hash": {"string":"quux"} }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core-event-java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.
|
4
|
+
version: 5.0.0.alpha5.snapshot1
|
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-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|