diff --git a/Ruby/Rakefile b/Ruby/Rakefile index 7ee1ff4..7aa1967 100644 --- a/Ruby/Rakefile +++ b/Ruby/Rakefile @@ -7,14 +7,49 @@ desc "Open a macirb session preloaded with Git framework" task :console do + # update_warning_exit unless latest_cocoagit_build("Debug-GC") sh "./bin/macirb -rubygems -r lib/cocoagit.rb" end desc "Run test suite" task :test do + # update_warning_exit unless latest_cocoagit_build("Debug-GC") sh "bin/macruby test/suite.rb" end +def update_warning_exit + warning = < p, :date => date} + else + nil + end + end.compact + project_dates.sort! { |a, b| a[:date] <=> b[:date] } + target == project_dates.last[:project] +end + + +# MacRuby management tasks + namespace :macruby do MACRUBY_SRC = "macruby-src" MACRUBY_LIB = File.join(MACRUBY_SRC, "libmacruby.1.9.0.dylib")