aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-02 07:29:08 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-02 07:29:08 +0000
commit8d488264b5177966217982740cdd152bfc4f8903 (patch)
tree4c83cd8b4b1f5c42d96e2a484664692cf87df483 /actionmailer
parent998ab50974403ddc1cd166a3fe97528d344b1db4 (diff)
downloadrails-8d488264b5177966217982740cdd152bfc4f8903.tar.gz
rails-8d488264b5177966217982740cdd152bfc4f8903.tar.bz2
rails-8d488264b5177966217982740cdd152bfc4f8903.zip
Added install.rbs for all frameworks and made all of them generic enough not to require maintenance #1013, #1012
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1053 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/install.rb45
1 files changed, 7 insertions, 38 deletions
diff --git a/actionmailer/install.rb b/actionmailer/install.rb
index 4791ab1f4c..e65d0d10ad 100644
--- a/actionmailer/install.rb
+++ b/actionmailer/install.rb
@@ -18,44 +18,13 @@ unless $sitedir
end
end
-makedirs = %w{ action_mailer/vendor action_mailer/vendor/text action_mailer/vendor/tmail }
-makedirs.each {|f| File::makedirs(File.join($sitedir, *f.split(/\//)))}
-
-# deprecated files that should be removed
-# deprecated = %w{ }
-
-# files to install in library path
-files = %w-
- action_mailer.rb
- action_mailer/base.rb
- action_mailer/mail_helper.rb
- action_mailer/vendor/text/format.rb
- action_mailer/vendor/tmail.rb
- action_mailer/vendor/tmail/address.rb
- action_mailer/vendor/tmail/base64.rb
- action_mailer/vendor/tmail/config.rb
- action_mailer/vendor/tmail/encode.rb
- action_mailer/vendor/tmail/facade.rb
- action_mailer/vendor/tmail/header.rb
- action_mailer/vendor/tmail/info.rb
- action_mailer/vendor/tmail/loader.rb
- action_mailer/vendor/tmail/mail.rb
- action_mailer/vendor/tmail/mailbox.rb
- action_mailer/vendor/tmail/mbox.rb
- action_mailer/vendor/tmail/net.rb
- action_mailer/vendor/tmail/obsolete.rb
- action_mailer/vendor/tmail/parser.rb
- action_mailer/vendor/tmail/port.rb
- action_mailer/vendor/tmail/scanner.rb
- action_mailer/vendor/tmail/scanner_r.rb
- action_mailer/vendor/tmail/stringio.rb
- action_mailer/vendor/tmail/tmail.rb
- action_mailer/vendor/tmail/utils.rb
--
-
# the acual gruntwork
Dir.chdir("lib")
-# File::safe_unlink *deprecated.collect{|f| File.join($sitedir, f.split(/\//))}
-files.each {|f|
- File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
+
+Find.find("action_mailer", "action_mailer.rb") { |f|
+ if f[-3..-1] == ".rb"
+ File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
+ else
+ File::makedirs(File.join($sitedir, *f.split(/\//)))
+ end
}