hydra 0.16.2 → 0.16.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/README.rdoc +1 -1
- data/VERSION +1 -1
- data/hydra.gemspec +10 -10
- data/lib/hydra/safe_fork.rb +3 -3
- metadata +11 -11
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.16.
|
1
|
+
0.16.3
|
data/hydra.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{hydra}
|
8
|
-
s.version = "0.16.
|
8
|
+
s.version = "0.16.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nick Gauthier"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-19}
|
13
13
|
s.description = %q{Spread your tests over multiple machines to test your code faster.}
|
14
14
|
s.email = %q{nick@smartlogicsolutions.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -79,18 +79,18 @@ Gem::Specification.new do |s|
|
|
79
79
|
s.summary = %q{Distributed testing toolkit}
|
80
80
|
s.test_files = [
|
81
81
|
"test/pipe_test.rb",
|
82
|
-
"test/test_helper.rb",
|
83
82
|
"test/ssh_test.rb",
|
84
|
-
"test/message_test.rb",
|
85
|
-
"test/master_test.rb",
|
86
|
-
"test/fixtures/write_file.rb",
|
87
|
-
"test/fixtures/slow.rb",
|
88
|
-
"test/fixtures/write_file_spec.rb",
|
89
|
-
"test/fixtures/features/step_definitions.rb",
|
90
|
-
"test/fixtures/hello_world.rb",
|
91
83
|
"test/fixtures/write_file_alternate_spec.rb",
|
92
84
|
"test/fixtures/sync_test.rb",
|
85
|
+
"test/fixtures/hello_world.rb",
|
86
|
+
"test/fixtures/features/step_definitions.rb",
|
93
87
|
"test/fixtures/assert_true.rb",
|
88
|
+
"test/fixtures/slow.rb",
|
89
|
+
"test/fixtures/write_file_spec.rb",
|
90
|
+
"test/fixtures/write_file.rb",
|
91
|
+
"test/message_test.rb",
|
92
|
+
"test/test_helper.rb",
|
93
|
+
"test/master_test.rb",
|
94
94
|
"test/runner_test.rb",
|
95
95
|
"test/worker_test.rb"
|
96
96
|
]
|
data/lib/hydra/safe_fork.rb
CHANGED
@@ -2,13 +2,13 @@ class SafeFork
|
|
2
2
|
def self.fork
|
3
3
|
begin
|
4
4
|
# remove our connection so it doesn't get cloned
|
5
|
-
ActiveRecord::Base.remove_connection if defined?(ActiveRecord)
|
5
|
+
connection = ActiveRecord::Base.remove_connection if defined?(ActiveRecord)
|
6
6
|
# fork a process
|
7
7
|
child = Process.fork do
|
8
8
|
begin
|
9
9
|
# create a new connection and perform the action
|
10
10
|
begin
|
11
|
-
ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
|
11
|
+
ActiveRecord::Base.establish_connection(connection.merge({:allow_concurrency => true})) if defined?(ActiveRecord)
|
12
12
|
rescue ActiveRecord::AdapterNotSpecified
|
13
13
|
# AR was defined but we didn't have a connection
|
14
14
|
end
|
@@ -21,7 +21,7 @@ class SafeFork
|
|
21
21
|
ensure
|
22
22
|
# make sure we re-establish the connection before returning to the main instance
|
23
23
|
begin
|
24
|
-
|
24
|
+
ActiveRecord::Base.establish_connection(connection.merge({:allow_concurrency => true})) if defined?(ActiveRecord)
|
25
25
|
rescue ActiveRecord::AdapterNotSpecified
|
26
26
|
# AR was defined but we didn't have a connection
|
27
27
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 16
|
8
|
-
-
|
9
|
-
version: 0.16.
|
8
|
+
- 3
|
9
|
+
version: 0.16.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nick Gauthier
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-19 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -155,17 +155,17 @@ specification_version: 3
|
|
155
155
|
summary: Distributed testing toolkit
|
156
156
|
test_files:
|
157
157
|
- test/pipe_test.rb
|
158
|
-
- test/test_helper.rb
|
159
158
|
- test/ssh_test.rb
|
160
|
-
- test/message_test.rb
|
161
|
-
- test/master_test.rb
|
162
|
-
- test/fixtures/write_file.rb
|
163
|
-
- test/fixtures/slow.rb
|
164
|
-
- test/fixtures/write_file_spec.rb
|
165
|
-
- test/fixtures/features/step_definitions.rb
|
166
|
-
- test/fixtures/hello_world.rb
|
167
159
|
- test/fixtures/write_file_alternate_spec.rb
|
168
160
|
- test/fixtures/sync_test.rb
|
161
|
+
- test/fixtures/hello_world.rb
|
162
|
+
- test/fixtures/features/step_definitions.rb
|
169
163
|
- test/fixtures/assert_true.rb
|
164
|
+
- test/fixtures/slow.rb
|
165
|
+
- test/fixtures/write_file_spec.rb
|
166
|
+
- test/fixtures/write_file.rb
|
167
|
+
- test/message_test.rb
|
168
|
+
- test/test_helper.rb
|
169
|
+
- test/master_test.rb
|
170
170
|
- test/runner_test.rb
|
171
171
|
- test/worker_test.rb
|