Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 607 Bytes
require 'rubygems'
require 'rubygems/installer'
GEMSPEC = Gem::Specification.load('bridge-ruby.gemspec')
require 'rake/clean'
task :clobber => :clean
desc "Build bridge, then run tests."
task :default => [:test, :package]
task :install => :package do
Gem::Installer.new("pkg/bridge-ruby-#{GEMSPEC.version}.gem").install
end
desc 'Generate documentation'
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', '-', 'docs/*.md']
t.options = ['--main', 'README.md', '--no-private']
end
rescue LoadError
task :yard do puts "Please install yard first!"; end
end