-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlogstash-filter-python.gemspec
More file actions
35 lines (26 loc) · 1.37 KB
/
logstash-filter-python.gemspec
File metadata and controls
35 lines (26 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
raise "Only JRuby is supported" unless RUBY_PLATFORM == "java"
Gem::Specification.new do |s|
s.name = 'logstash-filter-python'
s.version = '0.0.1'
s.licenses = ['Apache License (2.0)']
s.summary = "Filter for executing python code on the event"
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"
s.authors = ["Tobias"]
s.email = 'tsmolka@gmail.com'
s.homepage = "https://github.com/tsmolka/logstash-filter-python"
s.require_paths = ["lib"]
# Files
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
# Tests
s.test_files = `git ls-files -z`.split("\x0").reject { |f| !f.match(%r{^(test|spec|features)/}) }
# Special flag to let us know this is actually a logstash plugin
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
s.platform = 'java'
# Gem dependencies
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
s.add_runtime_dependency "jruby-jython"
s.add_development_dependency 'bundler', '~> 1.10'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'rspec'
s.add_development_dependency 'logstash-devutils'
end