Sha256: 055ebd23f926dfa7f19061d42da45391f0e48f799634f1064f06d879c0c9f53d

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

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.0 Rakefile