diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-25 00:46:04 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-25 00:46:13 -0500 |
commit | f430d6b63e5a756cf248e92d87a61a505034600c (patch) | |
tree | a49b1e0146112f9f2c6bc6f22c41286bea3efe44 /actionmailer/Rakefile | |
parent | 0a692e48ae1aedcbfeafbc0d31272f40de29961d (diff) | |
download | rails-f430d6b63e5a756cf248e92d87a61a505034600c.tar.gz rails-f430d6b63e5a756cf248e92d87a61a505034600c.tar.bz2 rails-f430d6b63e5a756cf248e92d87a61a505034600c.zip |
Make gemspecs the authoritative source instead of generating them from the Rakefile
Diffstat (limited to 'actionmailer/Rakefile')
-rw-r--r-- | actionmailer/Rakefile | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/actionmailer/Rakefile b/actionmailer/Rakefile index 0224bb2cf4..a756f35ee8 100644 --- a/actionmailer/Rakefile +++ b/actionmailer/Rakefile @@ -46,44 +46,14 @@ Rake::RDocTask.new { |rdoc| rdoc.rdoc_files.include('lib/action_mailer/*.rb') } +spec = eval(File.read('actionmailer.gemspec')) -# Create compressed packages -spec = Gem::Specification.new do |s| - s.platform = Gem::Platform::RUBY - s.name = PKG_NAME - s.summary = "Service layer for easy email delivery and testing." - s.description = %q{Makes it trivial to test and deliver emails sent from a single service layer.} - s.version = PKG_VERSION - - s.author = "David Heinemeier Hansson" - s.email = "david@loudthinking.com" - s.rubyforge_project = "actionmailer" - s.homepage = "http://www.rubyonrails.org" - - s.add_dependency('actionpack', '= 3.0.pre' + PKG_BUILD) - - s.has_rdoc = true - s.requirements << 'none' - s.require_path = 'lib' - s.autorequire = 'action_mailer' - - s.files = [ "Rakefile", "install.rb", "README", "CHANGELOG", "MIT-LICENSE" ] - s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) } - s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) } -end - Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec p.need_tar = true p.need_zip = true end -task :gemspec do - File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file| - file.puts spec.to_ruby - end -end - desc "Publish the API documentation" task :pgem => [:package] do require 'rake/contrib/sshpublisher' |