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 = Gem::Specification.new do |s| s.name = %q{rzeszotko-ar_mailer} s.version = "2.1.11" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Eric Hodel", "Adam Meehan", "Jarosław Rzeszótko"] s.date = %q{2010-03-17} s.default_executable = %q{ar_sendmail} s.description = %q{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.} s.email = %q{adam.meehan@gmail.com} s.executables = ["ar_sendmail"] s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "README.rdoc"] s.files = ["History.txt", "LICENSE.txt", "README.rdoc", "Rakefile", "bin/ar_sendmail", "generators/ar_mailer/ar_mailer_generator.rb", "generators/ar_mailer/templates/migration.rb", "generators/ar_mailer/templates/model.rb", "lib/rzeszotko-ar_mailer.rb", "lib/action_mailer/ar_mailer.rb", "lib/action_mailer/ar_sendmail.rb", "lib/action_mailer/ar_tmail.rb", "lib/smtp_tls.rb", "share/bsd/ar_sendmail", "share/linux/ar_sendmail", "share/linux/ar_sendmail.conf", "test/resources/action_mailer.rb", "test/test_armailer.rb", "test/test_arsendmail.rb", "test/test_helper.rb"] s.homepage = %q{http://github.com/sztywny/ar_mailer} s.rdoc_options = ["--main", "README.rdoc"] s.require_paths = ["lib"] s.rubyforge_project = %q{seattlerb} s.rubygems_version = %q{1.3.5} s.summary = %q{A two-phase delivery agent for ActionMailer} s.test_files = ["test/test_armailer.rb", "test/test_arsendmail.rb"] if s.respond_to? :specification_version then current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 3 if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then s.add_development_dependency(%q, [">= 1.5.0"]) s.add_development_dependency(%q, [">= 0.9.8"]) else s.add_dependency(%q, [">= 1.5.0"]) s.add_dependency(%q, [">= 0.9.8"]) end else s.add_dependency(%q, [">= 1.5.0"]) s.add_dependency(%q, [">= 0.9.8"]) end end Rake::GemPackageTask.new(ar_mailer_gemspec) do |pkg| pkg.gem_spec = ar_mailer_gemspec end desc "Update ar_mailer.gemspec" task :make_spec do File.open("sztywny-ar_mailer.gemspec", "w") do |f| f.puts(ar_mailer_gemspec.to_ruby) end end desc "Build packages and install" task :install => :package do sh %{sudo gem install --local --test pkg/ar_mailer-#{ActionMailer::ARSendmail::VERSION}} end desc 'Default: run unit tests.' task :default => :test desc 'Test the ar_mailer gem.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' << 'test' t.test_files = FileList['test/**/test_*.rb'].exclude("test/test_helper.rb") t.verbose = true end