drake 0.8.2.1.0.7 → 0.8.2.1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.drake +4 -0
- data/README +5 -3
- data/Rakefile.drake +12 -5
- data/lib/rake.rb +3 -3
- metadata +1 -1
data/CHANGES.drake
CHANGED
data/README
CHANGED
@@ -92,9 +92,11 @@ closer to saying what you mean.
|
|
92
92
|
% drake --rand[=SEED]
|
93
93
|
|
94
94
|
This will randomize the order of sibling prerequisites for each task.
|
95
|
-
When given the optional SEED
|
96
|
-
<tt>srand(SEED)</tt> to produce the same permutation each time
|
97
|
-
|
95
|
+
When given the optional SEED string, it will call
|
96
|
+
<tt>srand(SEED.hash)</tt> to produce the same permutation each time
|
97
|
+
(String#hash produces the integer which is the seed). The randomize
|
98
|
+
option also disables +multitask+, making it a regular unthreaded
|
99
|
+
+task+.
|
98
100
|
|
99
101
|
Though this option may produce an error due to an unspecified
|
100
102
|
dependency, at least it will be an error which is exactly the same on
|
data/Rakefile.drake
CHANGED
@@ -46,9 +46,14 @@ task :drake_prerelease => [:clean, :gemspec] do
|
|
46
46
|
unless `git status` =~ %r!nothing to commit \(working directory clean\)!
|
47
47
|
raise "Directory not clean"
|
48
48
|
end
|
49
|
-
unless `
|
50
|
-
raise "
|
49
|
+
unless `git pull` =~ %r!Already up-to-date!
|
50
|
+
raise "New stuff from remote repository"
|
51
51
|
end
|
52
|
+
%w[github.com rubyforge.org].each { |server|
|
53
|
+
unless `ping -c2 #{server}` =~ %r!0% packet loss!
|
54
|
+
raise "No ping for #{server}"
|
55
|
+
end
|
56
|
+
}
|
52
57
|
end
|
53
58
|
|
54
59
|
task :drake_publish => :rdoc do
|
@@ -57,13 +62,14 @@ task :drake_publish => :rdoc do
|
|
57
62
|
}
|
58
63
|
end
|
59
64
|
|
60
|
-
def rubyforge(command, file)
|
65
|
+
def rubyforge(command, file, *args)
|
61
66
|
sh("rubyforge",
|
62
67
|
command,
|
63
68
|
SPEC.rubyforge_project,
|
64
69
|
SPEC.rubyforge_project,
|
65
70
|
SPEC.version.to_s,
|
66
|
-
file
|
71
|
+
file,
|
72
|
+
*args)
|
67
73
|
end
|
68
74
|
|
69
75
|
task :drake_finish_release do
|
@@ -72,7 +78,8 @@ task :drake_finish_release do
|
|
72
78
|
gem = "#{SPEC.name}-#{SPEC.version}.gem"
|
73
79
|
md5 = "#{gem}.md5"
|
74
80
|
sh("md5sum #{gem} > #{md5}")
|
75
|
-
rubyforge(
|
81
|
+
rubyforge(
|
82
|
+
*%W(add_release #{gem} --release_changes CHANGES.drake --preformatted))
|
76
83
|
rubyforge("add_file", md5)
|
77
84
|
}
|
78
85
|
|
data/lib/rake.rb
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
# as a library via a require statement, but it can be distributed
|
30
30
|
# independently as an application.
|
31
31
|
|
32
|
-
RAKEVERSION = '0.8.2.1.0.
|
32
|
+
RAKEVERSION = '0.8.2.1.0.9'
|
33
33
|
|
34
34
|
require 'rbconfig'
|
35
35
|
require 'getoptlong'
|
@@ -2282,12 +2282,12 @@ module Rake
|
|
2282
2282
|
['--threads', '-j N', "Specifies the number of threads to run simultaneously.",
|
2283
2283
|
lambda { |value| self.num_threads = value.to_i }
|
2284
2284
|
],
|
2285
|
-
['--
|
2285
|
+
['--randomize[=SEED]', "Randomize task prerequisite orders",
|
2286
2286
|
lambda { |value|
|
2287
2287
|
MultiTask.class_eval { remove_method(:invoke_prerequisites) }
|
2288
2288
|
options.randomize = true
|
2289
2289
|
if value
|
2290
|
-
srand(value.
|
2290
|
+
srand(value.hash)
|
2291
2291
|
end
|
2292
2292
|
}
|
2293
2293
|
],
|