Sha256: 2426a4975805650c421bd6f45da3a5aaadec918143ca63d93820103fd12b6f27

Contents?: true

Size: 795 Bytes

Versions: 3

Compression:

Stored size: 795 Bytes

Contents

require 'rubygems'
require 'rake/rdoctask'
require 'rubygems/specification'
require 'rspec/core/rake_task'

GEM_NAME = "timeliness"

desc 'Default: run specs.'
task :default => :spec

desc "Run specs"
RSpec::Core::RakeTask.new do |t|
  t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
end

desc "Generate code coverage"
RSpec::Core::RakeTask.new(:coverage) do |t|
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec']
end

desc 'Generate documentation for plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Timeliness'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc "Create a gemspec file"
task :build do
  `gem build #{GEM_NAME}.gemspec`
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
timeliness-0.3.2 Rakefile
timeliness-0.3.1 Rakefile
timeliness-0.3.0 Rakefile