Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (32 sloc) 997 Bytes
require "bundler/gem_tasks"
task :default => :test
# ==========================================================
# Packaging
# ==========================================================
GEMSPEC = Gem::Specification.load('ctags.rb.gemspec')
require 'rubygems/package_task'
Gem::PackageTask.new(GEMSPEC) do |pkg|
end
# ==========================================================
# Compiling
# ==========================================================
task :build do
Dir.chdir('ext') do
ruby 'extconf.rb'
end
end
# ==========================================================
# Testing
# ==========================================================
require 'rake/testtask'
Rake::TestTask.new 'test' do |t|
t.test_files = FileList['test/test_*.rb']
t.ruby_opts = ['-rubygems']
end
task :test => :build
# ==========================================================
# Benchmarks
# ==========================================================
task :bench => :build do
ruby 'bench.rb'
end