Sha256: b1147bcadf466ff49a1a6434c0fbed8381097ef7d408e48c259dcd0647c67577
Contents?: true
Size: 879 Bytes
Versions: 2
Compression:
Stored size: 879 Bytes
Contents
# -*- coding: utf-8 -*- begin require 'devkit' # only used on windows rescue LoadError end begin require 'yard' YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb', 'ext/**/*.c'] t.options |= ["--private", "-e", "./yard_ext.rb"] end rescue LoadError $stderr.puts("YARD is not installed. Please install it " + "with the following command: gem install yard") end namespace :ext do desc "Rebuilds the C extension" task :rebuild do cd "ext/" ruby "extconf.rb" and sh "make clean && make" end desc "Builds the C extension" task :build do cd "ext/" ruby "extconf.rb" and sh "make" end end desc "Builds the C extension" task :ext => ["ext:build"] desc "Runs tests" task :test do test_file = File.expand_path("test/run_all.rb", File.dirname(__FILE__)) begin ruby test_file rescue exit 1 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ray-0.2.1 | Rakefile |
ray-0.2.0 | Rakefile |