Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 8d60517ae3
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (35 sloc) 1.051 kB
require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'tools/rakehelp'
require 'fileutils'
include FileUtils
REV = File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
VERS = ENV['VERSION'] || "0.5" + (REV ? ".#{REV}" : "")
task :default => [:package]
setup_tests
setup_rdoc ['README', 'CHANGELOG', 'lib/**/*.rb']
summary = "Markup as Ruby, write HTML in your native Ruby tongue"
test_file = "test/test_markaby.rb"
setup_gem("markaby", VERS, "Tim Fletcher and _why", summary, [['builder', '>=2.0.0']], test_file)
desc "List any Markaby specific warnings"
task :warnings do
`ruby -w test/test_markaby.rb 2>&1`.split(/\n/).each do |line|
next unless line =~ /warning:/
next if line =~ /builder-/
puts line
end
end
desc "Start a Markaby-aware IRB session"
task :irb do
sh 'irb -I lib -r markaby -r markaby/kernel_method'
end
namespace :test do
desc ''
task :rails do
Dir.chdir '../../../'
sh 'rake test:plugins PLUGIN=markaby'
end
end
Jump to Line
Something went wrong with that request. Please try again.