Sha256: 203246c16fc294b20cd107b34d08f500b9e2cd3287ad095a3d731edc72939992
Contents?: true
Size: 1.77 KB
Versions: 1
Compression:
Stored size: 1.77 KB
Contents
# $Id$ $:.push("lib", "test") require 'rubygems' require 'rake' require 'rake/clean' require 'rake/testtask' require 'rake/gempackagetask' require 'rake/rdoctask' require 'hoe' def version if ENV['GEM_VERSION']: return ENV['GEM_VERSION'] elsif ENV['PWD'] =~ %r|tags/((?:[[:alnum:]]+\.)+[[:alnum:]]+)|: return $1 end return nil end VERSION=version def name "tartan" end namespace :build do namespace :check do task :manifest do man_files = File.read('') end end Hoe.new(name, version||"0.0.0") do |p| p.summary = 'A library for building text parsers' p.description = <<-TEXT_END A text parsing engine. The syntax is defined outside the engine as regex-based rules, in YAML or Ruby. It supports layering and multiple output types. Rules for Markdown to HTML are included, with optional layered extensions for tables and wikilinks. TEXT_END p.email = 'tartan@folklogic.com' p.url = 'http://tartan.rubyforge.com/' p.author = "Larry Baltz and David B. Anderson" # p.files += extra_files p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n") p.test_globs = 'test/test-*.rb' end end def extra_files %w(README TODO MIT-LICENSE) end def rdoc_extra ['README'] end def test_files files = FileList['test/test*.rb'] files.collect do |f| f.match(/^test\/test[-_]?(.*?)\.rb/)[1] end end namespace :test do test_files.each do |file| desc "Run #{file} tests" task (file.to_sym) {ruby "-w -I test test/test-#{file}.rb"} end task :all do test_files.each do |test| system("ruby -w -I test test/test-#{test}.rb") end end end task :default => ["test:all"] task :version_check do if version.nil? raise "can't figure out build version" end end task :version do p version end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tartan-0.2.1 | Rakefile |