-
Notifications
You must be signed in to change notification settings - Fork 1
/
zbxapi.gemspec
50 lines (45 loc) · 1.88 KB
/
zbxapi.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
#GPL 2.0 http://www.gnu.org/licenses/gpl-2.0.html
#Zabbix CLI Tool and associated files
#Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
#
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 2
#of the License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
##########################################
# Subversion information
# $Id$
# $Revision$
##########################################
#Zabbix API Ruby Interface GemSpec file
revision="$Revision$"
result=/[^\d]*(\d*)[^\d]*/.match(revision)
revision=result[1].to_i
spec = Gem::Specification.new do |s|
s.name = %q{zbxapi}
s.rubyforge_project = "zbxapi"
s.version = "0.1.#{revision}"
s.authors = ["A. Nelson"]
s.email = %q{[email protected]}
s.summary = %q{Ruby wrapper to the Zabbix API}
s.homepage = %q{http://trac.red-tux.net/}
s.description = %q{Provides a straight forward interface to manipulate Zabbix servers using the Zabbix API.}
s.licenses = "LGPL 2.1"
s.requirements = "Requires json"
s.add_dependency('json')
s.require_paths =["."]
s.files =
["zbxapi.rb", "zbxapi/zdebug.rb", "zbxapi/api_exceptions.rb",
"zbxapi/exceptions.rb", "zbxapi/utils.rb", "zbxapi/result.rb",
"api_classes/api_dsl.rb"]
s.files +=Dir[File.dirname(__FILE__)+"/api_classes/" + 'dsl_*.rb']
end