drake 0.8.2.1.0.3 → 0.8.2.1.0.4
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/CHANGES.drake +5 -0
- data/README +5 -4
- data/Rakefile.drake +3 -34
- data/lib/rake.rb +6 -4
- data/lib/rake/parallel.rb +4 -7
- metadata +2 -12
- data/lib/rake/comp_tree/algorithm.rb +0 -234
- data/lib/rake/comp_tree/bucket_ipc.rb +0 -175
- data/lib/rake/comp_tree/driver.rb +0 -291
- data/lib/rake/comp_tree/error.rb +0 -51
- data/lib/rake/comp_tree/node.rb +0 -189
- data/lib/rake/comp_tree/quix/builtin/kernel/tap.rb +0 -57
- data/lib/rake/comp_tree/quix/diagnostic.rb +0 -92
- data/lib/rake/comp_tree/quix/kernel.rb +0 -109
- data/lib/rake/comp_tree/retriable_fork.rb +0 -66
- data/lib/rake/comp_tree/task_node.rb +0 -46
@@ -1,57 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
######################################################
|
5
|
-
#
|
6
|
-
# **** DO NOT EDIT ****
|
7
|
-
#
|
8
|
-
# **** THIS IS A GENERATED FILE *****
|
9
|
-
#
|
10
|
-
######################################################
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
######################################################
|
17
|
-
#
|
18
|
-
# **** DO NOT EDIT ****
|
19
|
-
#
|
20
|
-
# **** THIS IS A GENERATED FILE *****
|
21
|
-
#
|
22
|
-
######################################################
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
unless respond_to? :tap
|
27
|
-
module Kernel
|
28
|
-
def tap
|
29
|
-
yield self
|
30
|
-
self
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
######################################################
|
38
|
-
#
|
39
|
-
# **** DO NOT EDIT ****
|
40
|
-
#
|
41
|
-
# **** THIS IS A GENERATED FILE *****
|
42
|
-
#
|
43
|
-
######################################################
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
######################################################
|
50
|
-
#
|
51
|
-
# **** DO NOT EDIT ****
|
52
|
-
#
|
53
|
-
# **** THIS IS A GENERATED FILE *****
|
54
|
-
#
|
55
|
-
######################################################
|
56
|
-
|
57
|
-
|
@@ -1,92 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
######################################################
|
5
|
-
#
|
6
|
-
# **** DO NOT EDIT ****
|
7
|
-
#
|
8
|
-
# **** THIS IS A GENERATED FILE *****
|
9
|
-
#
|
10
|
-
######################################################
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
######################################################
|
17
|
-
#
|
18
|
-
# **** DO NOT EDIT ****
|
19
|
-
#
|
20
|
-
# **** THIS IS A GENERATED FILE *****
|
21
|
-
#
|
22
|
-
######################################################
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
require 'rake/comp_tree/quix/builtin/kernel/tap'
|
27
|
-
|
28
|
-
module Rake::CompTree::Quix
|
29
|
-
module Diagnostic
|
30
|
-
def show(desc = nil, stream = STDOUT, &block)
|
31
|
-
if desc
|
32
|
-
stream.puts(desc)
|
33
|
-
end
|
34
|
-
if block
|
35
|
-
expression = block.call
|
36
|
-
eval(expression, block.binding).tap { |result|
|
37
|
-
stream.printf("%-16s => %s\n", expression, result.inspect)
|
38
|
-
}
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
if $DEBUG
|
43
|
-
def debug
|
44
|
-
yield
|
45
|
-
end
|
46
|
-
|
47
|
-
def debugging?
|
48
|
-
true
|
49
|
-
end
|
50
|
-
|
51
|
-
def trace(desc = nil, &block)
|
52
|
-
if desc
|
53
|
-
show("#{desc}.".sub(%r!\.\.+\Z!, ""), STDERR, &block)
|
54
|
-
else
|
55
|
-
show(nil, STDERR, &block)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
else
|
59
|
-
# non-$DEBUG
|
60
|
-
def debug ; end
|
61
|
-
def debugging? ; end
|
62
|
-
def trace(*args) ; end
|
63
|
-
end
|
64
|
-
|
65
|
-
extend self
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
######################################################
|
73
|
-
#
|
74
|
-
# **** DO NOT EDIT ****
|
75
|
-
#
|
76
|
-
# **** THIS IS A GENERATED FILE *****
|
77
|
-
#
|
78
|
-
######################################################
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
######################################################
|
85
|
-
#
|
86
|
-
# **** DO NOT EDIT ****
|
87
|
-
#
|
88
|
-
# **** THIS IS A GENERATED FILE *****
|
89
|
-
#
|
90
|
-
######################################################
|
91
|
-
|
92
|
-
|
@@ -1,109 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
######################################################
|
5
|
-
#
|
6
|
-
# **** DO NOT EDIT ****
|
7
|
-
#
|
8
|
-
# **** THIS IS A GENERATED FILE *****
|
9
|
-
#
|
10
|
-
######################################################
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
######################################################
|
17
|
-
#
|
18
|
-
# **** DO NOT EDIT ****
|
19
|
-
#
|
20
|
-
# **** THIS IS A GENERATED FILE *****
|
21
|
-
#
|
22
|
-
######################################################
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
require 'thread'
|
27
|
-
|
28
|
-
module Rake::CompTree::Quix
|
29
|
-
module Kernel
|
30
|
-
def let
|
31
|
-
yield self
|
32
|
-
end
|
33
|
-
|
34
|
-
def singleton_class
|
35
|
-
class << self
|
36
|
-
self
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
module Gensym
|
41
|
-
@mutex = Mutex.new
|
42
|
-
@count = 0
|
43
|
-
|
44
|
-
def gensym(prefix = nil)
|
45
|
-
count = Gensym.module_eval {
|
46
|
-
@mutex.synchronize {
|
47
|
-
@count += 1
|
48
|
-
}
|
49
|
-
}
|
50
|
-
"#{prefix || :G}_#{count}_#{rand}".to_sym
|
51
|
-
end
|
52
|
-
end
|
53
|
-
include Gensym
|
54
|
-
|
55
|
-
def call_private(method, *args, &block)
|
56
|
-
instance_eval { send(method, *args, &block) }
|
57
|
-
end
|
58
|
-
|
59
|
-
def with_warnings(value = true)
|
60
|
-
previous = $VERBOSE
|
61
|
-
$VERBOSE = value
|
62
|
-
begin
|
63
|
-
yield
|
64
|
-
ensure
|
65
|
-
$VERBOSE = previous
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
def no_warnings(&block)
|
70
|
-
with_warnings(false, &block)
|
71
|
-
end
|
72
|
-
|
73
|
-
def abort_on_exception(value = true)
|
74
|
-
previous = Thread.abort_on_exception
|
75
|
-
Thread.abort_on_exception = value
|
76
|
-
begin
|
77
|
-
yield
|
78
|
-
ensure
|
79
|
-
Thread.abort_on_exception = previous
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
extend self
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
######################################################
|
90
|
-
#
|
91
|
-
# **** DO NOT EDIT ****
|
92
|
-
#
|
93
|
-
# **** THIS IS A GENERATED FILE *****
|
94
|
-
#
|
95
|
-
######################################################
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
######################################################
|
102
|
-
#
|
103
|
-
# **** DO NOT EDIT ****
|
104
|
-
#
|
105
|
-
# **** THIS IS A GENERATED FILE *****
|
106
|
-
#
|
107
|
-
######################################################
|
108
|
-
|
109
|
-
|
@@ -1,66 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
######################################################
|
5
|
-
#
|
6
|
-
# **** DO NOT EDIT ****
|
7
|
-
#
|
8
|
-
# **** THIS IS A GENERATED FILE *****
|
9
|
-
#
|
10
|
-
######################################################
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
module Rake::CompTree
|
15
|
-
module RetriableFork
|
16
|
-
HAVE_FORK = lambda {
|
17
|
-
begin
|
18
|
-
process_id = fork { }
|
19
|
-
Process.wait(process_id)
|
20
|
-
rescue NotImplementedError
|
21
|
-
return false
|
22
|
-
end
|
23
|
-
true
|
24
|
-
}.call
|
25
|
-
|
26
|
-
def fork(retry_wait = 10, retry_max = 10, &block)
|
27
|
-
num_retries = 0
|
28
|
-
begin
|
29
|
-
Process.fork(&block)
|
30
|
-
rescue Errno::EAGAIN
|
31
|
-
num_retries += 1
|
32
|
-
if num_retries == retry_max
|
33
|
-
message = %Q{
|
34
|
-
****************************************************************
|
35
|
-
Maximum number of EAGAIN signals reached (#{retry_max})
|
36
|
-
****************************************************************
|
37
|
-
|
38
|
-
Either increase your process limit permission (consult your
|
39
|
-
OS manual) or run this script as superuser.
|
40
|
-
|
41
|
-
****************************************************************
|
42
|
-
}
|
43
|
-
STDERR.puts(message.gsub(%r!^[ \t]+!, ""))
|
44
|
-
raise
|
45
|
-
end
|
46
|
-
STDERR.puts "Caught EGAIN. Retrying in #{retry_wait} seconds."
|
47
|
-
sleep(retry_wait)
|
48
|
-
retry
|
49
|
-
end
|
50
|
-
end
|
51
|
-
module_function :fork
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
######################################################
|
59
|
-
#
|
60
|
-
# **** DO NOT EDIT ****
|
61
|
-
#
|
62
|
-
# **** THIS IS A GENERATED FILE *****
|
63
|
-
#
|
64
|
-
######################################################
|
65
|
-
|
66
|
-
|
@@ -1,46 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
######################################################
|
5
|
-
#
|
6
|
-
# **** DO NOT EDIT ****
|
7
|
-
#
|
8
|
-
# **** THIS IS A GENERATED FILE *****
|
9
|
-
#
|
10
|
-
######################################################
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
module Rake::CompTree
|
15
|
-
#
|
16
|
-
# TaskNode is a Node which discards its results
|
17
|
-
#
|
18
|
-
class TaskNode < Node
|
19
|
-
def compute #:nodoc:
|
20
|
-
@function.call
|
21
|
-
true
|
22
|
-
end
|
23
|
-
|
24
|
-
class << self
|
25
|
-
#
|
26
|
-
# TaskNode always returns true.
|
27
|
-
#
|
28
|
-
def discard_result?
|
29
|
-
true
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
######################################################
|
39
|
-
#
|
40
|
-
# **** DO NOT EDIT ****
|
41
|
-
#
|
42
|
-
# **** THIS IS A GENERATED FILE *****
|
43
|
-
#
|
44
|
-
######################################################
|
45
|
-
|
46
|
-
|