logstash-core 1.5.4.snapshot2-java → 1.5.4.snapshot3-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 +4 -4
- data/lib/logstash-core.rb +2 -1
- data/lib/logstash/config/mixin.rb +0 -1
- data/lib/logstash/environment.rb +1 -0
- data/lib/logstash/java_integration.rb +2 -1
- data/lib/logstash/namespace.rb +0 -1
- data/lib/logstash/patches.rb +1 -0
- data/lib/logstash/patches/bugfix_jruby_2558.rb +1 -0
- data/lib/logstash/patches/bundler.rb +1 -0
- data/lib/logstash/patches/cabin.rb +1 -0
- data/lib/logstash/patches/rubygems.rb +1 -0
- data/lib/logstash/patches/stronger_openssl_defaults.rb +1 -0
- data/lib/logstash/program.rb +0 -1
- data/lib/logstash/runner.rb +0 -1
- data/lib/logstash/string_interpolation.rb +3 -2
- data/lib/logstash/util/accessors.rb +0 -1
- data/lib/logstash/util/decorators.rb +0 -1
- data/lib/logstash/util/filetools.rb +1 -0
- data/lib/logstash/util/java_version.rb +2 -1
- data/lib/logstash/util/plugin_version.rb +1 -0
- data/lib/logstash/util/prctl.rb +0 -1
- data/lib/logstash/util/reporter.rb +1 -0
- data/lib/logstash/util/retryable.rb +2 -1
- data/lib/logstash/util/unicode_trimmer.rb +1 -0
- data/lib/logstash/version.rb +1 -1
- data/spec/core/conditionals_spec.rb +1 -0
- data/spec/core/config_mixin_spec.rb +1 -0
- data/spec/core/environment_spec.rb +1 -0
- data/spec/core/event_spec.rb +10 -0
- data/spec/core/pipeline_spec.rb +1 -0
- data/spec/core/plugin_spec.rb +1 -0
- data/spec/core/runner_spec.rb +1 -0
- data/spec/core/timestamp_spec.rb +1 -0
- data/spec/coverage_helper.rb +1 -0
- data/spec/license_spec.rb +1 -0
- data/spec/logstash/agent_spec.rb +1 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/util/java_version_spec.rb +2 -1
- data/spec/util/plugin_version_spec.rb +1 -0
- data/spec/util_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81637255e5a0f8848a3ea9a4539cc10aa6d6eff9
|
4
|
+
data.tar.gz: b7d330113cecfba7f28f6ea335e30761f51a6631
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4208838fc91f40f20707f5e0d5df0879d391eb78e304a3bc7d060de883a9af3ce15798618cb4fcd32448c4b7e73f2f80747be86a4461def9d73cfceb4bd8d66
|
7
|
+
data.tar.gz: 4dfe6842bd6947a1817051756c7d158a381528775c1db3c41ff5657fabc68085743fdfdc6e67391ce12cabb16f1ac1c7a0db41495ee447888a5fa45a97bb04d2
|
data/lib/logstash-core.rb
CHANGED
data/lib/logstash/environment.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require "java"
|
2
3
|
|
3
4
|
# this is mainly for usage with JrJackson json parsing in :raw mode which genenerates
|
@@ -96,4 +97,4 @@ module java::util::Collection
|
|
96
97
|
def inspect
|
97
98
|
"<#{self.class.name}:#{self.hashCode} #{self.to_a(&:inspect)}>"
|
98
99
|
end
|
99
|
-
end
|
100
|
+
end
|
data/lib/logstash/namespace.rb
CHANGED
data/lib/logstash/patches.rb
CHANGED
data/lib/logstash/program.rb
CHANGED
data/lib/logstash/runner.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require "thread_safe"
|
2
3
|
require "forwardable"
|
3
4
|
|
@@ -17,9 +18,9 @@ module LogStash
|
|
17
18
|
if template.is_a?(Float) && (template < MIN_FLOAT_BEFORE_SCI_NOT || template >= MAX_FLOAT_BEFORE_SCI_NOT)
|
18
19
|
return ("%.15f" % template).sub(/0*$/,"")
|
19
20
|
end
|
20
|
-
|
21
|
+
|
21
22
|
template = template.to_s
|
22
|
-
|
23
|
+
|
23
24
|
return template if not_cachable?(template)
|
24
25
|
|
25
26
|
compiled = CACHE.get_or_default(template, nil) || CACHE.put(template, compile_template(template))
|
data/lib/logstash/util/prctl.rb
CHANGED
data/lib/logstash/version.rb
CHANGED
data/spec/core/event_spec.rb
CHANGED
@@ -99,6 +99,16 @@ describe LogStash::Event do
|
|
99
99
|
it "should return a json string if the key is a hash" do
|
100
100
|
expect(subject.sprintf("%{[j][k3]}")).to eq("{\"4\":\"m\"}")
|
101
101
|
end
|
102
|
+
|
103
|
+
context "#encoding" do
|
104
|
+
it "should return known patterns as UTF-8" do
|
105
|
+
expect(subject.sprintf("%{message}").encoding).to eq(Encoding::UTF_8)
|
106
|
+
end
|
107
|
+
|
108
|
+
it "should return unknown patterns as UTF-8" do
|
109
|
+
expect(subject.sprintf("%{unkown_pattern}").encoding).to eq(Encoding::UTF_8)
|
110
|
+
end
|
111
|
+
end
|
102
112
|
end
|
103
113
|
|
104
114
|
context "#[]" do
|
data/spec/core/pipeline_spec.rb
CHANGED
data/spec/core/plugin_spec.rb
CHANGED
data/spec/core/runner_spec.rb
CHANGED
data/spec/core/timestamp_spec.rb
CHANGED
data/spec/coverage_helper.rb
CHANGED
data/spec/license_spec.rb
CHANGED
data/spec/logstash/agent_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
require 'spec_helper'
|
2
3
|
require 'logstash/util/java_version'
|
3
4
|
|
@@ -71,4 +72,4 @@ describe "LogStash::Util::JavaVersion" do
|
|
71
72
|
include_examples("version parsing", "an update+build", "1.4.0_03-beta", 1, 4, 0, 3, "beta")
|
72
73
|
end
|
73
74
|
|
74
|
-
end
|
75
|
+
end
|
data/spec/util_spec.rb
CHANGED
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.4.
|
4
|
+
version: 1.5.4.snapshot3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-08-
|
13
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|