Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.2.0
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (32 sloc) 1.084 kb
# encoding: utf-8
require "#{File.dirname(__FILE__)}/lib/unicode_utils/version"
gem_filename = "unicode_utils-#{UnicodeUtils::VERSION}.gem"
task "default" => "test"
desc "Run unit tests."
task "test" do
sh "ruby19 -I lib #{Dir["test/**/test_*.rb"].join(' ')}"
end
desc "Build unicode_utils gem."
task "gem" do
sh "gem19 build unicode_utils.gemspec"
mkdir "pkg" unless File.directory? "pkg"
mv gem_filename, "pkg"
end
desc "Run rdoc to generate html documentation."
task "doc" do
sh "rdoc19 -o doc --inline-source --charset=UTF-8 --title=UnicodeUtils --main=README.txt lib README.txt"
end
desc "Publish doc/ on unicode-utils.rubyfore.org. " +
"Note: scp will prompt for rubyforge password."
task "publish-doc" => "doc" do
sh "scp -r doc/* langi@rubyforge.org:/var/www/gforge-projects/unicode-utils/"
end
desc "Compile Unicode data files from data/ to cdata/."
task "compile-data" do
sh "ruby19 data/compile.rb"
end
desc "Remove generated packages and documentation."
task "clean" do
rm_r "pkg" if File.exist? "pkg"
rm_r "doc" if File.exist? "doc"
end
Jump to Line
Something went wrong with that request. Please try again.