nagios_alerter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -4,7 +4,6 @@ Rakefile
4
4
  lib/nagios/alerter.rb
5
5
  lib/nagios/connection.rb
6
6
  lib/nagios_alerter.rb
7
- nagios_alerter.gemspec
8
7
  spec/lib/alerter_spec.rb
9
8
  spec/lib/connection_spec.rb
10
9
  spec/spec.opts
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('nagios_alerter', '0.1.0') do |p|
5
+ Echoe.new('nagios_alerter', '0.1.1') do |p|
6
6
  p.description = "Send a heartbeat to a Nagios server"
7
7
  p.url = "http://github.com/dmerrick/nagios_alerter"
8
8
  p.author = "Dana Merrick"
@@ -18,7 +18,7 @@ module Nagios
18
18
 
19
19
  def send_alert(args = {})
20
20
  # host and port can be passed as parameters or set using Nagios::Connection
21
- host, port = connection_params(args[:host], args[:port])
21
+ connection = connection_params(args[:host], args[:port])
22
22
 
23
23
  # check the parameters if we're missing any variables
24
24
  check_args(args) if [@hostname, @service_name, @return_code, @status].any? {|var| var.nil? }
@@ -29,8 +29,8 @@ module Nagios
29
29
  status = args[:status] || @status
30
30
 
31
31
  config = {
32
- :nscahost => host,
33
- :port => port,
32
+ :nscahost => connection[:host],
33
+ :port => connection[:port],
34
34
  :hostname => hostname,
35
35
  :service => service_name,
36
36
  :return_code => return_code,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{nagios_alerter}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Dana Merrick"]
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.description = %q{Send a heartbeat to a Nagios server}
11
11
  s.email = %q{dana.merrick@gmail.com}
12
12
  s.extra_rdoc_files = ["LICENSE", "README.rdoc", "lib/nagios/alerter.rb", "lib/nagios/connection.rb", "lib/nagios_alerter.rb", "tasks/rspec.rake"]
13
- s.files = ["LICENSE", "README.rdoc", "Rakefile", "lib/nagios/alerter.rb", "lib/nagios/connection.rb", "lib/nagios_alerter.rb", "nagios_alerter.gemspec", "spec/lib/alerter_spec.rb", "spec/lib/connection_spec.rb", "spec/spec.opts", "tasks/rspec.rake", "Manifest"]
13
+ s.files = ["LICENSE", "README.rdoc", "Rakefile", "lib/nagios/alerter.rb", "lib/nagios/connection.rb", "lib/nagios_alerter.rb", "spec/lib/alerter_spec.rb", "spec/lib/connection_spec.rb", "spec/spec.opts", "tasks/rspec.rake", "Manifest", "nagios_alerter.gemspec"]
14
14
  s.homepage = %q{http://github.com/dmerrick/nagios_alerter}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Nagios_alerter", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nagios_alerter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dana Merrick
@@ -54,12 +54,12 @@ files:
54
54
  - lib/nagios/alerter.rb
55
55
  - lib/nagios/connection.rb
56
56
  - lib/nagios_alerter.rb
57
- - nagios_alerter.gemspec
58
57
  - spec/lib/alerter_spec.rb
59
58
  - spec/lib/connection_spec.rb
60
59
  - spec/spec.opts
61
60
  - tasks/rspec.rake
62
61
  - Manifest
62
+ - nagios_alerter.gemspec
63
63
  has_rdoc: true
64
64
  homepage: http://github.com/dmerrick/nagios_alerter
65
65
  licenses: []