lib/rake.rb in drake-0.8.2.1.0.7 vs lib/rake.rb in drake-0.8.2.1.0.9

- old
+ new

@@ -27,11 +27,11 @@ # # This is the main file for the Rake application. Normally it is referenced # as a library via a require statement, but it can be distributed # independently as an application. -RAKEVERSION = '0.8.2.1.0.7' +RAKEVERSION = '0.8.2.1.0.9' require 'rbconfig' require 'getoptlong' require 'fileutils' require 'singleton' @@ -2280,15 +2280,15 @@ lambda { |value| eval(value) } ], ['--threads', '-j N', "Specifies the number of threads to run simultaneously.", lambda { |value| self.num_threads = value.to_i } ], - ['--rand[=SEED]', "Randomize task prerequisite orders", + ['--randomize[=SEED]', "Randomize task prerequisite orders", lambda { |value| MultiTask.class_eval { remove_method(:invoke_prerequisites) } options.randomize = true if value - srand(value.to_i) + srand(value.hash) end } ], ['--libdir', '-I LIBDIR', "Include LIBDIR in the search path for required modules.", lambda { |value| $:.push(value) }