RobustServer/Rakefile

50 lines
1.2 KiB
Text
Raw Normal View History

2013-04-15 12:01:57 +02:00
# encoding: utf-8
2010-03-02 11:40:06 +01:00
require 'rubygems'
2013-04-15 12:01:57 +02:00
require 'bundler'
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
2010-03-02 11:40:06 +01:00
require 'rake'
2013-04-15 12:01:57 +02:00
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "robustserver"
gem.summary = %Q{Robust Server}
gem.description = %Q{Protects your Server against SIGS and rescues all exceptions.}
gem.email = "Denis.Knauf@gmail.com"
gem.homepage = "http://github.com/DenisKnauf/robustserver"
gem.authors = ["Denis Knauf"]
gem.files = %w[AUTHORS README.md VERSION lib/**/*.rb test/**/*.rb]
gem.require_paths = %w[lib]
# dependencies defined in Gemfile
2010-03-02 11:40:06 +01:00
end
2013-04-15 12:01:57 +02:00
Jeweler::RubygemsDotOrgTasks.new
2010-03-02 11:40:06 +01:00
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
2013-04-15 12:01:57 +02:00
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
2010-03-02 11:40:06 +01:00
test.verbose = true
end
2013-04-15 12:01:57 +02:00
=begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
test.rcov_opts << '--exclude "gems/*"'
2010-03-02 11:40:06 +01:00
end
2013-04-15 12:01:57 +02:00
=end
2010-03-02 11:40:06 +01:00
task :default => :test
2013-04-15 12:01:57 +02:00
require 'yard'
YARD::Rake::YardocTask.new