logstash-core 5.6.2-java → 5.6.3-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a1d5e237f74ab92c97ad7b6ec1bd1fa1400d3cb
4
- data.tar.gz: 84e307b3937569a7b79b8ab9ec45db1a569e5c3c
3
+ metadata.gz: fef2dc1c5cc3cbee836c5250ca4c9d125ac18302
4
+ data.tar.gz: 710215041fb6cce31484f588d2d141de3d126caf
5
5
  SHA512:
6
- metadata.gz: a94a2b80822a8d1d3ea137799a2cc623815b2b830daba4d8a3a14d6f200e644ceb8bf1fce608c822a21739fe3fed9a61b0912fda51d1b7f127923d96dfac0883
7
- data.tar.gz: 1ffd5556efae4a5e2f657834527e29ab841ae339f3d3e70ef4ecf0a49941f61010fe908799aa01a12186c0028446ac76bca2652460b3280cb8c66b823a73998e
6
+ metadata.gz: 5a5a8302cdb3e5a947eaa0888bb284b3f05011ac0d928420ec32b0ea3bff90721580d81c2896556647c2c21b354c14a31e68d2926f1ee0d6c186d0adb4954198
7
+ data.tar.gz: 36061c2b853e3a70b53a1bfb929597ab1d9f3f489596afe18972ea8d3f941446b5f92f63a92329a08fae2efb219fe9d53c6a49991040f7b25b7147851ba9ee76
@@ -4,7 +4,8 @@
4
4
 
5
5
  gem.requirements << "jar org.apache.logging.log4j:log4j-api, 2.6.2"
6
6
  gem.requirements << "jar org.apache.logging.log4j:log4j-core, 2.6.2"
7
- gem.requirements << "jar com.fasterxml.jackson.core:jackson-core, 2.7.4"
8
- gem.requirements << "jar com.fasterxml.jackson.core:jackson-databind, 2.7.4"
9
- gem.requirements << "jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.7.4"
10
- gem.requirements << "jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.7.4"
7
+ gem.requirements << "jar com.fasterxml.jackson.core:jackson-core, 2.9.1"
8
+ gem.requirements << "jar com.fasterxml.jackson.core:jackson-databind, 2.9.1"
9
+ gem.requirements << "jar com.fasterxml.jackson.core:jackson-annotations, 2.9.1"
10
+ gem.requirements << "jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.9.1"
11
+ gem.requirements << "jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.9.1"
@@ -2,7 +2,11 @@
2
2
 
3
3
  # The version of logstash core gem.
4
4
  #
5
- # Note to authors: this should not include dashes because 'gem' barfs if
6
- # you include a dash in the version string.
7
-
8
- LOGSTASH_CORE_VERSION = "5.6.2"
5
+ # sourced from a copy of the master versions.yml file, see logstash-core/logstash-core.gemspec
6
+ if !defined?(ALL_VERSIONS)
7
+ require 'yaml'
8
+ ALL_VERSIONS = YAML.load_file(File.expand_path("../../versions-gem-copy.yml", File.dirname(__FILE__)))
9
+ end
10
+ if !defined?(LOGSTASH_CORE_VERSION)
11
+ LOGSTASH_CORE_VERSION = ALL_VERSIONS.fetch("logstash-core")
12
+ end
@@ -3,20 +3,20 @@ begin
3
3
  require 'jar_dependencies'
4
4
  rescue LoadError
5
5
  require 'org/apache/logging/log4j/log4j-core/2.6.2/log4j-core-2.6.2.jar'
6
- require 'com/fasterxml/jackson/module/jackson-module-afterburner/2.7.4/jackson-module-afterburner-2.7.4.jar'
6
+ require 'com/fasterxml/jackson/core/jackson-databind/2.9.1/jackson-databind-2.9.1.jar'
7
7
  require 'org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar'
