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.

Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/logstash-core.rb +2 -1
  3. data/lib/logstash/config/mixin.rb +0 -1
  4. data/lib/logstash/environment.rb +1 -0
  5. data/lib/logstash/java_integration.rb +2 -1
  6. data/lib/logstash/namespace.rb +0 -1
  7. data/lib/logstash/patches.rb +1 -0
  8. data/lib/logstash/patches/bugfix_jruby_2558.rb +1 -0
  9. data/lib/logstash/patches/bundler.rb +1 -0
  10. data/lib/logstash/patches/cabin.rb +1 -0
  11. data/lib/logstash/patches/rubygems.rb +1 -0
  12. data/lib/logstash/patches/stronger_openssl_defaults.rb +1 -0
  13. data/lib/logstash/program.rb +0 -1
  14. data/lib/logstash/runner.rb +0 -1
  15. data/lib/logstash/string_interpolation.rb +3 -2
  16. data/lib/logstash/util/accessors.rb +0 -1
  17. data/lib/logstash/util/decorators.rb +0 -1
  18. data/lib/logstash/util/filetools.rb +1 -0
  19. data/lib/logstash/util/java_version.rb +2 -1
  20. data/lib/logstash/util/plugin_version.rb +1 -0
  21. data/lib/logstash/util/prctl.rb +0 -1
  22. data/lib/logstash/util/reporter.rb +1 -0
  23. data/lib/logstash/util/retryable.rb +2 -1
  24. data/lib/logstash/util/unicode_trimmer.rb +1 -0
  25. data/lib/logstash/version.rb +1 -1
  26. data/spec/core/conditionals_spec.rb +1 -0
  27. data/spec/core/config_mixin_spec.rb +1 -0
  28. data/spec/core/environment_spec.rb +1 -0
  29. data/spec/core/event_spec.rb +10 -0
  30. data/spec/core/pipeline_spec.rb +1 -0
  31. data/spec/core/plugin_spec.rb +1 -0
  32. data/spec/core/runner_spec.rb +1 -0
  33. data/spec/core/timestamp_spec.rb +1 -0
  34. data/spec/coverage_helper.rb +1 -0
  35. data/spec/license_spec.rb +1 -0
  36. data/spec/logstash/agent_spec.rb +1 -0
  37. data/spec/spec_helper.rb +1 -0
  38. data/spec/util/java_version_spec.rb +2 -1
  39. data/spec/util/plugin_version_spec.rb +1 -0
  40. data/spec/util_spec.rb +1 -0
  41. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edafc40bc06b45e7b5063039be8a83beac5322b9
4
- data.tar.gz: 7420cdcd0b76058f7a58d0ba08ce6f1c98290e13
3
+ metadata.gz: 81637255e5a0f8848a3ea9a4539cc10aa6d6eff9
4
+ data.tar.gz: b7d330113cecfba7f28f6ea335e30761f51a6631
5
5
  SHA512:
6
- metadata.gz: ef13f617b3c77e4547cbb4deae05319b75169ddb3a4030bd85fbc39c44c6f9e5daf4e8051a8e1f6346371677d18cbceccf37d3b107246c2d7329eead1653c2bb
7
- data.tar.gz: 788e9784af3c008b7b9a5df9674f1d921ee6f69eb133d0584a9c88625c2c3037f60fa662527ed293bc58e5922c01e775d7cfec393f54c936e06864d198ab4672
6
+ metadata.gz: d4208838fc91f40f20707f5e0d5df0879d391eb78e304a3bc7d060de883a9af3ce15798618cb4fcd32448c4b7e73f2f80747be86a4461def9d73cfceb4bd8d66
7
+ data.tar.gz: 4dfe6842bd6947a1817051756c7d158a381528775c1db3c41ff5657fabc68085743fdfdc6e67391ce12cabb16f1ac1c7a0db41495ee447888a5fa45a97bb04d2
@@ -1,2 +1,3 @@
1
+ # encoding: utf-8
1
2
  module LogStash
2
- end
3
+ end
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
-
3
2
  require "logstash/namespace"
