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: 29664d9a26c763a60369e33abf286734a64ae359
4
- data.tar.gz: 27de52f8bc8a3ca7f790705d7e5a15676d4bebbc
3
+ metadata.gz: d9cdd546d4db079dc1a5c5bc082edd7ab85b8b82
4
+ data.tar.gz: 940aefaa4055ed9f36fa8ead91668c85db9aad8d
5
5
  SHA512:
6
- metadata.gz: 1f7b6de81311919a43eaea4469cb80c8d14fe4425ac7ab599b5cf2e923172010dc47b8ca73dcb525c4a04f58b41d14bb486376bb4eba3448629178c014da610d
7
- data.tar.gz: c92a3a899ffa7073c6fc553a242b7a0019f56d3ffc316129dae5474791be554b37b1ad6871b1eab14c702a6bf436b11c2d2fe37b4fcba2cdebd074208ce4a04a
6
+ metadata.gz: 89eae9b8a6862d87a401c8f8142c1e57f7c59d4149346bc9437dac3740243b99ec25bcf60f8c48de6af22a13099dcb0561a671a00b2274e67452e1ce0108848d
7
+ data.tar.gz: 1cab5bd0af2882321a9b0b4e62318d4a083f3a9a038d9b4e34cf5f5cc19e9b36fbefdcce9bb3f457165bdf6041c58337e43f5eba4914d085e97d3d04f02e9f8d
@@ -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_JAVA_VERSION = "5.0.0-alpha4.snapshot3"
8
+ LOGSTASH_CORE_EVENT_JAVA_VERSION = "5.0.0.alpha5.snapshot1"
@@ -1,6 +1,14 @@
1
1
  # this is a generated file, to avoid over-writing it just delete this comment
2
- require 'jar_dependencies'
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
- require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.7.1' )
5
- require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.7.0' )
6
- require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.7.1-1' )
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.gsub(/-/, '.')
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.alpha4.snapshot3
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-06-17 00:00:00.000000000 Z
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