First commit, gem structure.

This commit is contained in:
Felipe Oliveira 2012-12-07 15:02:45 -02:00
commit ec621dbfde
9 changed files with 60 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
Gemfile.lock

2
.rspec Normal file
View file

@ -0,0 +1,2 @@
--color
--format progress

3
Gemfile Normal file
View file

@ -0,0 +1,3 @@
source :rubygems
gemspec

8
README.md Normal file
View file

@ -0,0 +1,8 @@
NSCA Client
===========
NSCA is a Linux/Unix daemon allows you to integrate passive alerts and checks
from remote machines and applications with Nagios. Useful for processing
security alerts, as well as redundant and distributed Nagios setups.
**This client allows you to send easily passive alerts and checks.**

2
Rakefile Normal file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"

0
lib/nsca/client.rb Normal file
View file

View file

@ -0,0 +1,5 @@
module NSCA
module Client
VERSION = '1.0.0'
end
end

22
nsca-client.gemspec Normal file
View file

@ -0,0 +1,22 @@
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "nsca/client/version"
Gem::Specification.new do |gem|
gem.authors = `git log --raw | grep Author: | awk -F ': | <|>' '{ print $2 }' | sort | uniq`.split("\n")
gem.email = `git log --raw | grep Author: | awk -F ': | <|>' '{ print $3 }' | sort | uniq`.split("\n")
gem.description = %q{Send passive notifications to Nagios Service Check Acceptor (NSCA).}
gem.summary = %q{NSCA Client}
gem.homepage = "http://felipecvo.github.com/nsca-client"
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^spec/})
gem.name = "nsca-client"
gem.require_paths = ["lib"]
gem.version = NSCA::Client::VERSION
gem.add_dependency "send_nsca"
gem.add_development_dependency "rspec"
end

17
spec/spec_helper.rb Normal file
View file

@ -0,0 +1,17 @@
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper"` to ensure that it is only
# loaded once.
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = 'random'
end