logstash-core-event-java 5.0.2-java → 5.1.1.1-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: 7cbb1ca837ab1efda157ea50054b896b3b506a96
4
- data.tar.gz: 2e8ce718ba6d34842d79a8161677f271cdd8d447
3
+ metadata.gz: 6aa3e2186610b6a0bea89900f8fff8de845bea9a
4
+ data.tar.gz: aabed686d3193b4fa62d578ad87e02f6bfc28133
5
5
  SHA512:
6
- metadata.gz: 099dd77fc6c67f3face3da76a9016c6f549424a25328484c886642645c9132124e64a8da137239910ef24103c90d15da7c37075816bc953fd580ebf800dbf54a
7
- data.tar.gz: f15ccfc1ead9c4d0e7bfd8e6d917efc122b256f1ff27fe62831e9874930fcc0f05ba3c24d13c90c83ad4fc13f636f88a843359e63df0fe49296a81173c89904c
6
+ metadata.gz: 81feb1528adadd0482f4a1a90e1ab42e46b591c222b2b5761fcb8e29f277658fc075673002c693623d2c04b5ac030ee494baff56a748b03fe8f7a8c718698988
7
+ data.tar.gz: 9998221cee4b4a0476c593e52b8e646e011731f06bb06ef437f4155b6eddf6f9393a1bac375ff7fd64c3303f564120c610a2342be6160e4e2e07d209d6d08f7d
@@ -0,0 +1,9 @@
1
+ # This file is generated by Gradle as part of the build process. It extracts the build.gradle
2
+ # runtime dependencies to generate this gemspec dependencies file to be eval'ed by the gemspec
3
+ # for the jar-dependencies requirements.
4
+
5
+ gem.requirements << "jar com.fasterxml.jackson.core:jackson-core, 2.7.3"
6
+ gem.requirements << "jar com.fasterxml.jackson.core:jackson-databind, 2.7.3"
7
+ gem.requirements << "jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.7.3"
8
+ gem.requirements << "jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.7.3"
9
+ gem.requirements << "jar org.apache.logging.log4j:log4j-api, 2.6.2"
@@ -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.0.2"
8
+ LOGSTASH_CORE_EVENT_JAVA_VERSION = "5.1.1.1"
@@ -3,12 +3,18 @@ begin
3
3
  require 'jar_dependencies'
4
4
  rescue LoadError
5
5
  require 'com/fasterxml/jackson/core/jackson-databind/2.7.3/jackson-databind-2.7.3.jar'
6
+ require 'org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar'
6
7
  require 'com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar'
8
+ require 'com/fasterxml/jackson/module/jackson-module-afterburner/2.7.3/jackson-module-afterburner-2.7.3.jar'
9
+ require 'com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.7.3/jackson-dataformat-cbor-2.7.3.jar'
7
10
  require 'com/fasterxml/jackson/core/jackson-core/2.7.3/jackson-core-2.7.3.jar'
8
11
  end
9
12
 
10
13
  if defined? Jars
11
14
  require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.7.3' )
15
+ require_jar( 'org.apache.logging.log4j', 'log4j-api', '2.6.2' )
12
16
  require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.7.0' )
17
+ require_jar( 'com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.7.3' )
18
+ require_jar( 'com.fasterxml.jackson.dataformat', 'jackson-dataformat-cbor', '2.7.3' )
13
19
  require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.7.3' )
14
20
  end
@@ -25,10 +25,14 @@ module LogStash
25
25
  def shutdown?; false; end;
26
26
  end
27
27
 
28
- FLUSH = FlushEvent.new
28
+ class NoSignal < SignalEvent
29
+ def flush?; false; end;
30
+ def shutdown?; false; end;
31
+ end
29
32
 
30
- # LogStash::SHUTDOWN is used by plugins
33
+ FLUSH = FlushEvent.new
31
34
  SHUTDOWN = ShutdownEvent.new
35
+ NO_SIGNAL = NoSignal.new
32
36
 
