Sha256: a347e2267064d239a714df557fb68a1bb7eef5b81eabdee60edaf32a7f7eee11

Contents?: true

Size: 690 Bytes

Versions: 2

Compression:

Stored size: 690 Bytes

Contents

# -*- 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coco-0.4.2 Rakefile
coco-0.4.1 Rakefile