mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -04:00
* Make generated input plugin immediately buildable * Apply the same changes to codec, filter, and output templates * Uncomment TODOs in example gemspecs
25 lines
1.1 KiB
Text
25 lines
1.1 KiB
Text
Gem::Specification.new do |s|
|
|
s.name = 'logstash-input-<%= plugin_name %>'
|
|
s.version = '0.1.0'
|
|
s.licenses = ['Apache-2.0']
|
|
s.summary = 'Logstash Input Plugin for <%= classify(plugin_name) %>'
|
|
s.description = 'TODO: Write a longer description or delete this line.'
|
|
s.homepage = 'TODO: Put your plugin''s website or public repo URL here.'
|
|
s.authors = ['<%= author %>']
|
|
s.email = '<%= email %>'
|
|
s.require_paths = ['lib']
|
|
|
|
# Files
|
|
s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
|
|
# Tests
|
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
|
|
|
# Special flag to let us know this is actually a logstash plugin
|
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
|
|
|
|
# Gem dependencies
|
|
s.add_runtime_dependency "logstash-core-plugin-api", "~> <%= min_version %>"
|
|
s.add_runtime_dependency 'logstash-codec-plain'
|
|
s.add_runtime_dependency 'stud', '>= 0.0.22'
|
|
s.add_development_dependency 'logstash-devutils', '>= 0.0.16'
|
|
end
|