bin/chake in chake-0.21.2 vs bin/chake in chake-0.80

- old
+ new

@@ -2,11 +2,11 @@ require 'rake' rakefiles = %w[rakefile Rakefile rakefile.rb Rakefile.rb] -if (!rakefiles.any? { |f| File.exist?(f) }) && !ARGV.include?('-f') && !ARGV.include?('--rakefile') +if rakefiles.none? { |f| File.exist?(f) } && !ARGV.include?('-f') && !ARGV.include?('--rakefile') require 'tmpdir' require 'fileutils' # syntethize a Rakefile tmpdir = Dir.mktmpdir @@ -22,10 +22,10 @@ end end class Rake::Application alias orig_thread_pool thread_pool - def thread_pool # :nodoc: + def thread_pool # :nodoc: if Chake.respond_to?(:nodes) @thread_pool ||= Rake::ThreadPool.new(Chake.nodes.size + 1) else orig_thread_pool end