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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/filters/ruby.rb +2 -2
- data/logstash-filter-ruby.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6e83ad6fb8249fb71f960954f7fb9bf6be332827278489b37e714183f17453b
|
4
|
+
data.tar.gz: 251bb8ae5b184fab1beda5ac1c7415d725d76e376a43afee2c2c67fc7bd18ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9405d07f2fccb0b3e897537c3db5a61b03d2bec869a54b66f5be0f536d206f87d3f933d85751e1b1670e1fc6109d6da3604579ede565e76bca3224c4962cfd7e
|
7
|
+
data.tar.gz: 734530d566c92acbcd48d1b524eb5e5bcb44d122dec4771f80ee410e75363c229fe03a4d45d31aa4dad9bac0b04e150f8abe2619276df8170233488ef0e9a2e1
|
data/CHANGELOG.md
CHANGED
@@ -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("
|
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
|
-
|
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.
|
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.
|
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-
|
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.
|
110
|
+
rubygems_version: 2.6.13
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Executes arbitrary Ruby code
|