Fixed color support in OS X
Any response for Ruby with a version number greater than 1.8 is fine (should be
around 1.8.6 or more). Any version of rake will do.
+== Generating the Koans
+
+A fresh checkout will not include the koans, you will need to generate
+them.
+
+ [ruby_koans] $ rake gen # generates the koans directory
+
+If you need to regenerate the koans, thus wiping your current `koans`,
+
+ [ruby_koans] $ rake regen # regenerates the koans directory, wiping the original
+
== The Path To Enlightenment
You can run the tests through rake or by calling the file itself (rake is the
task :default => :walk_the_path
task :walk_the_path do
- cd 'koans'
+ cd PROB_DIR
ruby 'path_to_enlightenment.rb'
end
if defined?(Rake::RDocTask)
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
- rd.rdoc_files.include("README.rdoc", "koans/*.rb")
+ rd.rdoc_files.include("README.rdoc", "${PROB_DIR}/*.rb")
end
end
task :run do
puts 'koans'
- Dir.chdir("src") do
+ Dir.chdir("${SRC_DIR}") do
puts "in #{Dir.pwd}"
sh "ruby path_to_enlightenment.rb"
end