logstash-core-event-java 5.1.2-java → 5.2.0-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: 2109787a5ad8b8baedc74e31a345cee58849bdd5
|
4
|
+
data.tar.gz: 0f2b5e2f8f3abd034d98c969e1b9819fb31c0739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4d8b0c9cfd41a7527654db9c2347e725533429416165d1473af6358d7aec14330d4babca4c26a2f8db011a63195f6b06fc996189c989173a2446d8ade15d7b4
|
7
|
+
data.tar.gz: 5a58cf151e9e4b07f8d10a549a2044b0758713f644febe5c58179bbffbd0dcbf9e1525d1aed786cae8d34a9775eb02726b6392d2fc97b79215d341811b316c8b
|
Binary file
|
data/spec/event_spec.rb
CHANGED
@@ -61,6 +61,16 @@ describe LogStash::Event do
|
|
61
61
|
expect(e.get("[foo][2]")).to eq(1.0)
|
62
62
|
expect(e.get("[foo][3]")).to be_nil
|
63
63
|
end
|
64
|
+
|
65
|
+
context "negative array values" do
|
66
|
+
it "should index from the end of the array" do
|
67
|
+
list = ["bar", 1, 1.0]
|
68
|
+
e = LogStash::Event.new({"foo" => list})
|
69
|
+
expect(e.get("[foo][-3]")).to eq(list[-3])
|
70
|
+
expect(e.get("[foo][-2]")).to eq(list[-2])
|
71
|
+
expect(e.get("[foo][-1]")).to eq(list[-1])
|
72
|
+
end
|
73
|
+
end
|
64
74
|
end
|
65
75
|
|
66
76
|
context "#set" do
|
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.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|