Sha256: 033cd686fae817d5335e9d68816207b7e13cb56bc19f285c69985fad4cfc84a1
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
require 'fileutils' begin require 'bundler' Bundler::GemHelper.install_tasks rescue LoadError # ignore if bundler does not exist end require 'rubygems' require 'rake/testtask' require 'rake/clean' task :default => [:test] task :kpeg do FileUtils.rm_f "lib/review/compiler.rb" FileUtils.rm_f "lib/review/compiler/literals_1_8.rb" FileUtils.rm_f "lib/review/compiler/literals_1_9.rb" sh "kpeg -s lib/review/compiler/literals_1_8.kpeg -o lib/review/compiler/literals_1_8.rb" sh "kpeg -s lib/review/compiler/literals_1_9.kpeg -o lib/review/compiler/literals_1_9.rb" sh "kpeg -s lib/review/review.kpeg -o lib/review/compiler.rb" end Rake::TestTask.new("test") do |t| t.libs << "test" t.test_files = Dir.glob("test/**/test_*.rb") t.verbose = true end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |t| t.rcov_opts << '-x /gems/' t.rcov_opts << '-x /tmp/' t.libs << 'test' t.pattern = 'test/test_*.rb' t.verbose = true end rescue LoadError end begin require 'rdoc/task' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc' rdoc.title = "review #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end rescue LoadError end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
review-2.0.0.beta1 | Rakefile |