logstash-core 1.5.2.snapshot2-java → 1.5.2.1-java
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of logstash-core might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b34434635069ad778b4927cf12449482f9690da
|
4
|
+
data.tar.gz: ba23ada0808d798175a8dab65237675f885d0335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63828830322134b96403c3068fa3904d7808b8d954b940a2df9368070c9b36c70410d1b6fdb7cb28aec4f35a9ebfd3d0b22c00fa4386bc87db1d281eb8af2ea1
|
7
|
+
data.tar.gz: 900c34d119092d3c2732586af2f28c50606d24faa391eaa4bafc5c6e2636153c0daf2ad894defdd80030aefcea4753e7832cf35c05b7af4b07f3b0cfec760737
|
data/lib/logstash/version.rb
CHANGED
data/spec/core/event_spec.rb
CHANGED
@@ -95,6 +95,10 @@ describe LogStash::Event do
|
|
95
95
|
it "should allow to use nested hash from the metadata field" do
|
96
96
|
expect(subject.sprintf("%{[@metadata][have-to-go][deeper]}")).to eq("inception")
|
97
97
|
end
|
98
|
+
|
99
|
+
it "should return a json string if the key is a hash" do
|
100
|
+
expect(subject.sprintf("%{[j][k3]}")).to eq("{\"4\":\"m\"}")
|
101
|
+
end
|
98
102
|
end
|
99
103
|
|
100
104
|
context "#[]" do
|
@@ -82,6 +82,23 @@ describe "Java integration" do
|
|
82
82
|
context "Java::JavaUtil::Collection" do
|
83
83
|
subject{Java::JavaUtil::ArrayList.new(initial_array)}
|
84
84
|
|
85
|
+
context "when inspecting" do
|
86
|
+
let(:items) { [:a, {:b => :c}] }
|
87
|
+
subject { java.util.ArrayList.new(items) }
|
88
|
+
|
89
|
+
it "should include the contents of the Collection" do
|
90
|
+
expect(subject.inspect).to include(items.inspect)
|
91
|
+
end
|
92
|
+
|
93
|
+
it "should include the class name" do
|
94
|
+
expect(subject.inspect).to include("ArrayList")
|
95
|
+
end
|
96
|
+
|
97
|
+
it "should include the hash code of the collection" do
|
98
|
+
expect(subject.inspect).to include(subject.hashCode.to_s)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
85
102
|
context "when deleting a unique instance" do
|
86
103
|
let(:initial_array) {["foo", "bar"]}
|
87
104
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.2.
|
4
|
+
version: 1.5.2.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
@@ -267,9 +267,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
267
267
|
version: '0'
|
268
268
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
269
269
|
requirements:
|
270
|
-
- - '
|
270
|
+
- - '>='
|
271
271
|
- !ruby/object:Gem::Version
|
272
|
-
version:
|
272
|
+
version: '0'
|
273
273
|
requirements: []
|
274
274
|
rubyforge_project:
|
275
275
|
rubygems_version: 2.2.2
|