Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 49d18f86f1
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (26 sloc) 0.69 kb
# -*- encoding: utf-8 -*-
require 'rake'
require 'rspec/core/rake_task'
desc 'Test coco'
task :default => :spec
desc 'Test coco'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ['--color']
end
desc 'Check for code smells'
task :reek do
puts 'Checking for code smells...'
files = Dir.glob 'lib/**/*.rb'
args = files.join(' ')
sh "reek --quiet #{args} | ./reek.sed"
end
desc 'Build the gem & install it'
task :install do
sh "gem build coco.gemspec"
f = FileList['coco*gem'].to_a
sh "gem install #{f.first} --no-rdoc --no-ri"
end
desc 'Generate yard documentation for developpers'
task :doc do
exec 'yardoc --title "Coco Documentation" - NEWS COPYING VERSION'
end
Jump to Line
Something went wrong with that request. Please try again.