Sha256: cd040964e4dd9c1b4ec025cffc708712dbc2db5f53b2cc852b01aeef337713f3

Contents?: true

Size: 950 Bytes

Versions: 5

Compression:

Stored size: 950 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require File.join(File.dirname(__FILE__),'init')

require 'bundler'
Bundler::GemHelper.install_tasks

task :default => :test

desc 'Generate documentation for the wikicloth plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'WikiCloth'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

find_file = lambda do |name|
  file_name = lambda {|path| File.join(path, "#{name}.rb")}
  root = $:.detect do |path|
    File.exist?(file_name[path])
  end
  file_name[root] if root
end

TEST_LOADER = find_file['rake/rake_test_loader']
multiruby = lambda do |glob|
  system 'multiruby', TEST_LOADER, *Dir.glob(glob)
end

Rake::TestTask.new(:test) do |test|
  test.ruby_opts << "-W"
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wikicloth-0.7.0 Rakefile
wikicloth-0.6.3 Rakefile
wikicloth-0.6.2 Rakefile
wikicloth-0.6.1 Rakefile
wikicloth-0.6.0 Rakefile