tlb-core 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/core/lib/tlb.rb +17 -5
  2. data/core/tlb-alien-0.3.2.jar +0 -0
  3. metadata +61 -53
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
- require 'open4'
3
- require 'net/http'
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
- @pid, input, out, err = Open4.popen4(server_command)
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
- @pid = nil
181
- Process.wait
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
 
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
- date: 2011-05-27 00:00:00 Z
15
- dependencies:
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
- prerelease: false
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: "0"
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
- requirement: &id002 !ruby/object:Gem::Requirement
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: 1.0.1
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0.2'
36
34
  type: :runtime
37
- version_requirements: *id002
38
- description: |
39
- TLB-Ruby base library that provides common test-load-balancing infrastructure for Ruby testing tools. Core in itself is framework agnostic. It exposes APIs that allow any framework specific libraries to load-balance.
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
- TLB Setup: You'll need a TLB-Server in your network that is reachable over the network from the machines you use to execute your project's test-suite. Please refer the TLB documentation for details.
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
- Note: Core is just the base library that implements common infrastructure for test-load-balancing in Ruby and is completely testing-framework agnostic. It exposes APIs that allow other ruby libraries to load-balance tests. You'll need to install one of the testing-framework specific libraries to make use of it.
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
- rdoc_options:
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: "0"
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: "0"
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.3
98
+ rubygems_version: 1.8.10
90
99
  signing_key:
91
100
  specification_version: 3
92
- summary: tlb-core-0.3.2
101
+ summary: tlb-core-0.3.3
93
102
  test_files: []
94
-