Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b5b072b883
Fetching contributors…

Cannot retrieve contributors at this time

file 34 lines (28 sloc) 0.715 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
require "rubygems"
require "rubygems/package_task"
require "rdoc/task"

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
task :default => :spec

# This task actually builds the gem.
task :gem => :spec
task :gem => :build_man
spec = eval(File.read('ndo.gemspec'))

desc "Generate the gem package."
Gem::PackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end

# Generate documentation
RDoc::Task.new do |rd|
  rd.main = "README"
  rd.rdoc_files.include("README", "lib/**/*.rb")
  rd.rdoc_dir = "rdoc"
end

desc 'Clear out RDoc and generated packages'
task :clean => [:clobber_rdoc, :clobber_package] do
  rm "#{spec.name}.gemspec"
end

desc "Build manual"
task :build_man do
  sh "ronn -br5 man/*.ronn"
end
Something went wrong with that request. Please try again.