33
37
  class Event
34
38
  MSG_BRACKETS_METHOD_MISSING = "Direct event field references (i.e. event['field']) have been disabled in favor of using event get and set methods (e.g. event.get('field')). Please consult the Logstash 5.0 breaking changes documentation for more details.".freeze
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
12
12
  gem.license = "Apache License (2.0)"
13
13
 
14
- gem.files = Dir.glob(["logstash-core-event-java.gemspec", "lib/**/*.jar", "lib/**/*.rb", "spec/**/*.rb"])
14
+ gem.files = Dir.glob(["logstash-core-event-java.gemspec", "gemspec_jars.rb", "lib/**/*.jar", "lib/**/*.rb", "spec/**/*.rb"])
15
15
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
16
  gem.name = "logstash-core-event-java"
17
17
  gem.require_paths = ["lib"]
@@ -26,6 +26,5 @@ Gem::Specification.new do |gem|
26
26
  # which does not have this problem.
27
27
  gem.add_runtime_dependency "ruby-maven", "~> 3.3.9"
28
28
 
29
- gem.requirements << "jar com.fasterxml.jackson.core:jackson-core, 2.7.3"
30
- gem.requirements << "jar com.fasterxml.jackson.core:jackson-databind, 2.7.3"
29
+ eval(File.read(File.expand_path("../gemspec_jars.rb", __FILE__)))
31
30
  end
@@ -146,6 +146,17 @@ describe LogStash::Event do
146
146
  expect(e.get("[proxy][array][1]")).to eql("baz")
147
147
  expect(e.get("[proxy][hash][string]")).to eql("quux")
148
148
  end
149
+
150
+ it "should fail on non UTF-8 encoding" do
151
+ # e = LogStash::Event.new
152
+ # s1 = "\xE0 Montr\xE9al".force_encoding("ISO-8859-1")
153
+ # expect(s1.encoding.name).to eq("ISO-8859-1")
154
+ # expect(s1.valid_encoding?).to eq(true)
155
+ # e.set("test", s1)
156
+ # s2 = e.get("test")
157
+ # expect(s2.encoding.name).to eq("UTF-8")
158
+ # expect(s2.valid_encoding?).to eq(true)
159
+ end
149
160
  end
150
161
 
151
162
  context "timestamp" 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.0.2
4
+ version: 5.1.1.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-24 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -45,9 +45,12 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - gemspec_jars.rb
48
49
  - lib/com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar
49
50
  - lib/com/fasterxml/jackson/core/jackson-core/2.7.3/jackson-core-2.7.3.jar
50
51
  - lib/com/fasterxml/jackson/core/jackson-databind/2.7.3/jackson-databind-2.7.3.jar
52
+ - lib/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.7.3/jackson-dataformat-cbor-2.7.3.jar
53
+ - lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.7.3/jackson-module-afterburner-2.7.3.jar
51
54
  - lib/logstash-core-event-java.rb
52
55
  - lib/logstash-core-event-java/logstash-core-event-java.jar
53
56
  - lib/logstash-core-event-java/logstash-core-event-java.rb
@@ -57,6 +60,7 @@ files:
57
60
  - lib/logstash/event.rb
58
61
  - lib/logstash/string_interpolation.rb
59
62
  - lib/logstash/timestamp.rb
63
+ - lib/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar
60
64
  - logstash-core-event-java.gemspec
61
65
  - spec/event_spec.rb
62
66
  - spec/timestamp_spec.rb
@@ -81,6 +85,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
85
  requirements:
82
86
  - jar com.fasterxml.jackson.core:jackson-core, 2.7.3
83
87
  - jar com.fasterxml.jackson.core:jackson-databind, 2.7.3
88
+ - jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.7.3
89
+ - jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.7.3
90
+ - jar org.apache.logging.log4j:log4j-api, 2.6.2
84
91
  rubyforge_project:
85
92
  rubygems_version: 2.4.8
86
93
  signing_key: