Sha256: 325965bce128ba978763e2b223c38e094d297c11eb8a4d816e8eba0fa148f4e0

Contents?: true

Size: 1.39 KB

Versions: 1

Compression:

Stored size: 1.39 KB

Contents

$:.unshift(File.dirname(__FILE__))
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.rubyforge_project = "ruby-statsample"
    s.name = "clbustos-rtf"
    s.summary = 'Ruby library to create rich text format documents.'
    s.email = "clbustos@gmail.com"
    s.homepage = "http://github.com/clbustos/rtf"
    s.description = 'Ruby RTF is a library that can be used to create '\
                    'rich text format (RTF) documents. RTF is a text '\
                    'based standard for laying out document content.'
    s.authors = ["Peter Wood"]
    s.files = FileList["[A-Z]*", "{examples,lib,test}/**/*"]
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install jeweler"
end

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'ruby-rtf'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('[A-Z]*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib' << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = false
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |t|
    t.libs << 'test'
    t.test_files = FileList['test/**/*_test.rb']
    t.verbose = true
  end
rescue LoadError
  puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clbustos-rtf-0.3.1 Rakefile