Sha256: 47efc9d7e2db8cdc59150edf8d4ed4ace505edcc7095d18ce364926bd85ba523

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

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

desc 'Default: Run all specs.'
task :default => :spec

desc "Run all specs"
Spec::Rake::SpecTask.new() do |t|
  t.spec_opts = ['--options', "\"spec/support/spec.opts\""]
  t.spec_files = FileList['spec/**/*_spec.rb']
end

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

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "mail_magnet"
    gemspec.summary = "Override ActionMailer recipients so all mails go to a given address"
    gemspec.email = "github@makandra.com"
    gemspec.homepage = "http://github.com/makandra/mail_magnet"
    gemspec.description = "Override ActionMailer recipients so all mails go to a given address"
    gemspec.authors = ["Arne Hartherz"]
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install jeweler"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mail_magnet-0.2.0 Rakefile
mail_magnet-0.1.1 Rakefile