nsca 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README.md +1 -1
  2. data/VERSION +1 -1
  3. data/lib/nsca/check.rb +3 -3
  4. data/nsca.gemspec +1 -1
  5. metadata +2 -2
data/README.md CHANGED
@@ -16,7 +16,6 @@ TO DO AND DONE
16
16
  TODO
17
17
  ----
18
18
 
19
- * build packet with performance data
20
19
  * server side parsing of performance data
21
20
  * more documentations
22
21
  * mcrypt-support
@@ -30,6 +29,7 @@ DONE
30
29
  * server-API (recv from client)
31
30
  * check-API (describe checks and performance data)
32
31
  * fast usable API for sending checks
32
+ * build packet with performance data
33
33
 
34
34
  Copyright
35
35
  =========
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/lib/nsca/check.rb CHANGED
@@ -186,12 +186,12 @@ module NSCA
186
186
  end
187
187
 
188
188
  module Checks
189
- def perfdata( cl, *params) const_set cl, NSCA::PerformanceData.new( *params) end
189
+ def perfdata( *params) NSCA::PerformanceData.new( *params) end
190
190
 
191
- def check cl, service, hostname, perfdatas = nil
191
+ def check service, hostname, perfdatas = nil
192
192
  perfdatas ||= []
193
193
  perfdatas.map! {|cl| cl.is_a?( Symbol) ? const_get( cl) : cl }
194
- const_set cl, NSCA::Check.new( service, hostname, perfdatas)
194
+ NSCA::Check.new service, hostname, perfdatas
195
195
  end
196
196
  end
197
197
  end
data/nsca.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "nsca"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Denis Knauf"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: 410259443
165
+ hash: -1066229809
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements: