-
Notifications
You must be signed in to change notification settings - Fork 1
/
sensu-plugins-log-pattern.gemspec
37 lines (33 loc) · 1.71 KB
/
sensu-plugins-log-pattern.gemspec
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
36
37
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'date'
if RUBY_VERSION < '2.0.0'
require 'sensu-plugins-log-pattern'
else
require_relative 'lib/sensu-plugins-log-pattern'
end
Gem::Specification.new do |s|
s.authors = ['Matteo Cerutti']
s.date = Date.today.to_s
s.description = 'This plugin provides facilities for monitoring patterns in log files'
s.email = '<matteo.cerutti@hotmail.co.uk>'
s.executables = Dir.glob('bin/**/*').map { |file| File.basename(file) }
s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md)
s.homepage = 'https://github.com/m4ce/sensu-plugins-log-pattern'
s.license = 'MIT'
s.metadata = { 'maintainer' => '@m4ce',
'development_status' => 'active',
'production_status' => 'stable',
'release_draft' => 'false',
'release_prerelease' => 'false'
}
s.name = 'sensu-plugins-log-pattern'
s.platform = Gem::Platform::RUBY
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
s.require_paths = ['lib']
s.required_ruby_version = '>= 1.9.3'
s.summary = 'Sensu plugins for monitoring patterns in log files'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.version = SensuPluginsLogPattern::Version::VER_STRING
s.add_runtime_dependency 'sensu-plugin', '1.2.0'
end