Sha256: a6c788906269836ad2b806d15f3ed3e6d3d76dcbfc08fc8f6ae694b190376bb0
Contents?: true
Size: 1.81 KB
Versions: 2
Compression:
Stored size: 1.81 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' << 'test' t.pattern = 'test/**/*_tests.rb' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubikon-0.2.1 | Rakefile |
rubikon-0.2.0 | Rakefile |