]> git.r.bdr.sh - rbdr/cologne/blame - Rakefile
Regenerate gemspec for version 0.1.0
[rbdr/cologne] / Rakefile
CommitLineData
b7253395 1require 'rubygems'
2require 'rake'
3
4begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
b00fd9bb 7 gem.name = 'cobalt'
8 gem.summary = %Q{Console for ruby.}
9 gem.description = %Q{Colored, Nesting, Multiple logging management.}
10 gem.email = 'kazu.dev@gmail.com'
11 gem.homepage = 'http://github.com/ktlacaelel/cobalt'
12 gem.authors = ['Fernando TrasviƱa', 'Pablo Antonio Gonzalez Cervantes', 'kazuyoshi tlacaelel']
13 gem.add_development_dependency 'thoughtbot-shoulda', '>= 0'
14 gem.add_development_dependency 'isna', '>= 0'
b7253395 15 end
16 Jeweler::GemcutterTasks.new
17rescue LoadError
b00fd9bb 18 puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
b7253395 19end
20
21require 'rake/testtask'
22Rake::TestTask.new(:test) do |test|
23 test.libs << 'lib' << 'test'
24 test.pattern = 'test/**/test_*.rb'
25 test.verbose = true
26end
27
28begin
29 require 'rcov/rcovtask'
30 Rcov::RcovTask.new do |test|
31 test.libs << 'test'
32 test.pattern = 'test/**/test_*.rb'
33 test.verbose = true
34 end
35rescue LoadError
36 task :rcov do
b00fd9bb 37 abort 'RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov'
b7253395 38 end
39end
40
41task :test => :check_dependencies
42
43task :default => :test
44
45require 'rake/rdoctask'
46Rake::RDocTask.new do |rdoc|
b00fd9bb 47 version = File.exist?('VERSION') ? File.read('VERSION') : ''
b7253395 48
49 rdoc.rdoc_dir = 'rdoc'
50 rdoc.title = "cobalt #{version}"
51 rdoc.rdoc_files.include('README*')
52 rdoc.rdoc_files.include('lib/**/*.rb')
53end