8
- require 'com/fasterxml/jackson/core/jackson-core/2.7.4/jackson-core-2.7.4.jar'
9
- require 'com/fasterxml/jackson/core/jackson-annotations/2.7.0/jackson-annotations-2.7.0.jar'
10
- require 'com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.7.4/jackson-dataformat-cbor-2.7.4.jar'
11
- require 'com/fasterxml/jackson/core/jackson-databind/2.7.4/jackson-databind-2.7.4.jar'
8
+ require 'com/fasterxml/jackson/core/jackson-annotations/2.9.1/jackson-annotations-2.9.1.jar'
9
+ require 'com/fasterxml/jackson/module/jackson-module-afterburner/2.9.1/jackson-module-afterburner-2.9.1.jar'
10
+ require 'com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.9.1/jackson-dataformat-cbor-2.9.1.jar'
11
+ require 'com/fasterxml/jackson/core/jackson-core/2.9.1/jackson-core-2.9.1.jar'
12
12
  end
13
13
 
14
14
  if defined? Jars
15
15
  require_jar( 'org.apache.logging.log4j', 'log4j-core', '2.6.2' )
16
- require_jar( 'com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.7.4' )
16
+ require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.9.1' )
17
17
  require_jar( 'org.apache.logging.log4j', 'log4j-api', '2.6.2' )
18
- require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.7.4' )
19
- require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.7.0' )
20
- require_jar( 'com.fasterxml.jackson.dataformat', 'jackson-dataformat-cbor', '2.7.4' )
21
- require_jar( 'com.fasterxml.jackson.core', 'jackson-databind', '2.7.4' )
18
+ require_jar( 'com.fasterxml.jackson.core', 'jackson-annotations', '2.9.1' )
19
+ require_jar( 'com.fasterxml.jackson.module', 'jackson-module-afterburner', '2.9.1' )
20
+ require_jar( 'com.fasterxml.jackson.dataformat', 'jackson-dataformat-cbor', '2.9.1' )
21
+ require_jar( 'com.fasterxml.jackson.core', 'jackson-core', '2.9.1' )
22
22
  end
@@ -141,7 +141,7 @@ module LogStash; module Config; module AST
141
141
  # of the output/filter function
142
142
  definitions << "define_singleton_method :#{type}_func do |event|"
143
143
  definitions << " targeted_outputs = []" if type == "output"
144
- definitions << " events = [event]" if type == "filter"
144
+ definitions << " events = event" if type == "filter"
145
145
  definitions << " @logger.debug? && @logger.debug(\"#{type} received\", \"event\" => event.to_hash)"
146
146
 
147
147
  sections.select { |s| s.plugin_type.text_value == type }.each do |s|
@@ -395,11 +395,9 @@ module LogStash; class Pipeline < BasePipeline
395
395
  end
396
396
 
397
397
  def filter_batch(batch)
398
- batch.each do |event|
399
- filter_func(event).each do |e|
400
- #these are both original and generated events
401
- batch.merge(e) unless e.cancelled?
402
- end
398
+ filter_func(batch.to_a).each do |e|
399
+ #these are both original and generated events
400
+ batch.merge(e) unless e.cancelled?
403
401
  end
404
402
  @filter_queue_client.add_filtered_metrics(batch)
405
403
  @events_filtered.increment(batch.size)
@@ -539,7 +537,7 @@ module LogStash; class Pipeline < BasePipeline
539
537
  # in the pipeline anymore.
540
538
  def filter(event, &block)
541
539
  # filter_func returns all filtered events, including cancelled ones
542
- filter_func(event).each { |e| block.call(e) }
540
+ filter_func([event]).each {|e| block.call(e)}
543
541
  end
544
542
 
545
543
 
@@ -287,6 +287,12 @@ module LogStash; module Util
287
287
  # @cancelled[event] = true
288
288
  end
289
289
 
290
+ def to_a
291
+ events = []
292
+ each {|e| events << e}
293
+ events
294
+ end
295
+
290
296
  def each(&blk)
291
297
  # take care not to cause @originals or @generated to change during iteration
292
298
 
@@ -218,6 +218,12 @@ module LogStash; module Util
218
218
  # @cancelled[event] = true
219
219
  end
220
220
 
221
+ def to_a
222
+ events = []
223
+ each {|e| events << e}
224
+ events
225
+ end
226
+
221
227
  def each(&blk)
