Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (68 sloc) 2.68 KB
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
require 'rake/rdoctask'
$:.unshift(File.expand_path(File.dirname(__FILE__) + '/lib'))
require './lib/action_mailer/ar_sendmail'
ar_mailer_gemspec = do |s| = %q{leftbrained-ar_mailer}
s.version = ActionMailer::ARSendmail::VERSION
s.required_rubygems_version =">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Eric Hodel", "Adam Meehan", "Gavin Montague"]
s.default_executable = %q{ar_sendmail}
s.description = %q{Forked from adzap-ar_mailer to allow parallel processing of emails by different worker servers. Even delivering email to the local machine may take too long when you have to send hundreds of messages. ar_mailer allows you to store messages into the database for later delivery by a separate process, ar_sendmail. } = %q{}
s.executables = ["ar_sendmail"]
s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "README.rdoc"]
s.files = [
s.has_rdoc = true
s.homepage = %q{}
s.rdoc_options = ["--main", "README.rdoc"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{seattlerb}
s.summary = %q{A two-phase delivery agent for ActionMailer}
s.test_files = ["test/test_armailer.rb", "test/test_arsendmail.rb"]
s.add_development_dependency "minitest", ">= 1.5.0"
s.add_development_dependency "mocha", ">= 0.9.8"
end do |pkg|
pkg.gem_spec = ar_mailer_gemspec
desc "Update ar_mailer.gemspec"
task :make_spec do"leftbrained-ar_mailer.gemspec", "w") do |f|
desc "Build packages and install"
task :install => :package do
sh %{sudo gem install --local --test pkg/ar_mailer-#{ActionMailer::ARSendmail::VERSION}}
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the ar_mailer gem.' do |t|
t.libs << 'lib' << 'test'
t.test_files = FileList['test/**/test_*.rb'].exclude("test/test_helper.rb")
t.verbose = true