-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsensu-plugins-snmptrap-extension.gemspec
54 lines (48 loc) · 2.75 KB
/
sensu-plugins-snmptrap-extension.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'date'
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
require 'sensu-plugins-snmptrap-extension'
else
require_relative 'lib/sensu-plugins-snmptrap-extension'
end
Gem::Specification.new do |s|
s.authors = ['Toby Jackson',
'Peter Daugavietis']
s.cert_chain = ['certs/sensu-plugins.pem']
s.date = Date.today.to_s
s.description = 'Sensu extension for trapping SNMP events and reemiting as templated events'
s.executables = Dir.glob('bin/**/*.rb').map { |file| File.basename(file) }
s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md)
s.homepage = 'https://github.com/warmfusion/sensu-extension-snmptrap'
s.license = 'MIT'
s.metadata = { 'maintainer' => '@warmfusion',
'development_status' => 'active',
'production_status' => 'unstable - testing recommended',
'release_draft' => 'false',
'release_prerelease' => 'false'
}
s.name = 'sensu-plugins-snmptrap-extension'
s.platform = Gem::Platform::RUBY
s.post_install_message = 'Ensure you symlink the bin/extension-snmptrap.rb to your sensu/extensions directory'
s.require_paths = ['lib']
s.required_ruby_version = '>= 1.9.3'
s.summary = 'Sensu extension to capture SNMP trap events'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.version = SensuPluginsSnmptrapExtension::Version::VER_STRING
s.add_runtime_dependency 'snmp', '>= 1.2.0'
s.add_runtime_dependency 'sensu-plugin', '1.2.0'
s.add_development_dependency 'bundler', '~> 1.7'
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4 ', '< 0.6'
s.add_development_dependency 'github-markup', '~> 1.3'
s.add_development_dependency 'pry', '~> 0.10'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'rubocop', '0.32.1'
s.add_development_dependency 'redcarpet', '~> 3.2'
s.add_development_dependency 'yard', '~> 0.8'
# Support for older Ruby installs
s.add_development_dependency 'activesupport', '> 4.2', '< 5.0'
s.add_development_dependency 'json', '< 2.0'
end