Browse files

Implemented irb task to ease testing of the sandbox.

  • Loading branch information...
1 parent d23394e commit aa9d85b3e4a9c0ec07a10068a89cd2181e2675c6 @luislavena luislavena committed May 24, 2008
Showing with 15 additions and 1 deletion.
  1. +5 −1 CHANGELOG.txt
  2. +3 −0 recipes/defaults.rake
  3. +7 −0 recipes/interpreter/ruby18.rake
View
6 CHANGELOG.txt
@@ -1,7 +1,11 @@
+2008-05-25 Luis Lavena
+
+ * recipes/interpreter/ruby18.rake: Added hacky IRB task to ease debugging.
+
2008-05-23 Gordon Thiesfeld
* config/rubyinstaller.rb: Added WiX recipes and Package information.
- * rake/packager/wix.rake: Rake task for WiX extraction.
+ * recipes/packager/wix.rake: Rake task for WiX extraction.
2008-05-18 Luis Lavena
View
3 recipes/defaults.rake
@@ -22,6 +22,9 @@ task :install
desc "Run tests for the interpreter in the sandbox."
task :check
+desc "Test drive the sandbox (using IRB)."
+task :irb
+
desc "Do everything!"
task :default => [:download, :extract, :prepare, :configure, :compile, :install]
View
7 recipes/interpreter/ruby18.rake
@@ -118,6 +118,12 @@ namespace(:interpreter) do
end
manifest.close
end
+
+ task :irb do
+ Dir.chdir(File.join(package.install_target, 'bin')) do
+ sh "irb"
+ end
+ end
end
end
@@ -132,3 +138,4 @@ task :configure => ['interpreter:ruby18:configure']
task :compile => ['interpreter:ruby18:compile']
task :install => ['interpreter:ruby18:install']
task :check => ['interpreter:ruby18:check']
+task :irb => ['interpreter:ruby18:irb']

0 comments on commit aa9d85b

Please sign in to comment.