Sha256: c71a599338f5861fcf71f63684208b926a219f4e2f10d00340c93d6cc116cc5d
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
require 'bundler' require 'rake/clean' require 'rake/testtask' gem 'rdoc' # we need the installed RDoc gem, not the system one require 'rdoc/task' require 'erb' include Rake::DSL Bundler::GemHelper.install_tasks Rake::TestTask.new do |t| t.pattern = 'test/tc_*.rb' end Rake::RDocTask.new do |rd| rd.main = "README.rdoc" rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*") end # compile 'README.md.erb' file into 'README.md' file task :readme do puts "Compiling README.md" @usage = `ruby bin/previews --help`.gsub(/^Usage: /, "Usage:\n```\n") + "```" File.open("README.md", "w") do |f| f.write ERB.new(File.new("README.md.erb", "r").read).result(binding) end end task :default => [:test]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
previews-0.0.5 | Rakefile |