222
228
  # take care not to cause @originals or @generated to change during iteration
223
229
  @iterating = true
@@ -2,13 +2,11 @@
2
2
 
3
3
  # The version of the logstash package (not the logstash-core gem version).
4
4
  #
5
- # Note to authors: this should not include dashes because 'gem' barfs if
6
- # you include a dash in the version string.
7
-
8
- # TODO: (colin) the logstash-core gem uses it's own version number in logstash-core/lib/logstash-core/version.rb
9
- # there are some dependencies in logstash-core on the LOGSTASH_VERSION constant this is why
10
- # the logstash version is currently defined here in logstash-core/lib/logstash/version.rb but
11
- # eventually this file should be in the root logstash lib fir and dependencies in logstash-core should be
12
- # fixed.
13
-
14
- LOGSTASH_VERSION = "5.6.2"
5
+ # sourced from a copy of the master versions.yml file, see logstash-core/logstash-core.gemspec
6
+ if !defined?(ALL_VERSIONS)
7
+ require 'yaml'
8
+ ALL_VERSIONS = YAML.load_file(File.expand_path("../../versions-gem-copy.yml", File.dirname(__FILE__)))
9
+ end
10
+ if !defined?(LOGSTASH_VERSION)
11
+ LOGSTASH_VERSION = ALL_VERSIONS.fetch("logstash")
12
+ end
@@ -1,6 +1,25 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ project_versions_yaml_path = File.expand_path("../versions.yml", File.dirname(__FILE__))
6
+ if File.exist?(project_versions_yaml_path)
7
+ # we need to copy the project level versions.yml into the gem root
8
+ # to be able to package it into the gems file structure
9
+ # as the require 'logstash-core/version' loads the yaml file from within the gem root.
10
+ #
11
+ # we ignore the copy in git and we overwrite an existing file
12
+ # each time we build the logstash-core gem
13
+ original_lines = IO.readlines(project_versions_yaml_path)
14
+ original_lines << ""
15
+ original_lines << "# This is a copy the project level versions.yml into this gem's root and it is created when the gemspec is evaluated."
16
+ gem_versions_yaml_path = File.expand_path("./versions-gem-copy.yml", File.dirname(__FILE__))
17
+ File.open(gem_versions_yaml_path, 'w') do |new_file|
18
+ # create or overwrite
19
+ new_file.puts(original_lines)
20
+ end
21
+ end
22
+
4
23
  require 'logstash-core/version'
5
24
 
6
25
  Gem::Specification.new do |gem|
@@ -11,7 +30,10 @@ Gem::Specification.new do |gem|
11
30
  gem.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
12
31
  gem.license = "Apache License (2.0)"
13
32
 
