Rakefile in rays-0.1.3 vs Rakefile in rays-0.1.4

- old
+ new

@@ -1,48 +1,23 @@ # -*- mode: ruby; coding: utf-8 -*- -%w[. ../xot ../rucy].map {|s| "#{s}/lib"}.each do |path| - $: << File.expand_path(File.join File.dirname(__FILE__), *path.split('/')) -end - -require 'rubygems' -require 'xot/rake/helpers' +require 'bundler/setup' +require 'xot/rake' require 'xot/module' require 'rucy/module' require 'rays/module' include Xot::Rake -MODULE = Rays -INCDIRS = [Rays, Rucy].map {|m| m.include_dirs}.flatten +MODULE = Rays +INCDIRS = [Rays, Rucy, Xot].map {|m| m.include_dirs}.flatten +TESTS_ALONE = ['test/test_rays.rb'] task :default => :build task :build => :ext - -task :rebuild => [:clean, :build] - -task :lib => 'lib:build' - -task :ext => 'ext:build' - -task :doc => 'ext:doc' - -task :gem => 'gem:build' - -task :install => 'gem:install' - -task :uninstall => 'gem:uninstall' - -task :clean => ['lib:clean', 'ext:clean', 'gem:clean'] - -task :test => :ext do - Dir['test/**/test_*.rb'].each do |rb| - sh %( ruby #{rb} ) - end -end [Xot, Rucy, Rays].each {|m| m.load_tasks}