4
3
  require "logstash/config/registry"
5
4
  require "logstash/logging"
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "logstash/errors"
2
3
  require "logstash/version"
3
4
 
@@ -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
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
-
3
2
  module LogStash
4
3
  module Inputs; end
5
4
  module Outputs; end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "logstash/patches/bugfix_jruby_2558"
2
3
  require "logstash/patches/cabin"
3
4
  require "logstash/patches/profile_require_calls"
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "logstash/environment"
2
3
 
3
4
  if LogStash::Environment.windows? && LogStash::Environment.jruby?
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Bundler monkey patches
2
3
  module ::Bundler
3
4
  # Patch bundler to write a .lock file specific to the version of ruby.
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  if ENV["PROFILE_BAD_LOG_CALLS"] || ($DEBUGLIST || []).include?("log")
2
3
  # Set PROFILE_BAD_LOG_CALLS=1 in your environment if you want
3
4
  # to track down logger calls that cause performance problems
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # monkey patch RubyGems to silence ffi warnings:
2
3
  #
3
4
  # WARN: Unresolved specs during Gem::Specification.reset:
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "openssl"
2
3
 
3
4
  # :nodoc:
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
-
3
2
  require "logstash/namespace"
4
3
 
5
4
  module LogStash::Program
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
-
3
2
  Thread.abort_on_exception = true
4
3
  Encoding.default_external = Encoding::UTF_8
5
4
  $DEBUGLIST = (ENV["DEBUG"] || "").split(",")
@@ -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))
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
-
3
2
  require "logstash/namespace"
4
3
  require "logstash/util"
5
4
  require "thread_safe"
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
-
3
2
  require "logstash/namespace"
4
3
  require "logstash/util"
5
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "net/http"
2
3
  require "uri"
3
4
  require "digest/sha1"
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'cabin'
2
3
 
3
4
  module LogStash::Util::JavaVersion
@@ -61,4 +62,4 @@ module LogStash::Util::JavaVersion
61
62
  false
62
63
  end
63
64
  end
64
- end
65
+ end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'logstash/errors'
2
3
  require 'rubygems/version'
3
4
  require 'forwardable'
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
-
3
2
  module LibC
4
3
  require "ffi"
5
4
  extend FFI::Library
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  class InflightEventsReporter
2
3
  def self.logger=(logger)
3
4
  @logger = logger
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module LogStash
2
3
  module Retryable
3
4
  # execute retryable code block
@@ -36,4 +37,4 @@ module LogStash
36
37
  end
37
38
  end
38
39
  end
39
- end
40
+ end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module LogStash::Util::UnicodeTrimmer
2
3
  # The largest possible unicode chars are 4 bytes
3
4
  # http://stackoverflow.com/questions/9533258/what-is-the-maximum-number-of-bytes-for-a-utf-8-encoded-character
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  # The version of logstash.
3
- LOGSTASH_VERSION = "1.5.4.snapshot2"
3
+ LOGSTASH_VERSION = "1.5.4.snapshot3"
4
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.
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  module ConditionalFanciness
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "spec_helper"
2
3
  require "logstash/config/mixin"
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "spec_helper"
2
3
  require "logstash/environment"
3
4
 
@@ -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
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "spec_helper"
2
3
 
3
4
  class DummyInput < LogStash::Inputs::Base
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "spec_helper"
2
3
  require "logstash/plugin"
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "spec_helper"
2
3
  require "logstash/runner"
3
4
  require "stud/task"
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "spec_helper"
2
3
  require "logstash/timestamp"
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  # Useful module to help loading all logstash content when
2
3
  # running coverage analysis
3
4
  module CoverageHelper
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
  require 'rakelib/default_plugins'
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe LogStash::Agent do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require_relative 'coverage_helper'
2
3
  # In order to archive an expected coverage analysis we need to eager load
3
4
  # all logstash code base, otherwise it will not get a good analysis.
@@ -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
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require "spec_helper"
2
3
  require "logstash/util/plugin_version"
3
4
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  require "logstash/util"
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.snapshot2
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-03 00:00:00.000000000 Z
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