Sha256: 4c15711964081b37a60997b74184a5f747fd06933a26757607c10d34b130bd0c

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 KB

Contents

require 'rubygems'

require 'rspec'
require 'rake'
require "rake/clean"
require "rubygems/package_task"
require "rdoc/task"
require 'rspec/core/rake_task'
require 'yard'
require 'yard/rake/yardoc_task.rb'
require "rake/tasklib"
require "roodi"
require "roodi_task"
 
 
RoodiTask.new() do | t |
t.patterns = %w(lib/**/*.rb)
t.config = "ultragreen_roodi_coding_convention.yml"
end


CLEAN.include('*.tmp','*.old')
CLOBBER.include('*.tmp', 'build/*','#*#')


content = File::readlines(File.join(File.dirname(__FILE__), 'carioca.gemspec')).join
spec = eval(content)

RSpec::Core::RakeTask.new('spec')



YARD::Rake::YardocTask.new do |t|
  t.files   = [ 'lib/**/*.rb', '-', 'doc/**/*','spec/**/*_spec.rb']			   
  t.options += ['--title', "Gem Documentation"]
  t.options += ['-o', "yardoc"]
  t.options += ['-r', "doc/manual.rdoc"]
end
YARD::Config.load_plugin('yard-rspec') 

namespace :yardoc do
  task :clobber do
    rm_r "yardoc" rescue nil
    rm_r ".yardoc" rescue nil
  end
end
task :clobber => "yardoc:clobber"


Gem::PackageTask.new(spec) do |pkg|
  pkg.need_tar = true
  pkg.need_zip = true
end

Rake::RDocTask.new('rdoc') do |d|
  d.rdoc_files.include('doc/**/*','bin/*')
  d.main = 'doc/manual.rdoc'
  d.title = 'Uglibs : Ultragreen libraries'
  d.options << '--line-numbers' << '--diagram' << '-SHN'
end

task :default => [:gem]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
carioca-1.3 Rakefile
carioca-1.1 Rakefile