logstash-filter-ruby 3.1.1 → 3.1.2

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
  SHA256:
3
- metadata.gz: f3953d3586b1c85bdc4ada781ef86afcf993c87b4a80c36cb97a144b4899bda9
4
- data.tar.gz: b158b1b5f169ad9c3a39dfb9df860a783447b1a4683d5a49e423d6ee100c7165
3
+ metadata.gz: e6e83ad6fb8249fb71f960954f7fb9bf6be332827278489b37e714183f17453b
4
+ data.tar.gz: 251bb8ae5b184fab1beda5ac1c7415d725d76e376a43afee2c2c67fc7bd18ab9
5
5
  SHA512:
6
- metadata.gz: 2d9a1d424bf405afe0f34a19294b92255c9b59fbc2e06b447ffe7a23b7c375fd42955065524d5ea3df74115cbbdaf8c8fbcd97690d1c5a36e37f09793e2e5d78
7
- data.tar.gz: 984aac96251467e28071ce6ce5536f23c4a47f13e45af85a06abcf8675b0fd85ea4dddf1a2b248af1970dee57c9f5e621c2638cb30de9be8a8a18dfba655657c
6
+ metadata.gz: 9405d07f2fccb0b3e897537c3db5a61b03d2bec869a54b66f5be0f536d206f87d3f933d85751e1b1670e1fc6109d6da3604579ede565e76bca3224c4962cfd7e
7
+ data.tar.gz: 734530d566c92acbcd48d1b524eb5e5bcb44d122dec4771f80ee410e75363c229fe03a4d45d31aa4dad9bac0b04e150f8abe2619276df8170233488ef0e9a2e1
@@ -1,3 +1,6 @@
1
+ ## 3.1.2
2
+ - Fix concurrency issues in combination with Logstash 6.x and multiple worker threads that was caused by a [JRuby issue](https://github.com/jruby/jruby/issues/4868)
3
+
1
4
  ## 3.1.1
2
5
  - Update gemspec summary
3
6
 
@@ -56,7 +56,7 @@ class LogStash::Filters::Ruby < LogStash::Filters::Base
56
56
  def register
57
57
  if @code && @path.nil?
58
58
  eval(@init, binding, "(ruby filter init)") if @init
59
- eval("@codeblock = lambda { |event, &new_event_block| #{@code} }", binding, "(ruby filter code)")
59
+ eval("define_singleton_method :filter_method do |event, &new_event_block|\n #{@code} \nend", binding, "(ruby filter code)")
60
60
  elsif @path && @code.nil?
61
61
  @script.register
62
62
  else
@@ -86,7 +86,7 @@ class LogStash::Filters::Ruby < LogStash::Filters::Base
86
86
  end
87
87
 
88
88
  def inline_script(event, &block)
89
- @codeblock.call(event, &block)
89
+ filter_method(event, &block)
90
90
  filter_matched(event)
91
91
  rescue Exception => e
92
92
  @logger.error("Ruby exception occurred: #{e}")
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-ruby'
4
- s.version = '3.1.1'
4
+ s.version = '3.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Executes arbitrary Ruby code"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-07 00:00:00.000000000 Z
11
+ date: 2017-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.6.11
110
+ rubygems_version: 2.6.13
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Executes arbitrary Ruby code