Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (36 sloc) 1.11 KB
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "git-db"
gem.summary = %Q{Database-based git server}
gem.description = gem.summary
gem.email = "<ddollar@gmail.com>"
gem.homepage = "http://github.com/ddollar/git-db"
gem.authors = ["David Dollar"]
# development dependencies
gem.add_development_dependency "rspec"
# runtime dependencies
gem.add_dependency "couchrest"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
spec.spec_opts << '--colour --format specdoc'
end
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
spec.rcov_opts = lambda do
IO.readlines("#{File.dirname(__FILE__)}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
end
end
task :spec => :check_dependencies
task :default => :spec