tlb-core 0.3.2 → 0.3.3
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/core/lib/tlb.rb +17 -5
- data/core/tlb-alien-0.3.2.jar +0 -0
- metadata +61 -53
data/core/lib/tlb.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require '
|
3
|
-
require 'net
|
2
|
+
require 'open5'
|
3
|
+
require File.join('net', 'http')
|
4
4
|
require 'timeout'
|
5
5
|
|
6
6
|
module Tlb
|
@@ -32,6 +32,7 @@ module Tlb
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.get path
|
35
|
+
sleep 2
|
35
36
|
Net::HTTP.get_response(host, path, port).body
|
36
37
|
end
|
37
38
|
|
@@ -160,10 +161,14 @@ module Tlb
|
|
160
161
|
|
161
162
|
class ForkBalancerProcess < BalancerProcess
|
162
163
|
def start server_command
|
163
|
-
|
164
|
+
|
165
|
+
input,err,out, @t= open5(server_command)
|
166
|
+
@pid=@t.pid
|
167
|
+
|
164
168
|
unless (out)
|
165
169
|
raise "out was nil"
|
166
170
|
end
|
171
|
+
|
167
172
|
return Class.new(StreamPumper) do
|
168
173
|
def data_available?
|
169
174
|
not @stream.eof?
|
@@ -175,10 +180,17 @@ module Tlb
|
|
175
180
|
end, out, err
|
176
181
|
end
|
177
182
|
|
183
|
+
|
178
184
|
def die
|
179
185
|
super
|
180
|
-
|
181
|
-
|
186
|
+
begin
|
187
|
+
@pid = nil
|
188
|
+
Process.wait
|
189
|
+
rescue Errno::ECHILD
|
190
|
+
puts "Got Errno::ECHILD"
|
191
|
+
rescue Exception => excep
|
192
|
+
raise excep
|
193
|
+
end
|
182
194
|
end
|
183
195
|
end
|
184
196
|
|
data/core/tlb-alien-0.3.2.jar
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,51 +1,50 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tlb-core
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.3.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Janmejay Singh
|
9
9
|
- Pavan KS
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-02-19 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
17
16
|
name: rake
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &13534980 !ruby/object:Gem::Requirement
|
20
18
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
25
23
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: open4
|
29
24
|
prerelease: false
|
30
|
-
|
25
|
+
version_requirements: *13534980
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: open5
|
28
|
+
requirement: &13534480 !ruby/object:Gem::Requirement
|
31
29
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version:
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.2'
|
36
34
|
type: :runtime
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *13534480
|
37
|
+
description: ! 'TLB-Ruby base library that provides common test-load-balancing infrastructure
|
38
|
+
for Ruby testing tools. Core in itself is framework agnostic. It exposes APIs that
|
39
|
+
allow any framework specific libraries to load-balance.
|
40
40
|
|
41
|
+
'
|
41
42
|
email: singh.janmejay@gmail.com;itspanzi@gmail.com
|
42
43
|
executables: []
|
43
|
-
|
44
44
|
extensions: []
|
45
|
-
|
46
|
-
extra_rdoc_files:
|
45
|
+
extra_rdoc_files:
|
47
46
|
- README.markdown
|
48
|
-
files:
|
47
|
+
files:
|
49
48
|
- core/lib/tasks/tlb.rake
|
50
49
|
- core/lib/tlb.rb
|
51
50
|
- core/lib/tlb/run_data.rb
|
@@ -54,41 +53,50 @@ files:
|
|
54
53
|
- README.markdown
|
55
54
|
homepage: http://github.com/test-load-balancer/tlb.rb
|
56
55
|
licenses: []
|
56
|
+
post_install_message: ! '=========================================================================
|
57
|
+
|
58
|
+
Documentation: Detailed configuration documentation can be found at http://test-load-balancer.github.com.
|
59
|
+
Documentation section in this website hosts documentation for every public release.
|
60
|
+
|
57
61
|
|
58
|
-
post_install_message: |
|
59
|
-
=========================================================================
|
60
|
-
Documentation: Detailed configuration documentation can be found at http://test-load-balancer.github.com. Documentation section in this website hosts documentation for every public release.
|
61
|
-
|
62
62
|
-------------------------------------------------------------------------
|
63
|
-
|
64
|
-
|
63
|
+
|
64
|
+
TLB Setup: You''ll need a TLB-Server in your network that is reachable over the
|
65
|
+
network from the machines you use to execute your project''s test-suite. Please
|
66
|
+
refer the TLB documentation for details.
|
67
|
+
|
68
|
+
|
65
69
|
-------------------------------------------------------------------------
|
66
|
-
|
67
|
-
|
70
|
+
|
71
|
+
Note: Core is just the base library that implements common infrastructure for test-load-balancing
|
72
|
+
in Ruby and is completely testing-framework agnostic. It exposes APIs that allow
|
73
|
+
other ruby libraries to load-balance tests. You''ll need to install one of the testing-framework
|
74
|
+
specific libraries to make use of it.
|
75
|
+
|
76
|
+
|
68
77
|
=========================================================================
|
69
78
|
|
70
|
-
|
79
|
+
'
|
80
|
+
rdoc_options:
|
71
81
|
- --charset=UTF-8
|
72
|
-
require_paths:
|
82
|
+
require_paths:
|
73
83
|
- core/lib
|
74
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
75
85
|
none: false
|
76
|
-
requirements:
|
77
|
-
- -
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version:
|
80
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
91
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version:
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
86
96
|
requirements: []
|
87
|
-
|
88
97
|
rubyforge_project: tlb-rb
|
89
|
-
rubygems_version: 1.8.
|
98
|
+
rubygems_version: 1.8.10
|
90
99
|
signing_key:
|
91
100
|
specification_version: 3
|
92
|
-
summary: tlb-core-0.3.
|
101
|
+
summary: tlb-core-0.3.3
|
93
102
|
test_files: []
|
94
|
-
|