hydra 0.10.2 → 0.10.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/VERSION +1 -1
- data/hydra.gemspec +2 -2
- data/lib/hydra/master.rb +1 -2
- data/test/master_test.rb +2 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.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.10.
|
8
|
+
s.version = "0.10.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-02-
|
12
|
+
s.date = %q{2010-02-16}
|
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 = [
|
data/lib/hydra/master.rb
CHANGED
@@ -26,7 +26,6 @@ module Hydra #:nodoc:
|
|
26
26
|
end
|
27
27
|
@files = Array(opts.fetch('files') { nil })
|
28
28
|
raise "No files, nothing to do" if @files.empty?
|
29
|
-
@files.sort!{|a,b| File.size(b) <=> File.size(a)} # dumb heuristic
|
30
29
|
@incomplete_files = @files.dup
|
31
30
|
@workers = []
|
32
31
|
@listeners = []
|
@@ -49,7 +48,7 @@ module Hydra #:nodoc:
|
|
49
48
|
|
50
49
|
# Send a file down to a worker.
|
51
50
|
def send_file(worker)
|
52
|
-
f = @files.
|
51
|
+
f = @files.shift
|
53
52
|
trace "Sending #{f.inspect}"
|
54
53
|
worker[:io].write(RunFile.new(:file => f)) if f
|
55
54
|
end
|
data/test/master_test.rb
CHANGED
@@ -3,6 +3,8 @@ require File.join(File.dirname(__FILE__), 'test_helper')
|
|
3
3
|
class MasterTest < Test::Unit::TestCase
|
4
4
|
context "with a file to test and a destination to verify" do
|
5
5
|
setup do
|
6
|
+
# avoid having other tests interfering with us
|
7
|
+
sleep(0.25)
|
6
8
|
FileUtils.rm_f(target_file)
|
7
9
|
end
|
8
10
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Gauthier
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-16 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|