logstash-input-fifo 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/logstash-input-fifo.gemspec +6 -2
  4. data/vendor/bundle/jruby/1.9/cache/logstash-codec-json-3.0.2.gem +0 -0
  5. data/vendor/bundle/jruby/1.9/cache/logstash-codec-json_lines-3.0.2.gem +0 -0
  6. data/vendor/bundle/jruby/1.9/cache/logstash-codec-line-3.0.2.gem +0 -0
  7. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/CHANGELOG.md +37 -0
  8. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/CONTRIBUTORS +17 -0
  9. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/Gemfile +4 -0
  10. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/LICENSE +13 -0
  11. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/NOTICE.TXT +5 -0
  12. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/README.md +98 -0
  13. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/lib/logstash/codecs/json.rb +85 -0
  14. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/logstash-codec-json.gemspec +26 -0
  15. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json-3.0.2/spec/codecs/json_spec.rb +191 -0
  16. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/CHANGELOG.md +31 -0
  17. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/CONTRIBUTORS +19 -0
  18. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/Gemfile +4 -0
  19. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/LICENSE +13 -0
  20. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/NOTICE.TXT +5 -0
  21. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/README.md +98 -0
  22. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/lib/logstash/codecs/json_lines.rb +74 -0
  23. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/logstash-codec-json_lines.gemspec +29 -0
  24. data/vendor/bundle/jruby/1.9/gems/logstash-codec-json_lines-3.0.2/spec/codecs/json_lines_spec.rb +218 -0
  25. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/CHANGELOG.md +19 -0
  26. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/CONTRIBUTORS +15 -0
  27. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/Gemfile +4 -0
  28. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/LICENSE +13 -0
  29. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/NOTICE.TXT +5 -0
  30. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/README.md +98 -0
  31. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/lib/logstash/codecs/line.rb +60 -0
  32. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/logstash-codec-line.gemspec +27 -0
  33. data/vendor/bundle/jruby/1.9/gems/logstash-codec-line-3.0.2/spec/codecs/line_spec.rb +106 -0
  34. data/vendor/bundle/jruby/1.9/specifications/logstash-codec-json-3.0.2.gemspec +36 -0
  35. data/vendor/bundle/jruby/1.9/specifications/logstash-codec-json_lines-3.0.2.gemspec +39 -0
  36. data/vendor/bundle/jruby/1.9/specifications/logstash-codec-line-3.0.2.gemspec +36 -0
  37. metadata +77 -2
