nsca 0.0.1 → 0.1.0

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -1,9 +1,3 @@
1
- require 'socket'
2
- require 'enum'
3
- require 'timeout'
4
- require 'benchmark'
5
- require 'securerandom'
6
-
7
1
  module NSCA
8
2
  class Client
9
3
  class Connection
@@ -1,9 +1,3 @@
1
- require 'socket'
2
- require 'enum'
3
- require 'timeout'
4
- require 'benchmark'
5
- require 'securerandom'
6
-
7
1
  module NSCA
8
2
  class <<self
9
3
  def xor key, msg, key_a = nil
@@ -68,18 +62,14 @@ module NSCA
68
62
  # these line describes the data package:
69
63
  # typedef struct data_packet_struct{
70
64
  # int16_t packet_version;
71
- # /* xx means, 2 bytes without any data.
72
- # * i do not know, why but there are 2 extra bytes without any need and
73
- # * no where i can find information how these will be send,
74
- # * because these struct does not know it.
75
- # */
65
+ # /* two padding bytes (because aligning): xx */
76
66
  # u_int32_t crc32_value;
77
67
  # u_int32_t timestamp;
78
68
  # int16_t return_code;
79
69
  # char host_name[MAX_HOSTNAME_LENGTH];
80
70
  # char svc_description[MAX_DESCRIPTION_LENGTH];
81
71
  # char plugin_output[MAX_PLUGINOUTPUT_LENGTH];
82
- # /* 2 extre xx, too. */
72
+ # /* two extra padding-xx, too. */
83
73
  # }data_packet;
84
74
  PACK_STRING = "s> xx L> L> s> Z#{HOSTNAME_LENGTH} Z#{SERVICE_LENGTH} Z#{STATUS_LENGTH} xx"
85
75
  PACK_LENGTH = 2+2+4+4+2+HOSTNAME_LENGTH+SERVICE_LENGTH+STATUS_LENGTH+2
@@ -1,9 +1,3 @@
1
- require 'socket'
2
- require 'enum'
3
- require 'timeout'
4
- require 'benchmark'
5
- require 'securerandom'
6
-
7
1
  module NSCA
8
2
  class Server
9
3
  include Enumerable
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "nsca"
8
- s.version = "0.0.1"
8
+ s.version = "0.1.0"
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"]
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
24
24
  "README.md",
25
25
  "Rakefile",
26
26
  "VERSION",
27
- "dummy_server.rb",
28
27
  "lib/nsca.rb",
29
28
  "lib/nsca/check.rb",
30
29
  "lib/nsca/client.rb",
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.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -138,7 +138,6 @@ files:
138
138
  - README.md
139
139
  - Rakefile
140
140
  - VERSION
141
- - dummy_server.rb
142
141
  - lib/nsca.rb
143
142
  - lib/nsca/check.rb
144
143
  - lib/nsca/client.rb
@@ -163,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
162
  version: '0'
164
163
  segments:
165
164
  - 0
166
- hash: -852364013
165
+ hash: -806147665
167
166
  required_rubygems_version: !ruby/object:Gem::Requirement
168
167
  none: false
169
168
  requirements:
@@ -1,10 +0,0 @@
1
- require 'socket'
2
-
3
- module NSCA
4
- class ServerDummy
5
- attr_reader :server
6
- def initialize *host_and_port
7
- @server = TCPServer.new *host_and_port
8
- end
9
- end
10
- end