healthety 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,22 +1,22 @@
1
1
  # Ruby Worker
2
2
 
3
- The Ruby Worker sends JSON data via UDP packets to a given host at a defined interval.
3
+ The Ruby Worker sends JSON wrapped data via UDP packets to a given server at a defined interval.
4
4
 
5
- ### Installation
5
+ ## Installation
6
6
 
7
- gem install healthety
7
+ $ gem install healthety
8
8
 
9
- ### Usage
9
+ ## Usage
10
10
 
11
11
  require "healthety"
12
12
 
13
13
  Healthety.workers do
14
14
  server "127.0.0.1"
15
- port 8124
15
+ port 41234
16
16
 
17
17
  worker :load_average do
18
18
  interval 0.5
19
- # Get load average with a system call (OS X)
19
+ # Gets load average with a system call (Mac OS X)
20
20
  value `w | head -n1 | cut -f4 -d":" | cut -f2 -d" "`.to_f
21
21
  end
22
22
 
data/healthety.gemspec CHANGED
@@ -12,8 +12,9 @@ Gem::Specification.new do |s|
12
12
  s.description = "The Ruby Worker sends JSON data via UDP packets to a given host."
13
13
  s.summary = s.description
14
14
 
15
+ s.add_dependency("json", "~> 1.5.1")
15
16
  s.add_development_dependency("rspec", "~> 2.5.0")
16
- s.add_development_dependency("mocha")
17
+ s.add_development_dependency("mocha", "~> 0.9.12")
17
18
 
18
19
  s.files = `git ls-files`.split("\n")
19
20
  s.test_files = `git ls-files -- spec/*`.split("\n")
@@ -1,3 +1,3 @@
1
1
  module Healthety
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -10,7 +10,7 @@ module Healthety
10
10
  expect do
11
11
  Healthety.workers do
12
12
  server "127.0.0.1"
13
- port 8124
13
+ port 41234
14
14
 
15
15
  worker :test do
16
16
  interval 0.5
@@ -4,7 +4,7 @@ module Healthety
4
4
  describe Transmission do
5
5
  it "should send UDP packets" do
6
6
  $stdout = StringIO.new
7
- transmission = Transmission.new("127.0.0.1", 8124)
7
+ transmission = Transmission.new("127.0.0.1", 41234)
8
8
 
9
9
  transmission.instance_variable_get(:@socket).stubs(:send)
10
10
  transmission.expects(:send).at_least_once
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: healthety
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease:
5
- version: 0.0.3
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 4
10
+ version: 0.0.4
6
11
  platform: ruby
7
12
  authors:
8
13
  - Martin Jagusch
@@ -10,30 +15,57 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-04-21 00:00:00 Z
18
+ date: 2011-04-26 00:00:00 +02:00
19
+ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
- name: rspec
22
+ name: json
17
23
  prerelease: false
18
24
  requirement: &id001 !ruby/object:Gem::Requirement
19
25
  none: false
20
26
  requirements:
21
27
  - - ~>
22
28
  - !ruby/object:Gem::Version
23
- version: 2.5.0
24
- type: :development
29
+ hash: 1
30
+ segments:
31
+ - 1
32
+ - 5
33
+ - 1
34
+ version: 1.5.1
35
+ type: :runtime
25
36
  version_requirements: *id001
26
37
  - !ruby/object:Gem::Dependency
27
- name: mocha
38
+ name: rspec
28
39
  prerelease: false
29
40
  requirement: &id002 !ruby/object:Gem::Requirement
30
41
  none: false
31
42
  requirements:
32
- - - ">="
43
+ - - ~>
33
44
  - !ruby/object:Gem::Version
34
- version: "0"
45
+ hash: 27
46
+ segments:
47
+ - 2
48
+ - 5
49
+ - 0
50
+ version: 2.5.0
35
51
  type: :development
36
52
  version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: mocha
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ hash: 35
62
+ segments:
63
+ - 0
64
+ - 9
65
+ - 12
66
+ version: 0.9.12
67
+ type: :development
68
+ version_requirements: *id003
37
69
  description: The Ruby Worker sends JSON data via UDP packets to a given host.
38
70
  email: m@martinjagusch.com
39
71
  executables: []
@@ -57,6 +89,7 @@ files:
57
89
  - spec/unit/healthety_spec.rb
58
90
  - spec/unit/transmission_spec.rb
59
91
  - spec/unit/worker_spec.rb
92
+ has_rdoc: true
60
93
  homepage: http://github.com/healthety/ruby_worker
61
94
  licenses: []
62
95
 
@@ -70,17 +103,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
103
  requirements:
71
104
  - - ">="
72
105
  - !ruby/object:Gem::Version
106
+ hash: 3
107
+ segments:
108
+ - 0
73
109
  version: "0"
74
110
  required_rubygems_version: !ruby/object:Gem::Requirement
75
111
  none: false
76
112
  requirements:
77
113
  - - ">="
78
114
  - !ruby/object:Gem::Version
115
+ hash: 3
116
+ segments:
117
+ - 0
79
118
  version: "0"
80
119
  requirements: []
81
120
 
82
121
  rubyforge_project:
83
- rubygems_version: 1.7.2
122
+ rubygems_version: 1.6.2
84
123
  signing_key:
85
124
  specification_version: 3
86
125
  summary: The Ruby Worker sends JSON data via UDP packets to a given host.