Commit 43bc81d2 authored by Pablo Carranza's avatar Pablo Carranza
Browse files

Add version as a ruby file, moved executable script to exe

parent c40cea5b
......@@ -53,9 +53,9 @@ def main
end
options.validate!
GitProber.new(options).probe_pull.probe_push.write
# rescue => e
# puts e
# exit 1
rescue => e
puts e
exit 1
end
main() if __FILE__ == $0
require "gitlab_monitor/version"
Gem::Specification.new do |s|
s.name = "gitlab-monitoring"
s.version = "0.0.1"
s.version = GitLab::Monitor::VERSION
s.date = "2016-07-27"
s.summary = "GitLab monitoring tools"
s.description = "GitLab monitoring tools"
s.description = "GitLab monitoring tools to use with prometheus"
s.authors = ["Pablo Carranza"]
s.email = "pablo@gitlab.com"
s.files = `git ls-files -z`.split("\x0")
s.bindir = "exe"
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(spec)/})
s.require_paths = ["lib"]
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.homepage = "http://gitlab.com"
s.license = "MIT"
s.add_development_dependency "rspec", "~> 3.3"
end
module GitLab
module Monitor
VERSION = "0.0.1"
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment