Sha256: 6c26bcf319e00d25db7ee89b04beeed5d8520ea1afb34e8e382a8f46c78ce6bf

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

# This code is free software; you can redistribute it and/or modify it under the
# terms of the new BSD License.
#
# Copyright (c) 2009, Sebastian Staudt

require 'rake/rdoctask'
require 'rake/testtask'

src_files = Dir.glob(File.join('lib', '**', '*.rb'))
test_files = Dir.glob(File.join('test', '**', '*.rb'))

task :default => :test

# Test task
Rake::TestTask.new do |t|
  t.libs << 'lib'
  t.test_files = test_files
  t.verbose = true
end

begin
  require 'jeweler'
  # Gem specification
  Jeweler::Tasks.new do |gem|
    gem.authors = ['Sebastian Staudt']
    gem.email = 'koraktor@gmail.com'
    gem.description = 'A simple to use, yet powerful Ruby framework for building console-based applications.'
    gem.date = Time.now
    gem.homepage = 'http://koraktor.github.com/rubikon'
    gem.name = gem.rubyforge_project = 'rubikon'
    gem.summary = 'Rubikon - A Ruby console app framework'

    gem.files = %w(README.md Rakefile LICENSE VERSION.yml) + src_files + test_files
    gem.rdoc_options = ['--all', '--inline-source', '--line-numbers', '--charset=utf-8', '--webcvs=http://github.com/koraktor/rubikon/blob/master/%s']
  end
rescue LoadError
  puts "You need Jeweler to build the gem. Install it using `gem install jeweler`."
end

# Create a rake task +:rdoc+ to build the documentation
desc 'Building docs'
Rake::RDocTask.new do |rdoc|
  rdoc.title = 'Rubikon - API documentation'
  rdoc.rdoc_files.include ['lib/**/*.rb', 'LICENSE', 'README.md']
  rdoc.main = 'README.md'
  rdoc.rdoc_dir = 'doc'
  rdoc.options = ['--all', '--inline-source', '--line-numbers', '--charset=utf-8', '--webcvs=http://github.com/koraktor/rubikon/blob/master/%s']
end

# Task for cleaning documentation and package directories
desc 'Clean documentation and package directories'
task :clean do
  FileUtils.rm_rf 'doc'
  FileUtils.rm_rf 'pkg'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubikon-0.1.0 Rakefile