This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
icinga2.gemspec
66 lines (54 loc) · 2.03 KB
/
icinga2.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
55
56
57
58
59
60
61
62
63
64
65
66
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'icinga2/version'
Gem::Specification.new do |s|
s.name = 'icinga2'
s.version = Icinga2::VERSION
s.date = '2018-03-29'
s.summary = 'Ruby SDK for easly access to the Icinga2 API'
s.description = 'An enhanced ruby gem to communicate with Icinga2 API.' +
'It\'s allowed create small applications to connect to Icinga2 to add Hosts, Services,' +
'User and so on.'
s.authors = ['Bodo Schulz']
s.email = '[email protected]'
s.files = Dir[
'README.md',
'LICENSE',
'lib/**/*',
'spec/*',
'doc/*.md',
'examples/*.rb'
]
s.homepage = 'https://github.com/bodsch/ruby-icinga2'
s.license = 'LGPL-2.1+'
begin
if( RUBY_VERSION >= '2.0' )
s.required_ruby_version = '~> 2.0'
elsif( RUBY_VERSION <= '2.1' )
s.required_ruby_version = '~> 2.1'
elsif( RUBY_VERSION <= '2.2' )
s.required_ruby_version = '~> 2.2'
elsif( RUBY_VERSION <= '2.3' )
s.required_ruby_version = '~> 2.3'
end
s.add_dependency('ruby_dig', '~> 0') if RUBY_VERSION < '2.3'
s.add_dependency('openssl', '~> 2.0') if RUBY_VERSION >= '2.3'
rescue => e
warn "#{$PROGRAM_NAME}: #{e}"
exit!
end
s.add_dependency('json', '~> 2.1')
s.add_dependency('rest-client', '~> 2.0')
s.add_development_dependency('rake', '~> 0')
s.add_development_dependency('rake-notes', '~> 0')
s.add_development_dependency('rubocop', '~> 0.49.0')
s.add_development_dependency('rubocop-checkstyle_formatter', '~> 0')
s.add_development_dependency('rspec', '~> 0')
s.add_development_dependency('rspec_junit_formatter', '~> 0')
s.add_development_dependency('rspec-nc', '~> 0')
s.add_development_dependency('guard', '~> 0')
s.add_development_dependency('guard-rspec', '~> 0')
s.add_development_dependency('pry', '~> 0')
s.add_development_dependency('pry-remote', '~> 0')
s.add_development_dependency('pry-nav', '~> 0')
end