Sha256: 3a0025f11bec1ff7df961e48f3232d1ab3f2ff15bca9f32240a8b1a4b729d1f6

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

require File.expand_path('../spec/environment', __FILE__)

require 'rake/rdoctask'
require 'rake/testtask'
require 'spec/rake/spectask'

desc "Build a gem file"
task :build do
  system "gem build mail.gemspec"
end

task :default => :spec

Spec::Rake::SpecTask.new(:rcov) do |t|
  t.spec_files = FileList['test/**/tc_*.rb', 'spec/**/*_spec.rb']
  t.rcov = true
  t.rcov_opts = t.rcov_opts << ['--exclude', '/Library,/opt,/System,/usr']
end

Spec::Rake::SpecTask.new(:spec) do |t|
  t.warning = true
  t.spec_files = FileList["#{File.dirname(__FILE__)}/spec/**/*_spec.rb"]
  t.spec_opts = %w(--backtrace --diff --color)
  t.libs << "#{File.dirname(__FILE__)}/spec"
  t.libs << "#{File.dirname(__FILE__)}/spec/mail"
end

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

# load custom rake tasks
Dir["#{File.dirname(__FILE__)}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mail-2.2.6 Rakefile
mail-2.2.5.2 Rakefile
mail-2.2.5.1 Rakefile