14
- gem.files = Dir.glob(["logstash-core.gemspec", "gemspec_jars.rb", "lib/**/*.rb", "spec/**/*.rb", "locales/*", "lib/logstash/api/init.ru", "lib/logstash-core/logstash-core.jar"])
33
+ gem.files = Dir.glob(
34
+ %w(versions-gem-copy.yml logstash-core.gemspec gemspec_jars.rb lib/**/*.rb spec/**/*.rb locales/*
35
+ lib/logstash/api/init.ru lib/logstash-core/logstash-core.jar)
36
+ )
15
37
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
38
  gem.name = "logstash-core"
17
39
  gem.require_paths = ["lib"]
@@ -46,7 +68,7 @@ Gem::Specification.new do |gem|
46
68
  gem.add_runtime_dependency "rubyzip", "~> 1.1.7"
47
69
  gem.add_runtime_dependency "thread_safe", "~> 0.3.5" #(Apache 2.0 license)
48
70
 
49
- gem.add_runtime_dependency "jrjackson", "~> 0.4.0" #(Apache 2.0 license)
71
+ gem.add_runtime_dependency "jrjackson", "~> #{ALL_VERSIONS.fetch('jrjackson')}" #(Apache 2.0 license)
50
72
 
51
73
  gem.add_runtime_dependency "jar-dependencies"
52
74
  # as of Feb 3rd 2016, the ruby-maven gem is resolved to version 3.3.3 and that version
@@ -585,9 +585,9 @@ describe LogStash::Pipeline do
585
585
 
586
586
  it "should handle evaluating different config" do
587
587
  expect(pipeline1.output_func(LogStash::Event.new)).not_to include(nil)
588
- expect(pipeline1.filter_func(LogStash::Event.new)).not_to include(nil)
588
+ expect(pipeline1.filter_func([LogStash::Event.new])).not_to include(nil)
589
589
  expect(pipeline2.output_func(LogStash::Event.new)).not_to include(nil)
590
- expect(pipeline1.filter_func(LogStash::Event.new)).not_to include(nil)
590
+ expect(pipeline1.filter_func([LogStash::Event.new])).not_to include(nil)
591
591
  end
592
592
  end
593
593
 
@@ -668,9 +668,9 @@ describe LogStash::Pipeline do
668
668
  # in the current instance and was returning an array containing nil values for
669
669
  # the match.
670
670
  expect(pipeline1.output_func(LogStash::Event.new)).not_to include(nil)
671
- expect(pipeline1.filter_func(LogStash::Event.new)).not_to include(nil)
671
+ expect(pipeline1.filter_func([LogStash::Event.new])).not_to include(nil)
672
672
  expect(pipeline2.output_func(LogStash::Event.new)).not_to include(nil)
673
- expect(pipeline1.filter_func(LogStash::Event.new)).not_to include(nil)
673
+ expect(pipeline1.filter_func([LogStash::Event.new])).not_to include(nil)
674
674
  end
675
675
  end
676
676
 
@@ -0,0 +1,12 @@
1
+ ---
2
+ logstash: 5.6.3
3
+ logstash-core: 5.6.3
4
+ logstash-core-plugin-api: 2.1.12
5
+
6
+ # Note: this file is copied to the root of logstash-core because its gemspec needs it when
7
+ # bundler evaluates the gemspec via bin/logstash
8
+ # Ensure Jackson version here is kept in sync with version used by jrjackson gem
9
+ jrjackson: 0.4.3
10
+ jackson: 2.9.1
11
+
12
+ # This is a copy the project level versions.yml into this gem's root and it is created when the gemspec is evaluated.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.2
4
+ version: 5.6.3
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-23 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -251,7 +251,7 @@ dependencies:
251
251
  requirements:
252
252
  - - "~>"
253
253
  - !ruby/object:Gem::Version
254
- version: 0.4.0
254
+ version: 0.4.3
255
255
  name: jrjackson
256
256
  prerelease: false
257
257
  type: :runtime
@@ -259,7 +259,7 @@ dependencies:
259
259
  requirements:
260
260
  - - "~>"
261
261
  - !ruby/object:Gem::Version
262
- version: 0.4.0
262
+ version: 0.4.3
263
263
  - !ruby/object:Gem::Dependency
264
264
  requirement: !ruby/object:Gem::Requirement
265
265
  requirements:
@@ -574,6 +574,7 @@ files:
574
574
  - spec/support/mocks_classes.rb
575
575
  - spec/support/shared_contexts.rb
576
576
  - spec/support/shared_examples.rb
577
+ - versions-gem-copy.yml
577
578
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
578
579
  licenses:
579
580
  - Apache License (2.0)
@@ -595,10 +596,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
595
596
  requirements:
596
597
  - jar org.apache.logging.log4j:log4j-api, 2.6.2
597
598
  - jar org.apache.logging.log4j:log4j-core, 2.6.2
598
- - jar com.fasterxml.jackson.core:jackson-core, 2.7.4
599
- - jar com.fasterxml.jackson.core:jackson-databind, 2.7.4
600
- - jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.7.4
601
- - jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.7.4
599
+ - jar com.fasterxml.jackson.core:jackson-core, 2.9.1
600
+ - jar com.fasterxml.jackson.core:jackson-databind, 2.9.1
601
+ - jar com.fasterxml.jackson.core:jackson-annotations, 2.9.1
602
+ - jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.9.1
603
+ - jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.9.1
602
604
  rubyforge_project:
603
605
  rubygems_version: 2.4.8
604
606
  signing_key: