drunit 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/drunit/remote_app.rb +7 -7
- metadata +3 -3
data/Rakefile
CHANGED
@@ -17,7 +17,7 @@ end
|
|
17
17
|
|
18
18
|
spec = Gem::Specification.new do |s|
|
19
19
|
s.name = %q{drunit}
|
20
|
-
s.version = "0.4.
|
20
|
+
s.version = "0.4.3"
|
21
21
|
s.summary = %q{A library for running tests across multiple applications from a single test case.}
|
22
22
|
s.description = %q{A library for running tests across multiple applications from a single test case.}
|
23
23
|
|
data/lib/drunit/remote_app.rb
CHANGED
@@ -20,18 +20,18 @@ module Drunit
|
|
20
20
|
def get_url(pipe)
|
21
21
|
pipe.each_line do |line|
|
22
22
|
return $1 if line =~ /^DRUNIT:URI (.*)$/
|
23
|
-
|
23
|
+
raise "Could not establish connection to the remote drunit instance, From drunit_remote(#{@name})>> #{line}"
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
27
|
def start_app!
|
28
28
|
drb_server = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "bin", "drunit_remote"))
|
29
|
-
pipe = IO.popen("
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
pipe = Dir.chdir(@dir){IO.popen("#{drb_server} #{@boot}")}
|
30
|
+
|
31
|
+
at_exit {Process.kill('SIGTERM', pipe.pid)}
|
32
|
+
|
33
|
+
url = get_url(pipe)
|
34
|
+
DRbObject.new(nil, url)
|
35
35
|
end
|
36
36
|
|
37
37
|
def app
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 3
|
9
|
+
version: 0.4.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tom Lea
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-06-29 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|