@@ -0,0 +1,19 @@
1
+ ## 3.0.2
2
+ - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
3
+
4
+ ## 3.0.1
5
+ - Republish all the gems under jruby.
6
+ ## 3.0.0
7
+ - Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
8
+ # 2.1.2
9
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
10
+ # 2.1.1
11
+ - New dependency requirements for logstash-core for the 5.0 release
12
+ ## 2.1.0
13
+ - Support the customization of the delimiter through :delimiter option
14
+
15
+ ## 2.0.0
16
+ - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
17
+ instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
18
+ - Dependency on logstash-core update to 2.0
19
+
@@ -0,0 +1,15 @@
1
+ The following is a list of people who have contributed ideas, code, bug
2
+ reports, or in general have helped logstash along its way.
3
+
4
+ Contributors:
5
+ * Colin Surprenant (colinsurprenant)
6
+ * Jordan Sissel (jordansissel)
7
+ * João Duarte (jsvd)
8
+ * Pier-Hugues Pellerin (ph)
9
+ * Richard Pijnenburg (electrical)
10
+ * Suyog Rao (suyograo)
11
+
12
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
13
+ Logstash, and you aren't on the list above and want to be, please let us know
14
+ and we'll make sure you're here. Contributions from folks like you are what make
15
+ open source awesome.
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
+ gemspec
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ Elasticsearch
2
+ Copyright 2012-2015 Elasticsearch
3
+
4
+ This product includes software developed by The Apache Software
5
+ Foundation (http://www.apache.org/).
@@ -0,0 +1,98 @@
1
+ # Logstash Plugin
2
+
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-codec-line.svg)](https://travis-ci.org/logstash-plugins/logstash-codec-line)
4
+
5
+ This is a plugin for [Logstash](https://github.com/elastic/logstash).
6
+
7
+ It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
8
+
9
+ ## Documentation
10
+
11
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
12
+
13
+ - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
14
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
15
+
16
+ ## Need Help?
17
+
18
+ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
19
+
20
+ ## Developing
21
+
22
+ ### 1. Plugin Developement and Testing
23
+
24
+ #### Code
25
+ - To get started, you'll need JRuby with the Bundler gem installed.
26
+
27
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
28
+
29
+ - Install dependencies
30
+ ```sh
31
+ bundle install
32
+ ```
33
+
34
+ #### Test
35
+
36
+ - Update your dependencies
37
+
38
+ ```sh
39
+ bundle install
40
+ ```
41
+
42
+ - Run tests
43
+
44
+ ```sh
45
+ bundle exec rspec
46
+ ```
47
+
48
+ ### 2. Running your unpublished Plugin in Logstash
49
+
50
+ #### 2.1 Run in a local Logstash clone
51
+
52
+ - Edit Logstash `Gemfile` and add the local plugin path, for example:
53
+ ```ruby
54
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
55
+ ```
56
+ - Install plugin
57
+ ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
62
+ bin/plugin install --no-verify
63
+
64
+ ```
65
+ - Run Logstash with your plugin
66
+ ```sh
67
+ bin/logstash -e 'filter {awesome {}}'
68
+ ```
69
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
70
+
71
+ #### 2.2 Run in an installed Logstash
72
+
73
+ You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
74
+
75
+ - Build your plugin gem
76
+ ```sh
77
+ gem build logstash-filter-awesome.gemspec
78
+ ```
79
+ - Install the plugin from the Logstash home
80
+ ```sh
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
87
+ ```
88
+ - Start Logstash and proceed to test the plugin
89
+
90
+ ## Contributing
91
+
92
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
93
+
94
+ Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
95
+
96
+ It is more important to the community that you are able to contribute.
97
+
98
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -0,0 +1,60 @@
1
+ # encoding: utf-8
2
+ require "logstash/codecs/base"
3
+ require "logstash/util/charset"
4
+
5
+ # Line-oriented text data.
6
+ #
7
+ # Decoding behavior: Only whole line events will be emitted.
8
+ #
9
+ # Encoding behavior: Each event will be emitted with a trailing newline.
10
+ class LogStash::Codecs::Line < LogStash::Codecs::Base
11
+ config_name "line"
12
+
13
+ # Set the desired text format for encoding.
14
+ config :format, :validate => :string
15
+
16
+ # The character encoding used in this input. Examples include `UTF-8`
17
+ # and `cp1252`
18
+ #
19
+ # This setting is useful if your log files are in `Latin-1` (aka `cp1252`)
20
+ # or in another character set other than `UTF-8`.
21
+ #
22
+ # This only affects "plain" format logs since json is `UTF-8` already.
23
+ config :charset, :validate => ::Encoding.name_list, :default => "UTF-8"
24
+
25
+ # Change the delimiter that separates lines
26
+ config :delimiter, :validate => :string, :default => "\n"
27
+
28
+ public
29
+ def register
30
+ require "logstash/util/buftok"
31
+ @buffer = FileWatch::BufferedTokenizer.new(@delimiter)
32
+ @converter = LogStash::Util::Charset.new(@charset)
33
+ @converter.logger = @logger
34
+ end
35
+
36
+ public
37
+ def decode(data)
38
+ @buffer.extract(data).each do |line|
39
+ yield LogStash::Event.new("message" => @converter.convert(line))
40
+ end
41
+ end # def decode
42
+
43
+ public
44
+ def flush(&block)
45
+ remainder = @buffer.flush
46
+ if !remainder.empty?
47
+ block.call(LogStash::Event.new("message" => @converter.convert(remainder)))
48
+ end
49
+ end
50
+
51
+ public
52
+ def encode(event)
53
+ if event.is_a? LogStash::Event and @format
54
+ @on_event.call(event, event.sprintf(@format) + @delimiter)
55
+ else
56
+ @on_event.call(event, event.to_s + @delimiter)
57
+ end
58
+ end # def encode
59
+
60
+ end # class LogStash::Codecs::Plain
@@ -0,0 +1,27 @@
1
+ Gem::Specification.new do |s|
2
+
3
+ s.name = 'logstash-codec-line'
4
+ s.version = '3.0.2'
5
+ s.licenses = ['Apache License (2.0)']
6
+ s.summary = "Line-oriented text data."
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"
8
+ s.authors = ["Elastic"]
9
+ s.email = 'info@elastic.co'
10
+ s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
11
+ s.require_paths = ["lib"]
12
+
13
+ # Files
14
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
+
16
+ # Tests
17
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
+
19
+ # Special flag to let us know this is actually a logstash plugin
20
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "codec" }
21
+
22
+ # Gem dependencies
23
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
+
25
+ s.add_development_dependency 'logstash-devutils'
26
+ end
27
+
@@ -0,0 +1,106 @@
1
+ # encoding: utf-8
2
+
3
+ require "logstash/devutils/rspec/spec_helper"
4
+ require "logstash/codecs/line"
5
+ require "logstash/event"
6
+
7
+ describe LogStash::Codecs::Line do
8
+ subject do
9
+ next LogStash::Codecs::Line.new
10
+ end
11
+
12
+ context "#encode" do
13
+ let (:event) {LogStash::Event.new({"message" => "hello world", "host" => "test"})}
14
+
15
+ it "should return a default date formatted line" do
16
+ expect(subject).to receive(:on_event).once.and_call_original
17
+ subject.on_event do |e, d|
18
+ insist {d} == event.to_s + "\n"
19
+ end
20
+ subject.encode(event)
21
+ end
22
+
23
+ it "should respect the supplied format" do
24
+ format = "%{host}"
25
+ subject.format = format
26
+ expect(subject).to receive(:on_event).once.and_call_original
27
+ subject.on_event do |e, d|
28
+ insist {d} == event.sprintf(format) + "\n"
29
+ end
30
+ subject.encode(event)
31
+ end
32
+
33
+ context "when using custom :delimiter" do
34
+ subject do
35
+ next LogStash::Codecs::Line.new("delimiter" => "|")
36
+ end
37
+
38
+ it "should append the delimiter to the line" do
39
+ expect(subject).to receive(:on_event).once.and_call_original
40
+ subject.on_event do |e, d|
41
+ insist {d} == event.to_s + "|"
42
+ end
43
+ subject.encode(event)
44
+ end
45
+ end
46
+ end
47
+
48
+ context "#decode" do
49
+ it "should return an event from an ascii string" do
50
+ decoded = false
51
+ subject.decode("hello world\n") do |e|
52
+ decoded = true
53
+ insist { e.is_a?(LogStash::Event) }
54
+ insist { e.get("message") } == "hello world"
55
+ end
56
+ insist { decoded } == true
57
+ end
58
+
59
+ it "should return an event from a valid utf-8 string" do
60
+ subject.decode("München\n") do |e|
61
+ insist { e.is_a?(LogStash::Event) }
62
+ insist { e.get("message") } == "München"
63
+ end
64
+ end
65
+
66
+ context "when using custom :delimiter" do
67
+ subject do
68
+ next LogStash::Codecs::Line.new("delimiter" => "|")
69
+ end
70
+
71
+ it "should not break lines by '\n'" do
72
+ line = "line1\nline2\nline3\n"
73
+ result = []
74
+ subject.decode(line) { |e| result << e }
75
+ subject.flush { |e| result << e }
76
+ expect(result.size).to eq(1)
77
+ expect(result[0].get("message")).to eq(line)
78
+ end
79
+
80
+ it "should break lines by that delimiter" do
81
+ result = []
82
+ subject.decode("line1|line2|line3|") { |e| result << e }
83
+ subject.flush { |e| result << e }
84
+ expect(result.size).to eq(3)
85
+ expect(result[0].get("message")).to eq("line1")
86
+ expect(result[1].get("message")).to eq("line2")
87
+ expect(result[2].get("message")).to eq("line3")
88
+ end
89
+ end
90
+ end
91
+
92
+ context "#flush" do
93
+ it "should convert charsets" do
94
+ garbage = [0xD0].pack("C")
95
+ subject.decode(garbage) do |e|
96
+ fail "Should not get here."
97
+ end
98
+ count = 0
99
+ subject.flush do |event|
100
+ count += 1
101
+ insist { event.get("message").encoding } == Encoding::UTF_8
102
+ end
103
+ insist { count } == 1
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,36 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # stub: logstash-codec-json 3.0.2 ruby lib
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "logstash-codec-json"
6
+ s.version = "3.0.2"
7
+
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
+ s.metadata = { "logstash_group" => "codec", "logstash_plugin" => "true" } if s.respond_to? :metadata=
10
+ s.require_paths = ["lib"]
11
+ s.authors = ["Elastic"]
12
+ s.date = "2016-07-14"
13
+ 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"
14
+ s.email = "info@elastic.co"
15
+ s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
16
+ s.licenses = ["Apache License (2.0)"]
17
+ s.rubygems_version = "2.4.8"
18
+ s.summary = "This codec may be used to decode (via inputs) and encode (via outputs) full JSON messages"
19
+
20
+ s.installed_by_version = "2.4.8" if s.respond_to? :installed_by_version
21
+
22
+ if s.respond_to? :specification_version then
23
+ s.specification_version = 4
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
27
+ s.add_development_dependency(%q<logstash-devutils>, [">= 0"])
28
+ else
29
+ s.add_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
30
+ s.add_dependency(%q<logstash-devutils>, [">= 0"])
31
+ end
32
+ else
33
+ s.add_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
34
+ s.add_dependency(%q<logstash-devutils>, [">= 0"])
35
+ end
36
+ end
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # stub: logstash-codec-json_lines 3.0.2 ruby lib
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "logstash-codec-json_lines"
6
+ s.version = "3.0.2"
7
+
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
+ s.metadata = { "logstash_group" => "codec", "logstash_plugin" => "true" } if s.respond_to? :metadata=
10
+ s.require_paths = ["lib"]
11
+ s.authors = ["Elastic"]
12
+ s.date = "2016-07-14"
13
+ 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"
14
+ s.email = "info@elastic.co"
15
+ s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
16
+ s.licenses = ["Apache License (2.0)"]
17
+ s.rubygems_version = "2.4.8"
18
+ s.summary = "This codec will decode streamed JSON that is newline delimited."
19
+
20
+ s.installed_by_version = "2.4.8" if s.respond_to? :installed_by_version
21
+
22
+ if s.respond_to? :specification_version then
23
+ s.specification_version = 4
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
27
+ s.add_runtime_dependency(%q<logstash-codec-line>, [">= 2.1.0"])
28
+ s.add_development_dependency(%q<logstash-devutils>, [">= 0"])
29
+ else
30
+ s.add_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
31
+ s.add_dependency(%q<logstash-codec-line>, [">= 2.1.0"])
32
+ s.add_dependency(%q<logstash-devutils>, [">= 0"])
33
+ end
34
+ else
35
+ s.add_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
36
+ s.add_dependency(%q<logstash-codec-line>, [">= 2.1.0"])
37
+ s.add_dependency(%q<logstash-devutils>, [">= 0"])
38
+ end
39
+ end
@@ -0,0 +1,36 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # stub: logstash-codec-line 3.0.2 ruby lib
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "logstash-codec-line"
6
+ s.version = "3.0.2"
7
+
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
+ s.metadata = { "logstash_group" => "codec", "logstash_plugin" => "true" } if s.respond_to? :metadata=
10
+ s.require_paths = ["lib"]
11
+ s.authors = ["Elastic"]
12
+ s.date = "2016-07-14"
13
+ 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"
14
+ s.email = "info@elastic.co"
15
+ s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
16
+ s.licenses = ["Apache License (2.0)"]
17
+ s.rubygems_version = "2.4.8"
18
+ s.summary = "Line-oriented text data."
19
+
20
+ s.installed_by_version = "2.4.8" if s.respond_to? :installed_by_version
21
+
22
+ if s.respond_to? :specification_version then
23
+ s.specification_version = 4
24
+
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
27
+ s.add_development_dependency(%q<logstash-devutils>, [">= 0"])
28
+ else
29
+ s.add_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
30
+ s.add_dependency(%q<logstash-devutils>, [">= 0"])
31
+ end
32
+ else
33
+ s.add_dependency(%q<logstash-core-plugin-api>, ["<= 2.99", ">= 1.60"])
34
+ s.add_dependency(%q<logstash-devutils>, [">= 0"])
35
+ end
36
+ end