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: c856a8debef8f5692d40dcbdf98d4022f97a03ea
4
- data.tar.gz: 5cd71c7ee85430e4c79b622373f5dd7d540ab353
3
+ metadata.gz: 2109787a5ad8b8baedc74e31a345cee58849bdd5
4
+ data.tar.gz: 0f2b5e2f8f3abd034d98c969e1b9819fb31c0739
5
5
  SHA512:
6
- metadata.gz: d54874d9776533f5641adfa94b689c4d2e130c9401486ea3e104f1e2d637783cdbfd710f6047ccde55119b84a7aea477b7a1a7684ccb6d54e62efb7ad6cf0b0d
7
- data.tar.gz: 7fe3ef06a35fd33b631eb3e5de507acbf2db864c7a46f305b209fcc2e6dfa71d9c35a11fea0d6e10ae924e61b412693e1f1f6d4852c3ea2ea2a5827bb71781d5
6
+ metadata.gz: d4d8b0c9cfd41a7527654db9c2347e725533429416165d1473af6358d7aec14330d4babca4c26a2f8db011a63195f6b06fc996189c989173a2446d8ade15d7b4
7
+ data.tar.gz: 5a58cf151e9e4b07f8d10a549a2044b0758713f644febe5c58179bbffbd0dcbf9e1525d1aed786cae8d34a9775eb02726b6392d2fc97b79215d341811b316c8b
@@ -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.1.2"
8
+ LOGSTASH_CORE_EVENT_JAVA_VERSION = "5.2.0"
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.1.2
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 00:00:00.000000000 Z
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