[macruby-changes] [303] MacRuby/trunk/Rakefile
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 23 13:18:41 PDT 2008
Revision: 303
http://trac.macosforge.org/projects/ruby/changeset/303
Author: eloy.de.enige at gmail.com
Date: 2008-06-23 13:18:41 -0700 (Mon, 23 Jun 2008)
Log Message:
-----------
Added a few rake tasks that help in order to run the RubyCocoa layer tests.
Modified Paths:
--------------
MacRuby/trunk/Rakefile
Modified: MacRuby/trunk/Rakefile
===================================================================
--- MacRuby/trunk/Rakefile 2008-06-23 20:18:35 UTC (rev 302)
+++ MacRuby/trunk/Rakefile 2008-06-23 20:18:41 UTC (rev 303)
@@ -550,6 +550,34 @@
end
end
+namespace :rubycocoa do
+ def get(url)
+ file = File.basename(url)
+ sh "curl #{url} -o /tmp/#{file}"
+ # for some reason mocha extracts with some junk...
+ puts `cd /tmp && tar -zxvf #{file}`
+ end
+
+ def install(path)
+ cp_r path, '/Library/Frameworks/MacRuby.framework/Versions/Current/usr/lib/ruby/site_ruby/'
+ end
+
+ desc 'For lack of working RubyGems this is a task that installs the dependencies for the RubyCocoa layer tests'
+ task :install_test_spec_and_mocha do
+ get 'http://files.rubyforge.vm.bytemark.co.uk/test-spec/test-spec-0.4.0.tar.gz'
+ install '/tmp/test-spec-0.4.0/lib/test'
+
+ get 'http://files.rubyforge.mmmultiworks.com/mocha/mocha-0.5.6.tgz'
+ mocha = '/tmp/mocha-0.5.6'
+ FileList["#{mocha}/lib/*.rb", "#{mocha}/lib/mocha"].each { |f| install f }
+ end
+
+ desc 'Run the RubyCocoa layer tests'
+ task :test do
+ sh 'macruby test-macruby/rubycocoa_test.rb'
+ end
+end
+
desc "Same as framework:install"
task :install => 'framework:install'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080623/89f9a65d/attachment.htm
More information about the macruby-changes
mailing list