Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 637 Bytes
# encoding: utf-8
require 'bundler/gem_tasks'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'test'
test.pattern = 'test/**/*_test.rb'
end
task :default => [:compile, :test]
require 'yard'
YARD::Rake::YardocTask.new do |t|
version = TagLib::Version::STRING
t.options = ['--title', "taglib-ruby #{version}"]
end
$gemspec = Bundler::GemHelper.gemspec
FileList['tasks/**/*.rake'].each { |task| import task }