diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-05 09:19:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-05-05 09:19:23 +0000 |
commit | 1ab261dda6dff917297cff40f8468e63737d010c (patch) | |
tree | eed8b37a304f5b15ed18fe0092cd2e198062c851 /lib/vendor/tmail-1.2.7/tmail/require_arch.rb | |
parent | 255a84878d18831f083e3626869767bf79c5669a (diff) | |
download | redmine-1ab261dda6dff917297cff40f8468e63737d010c.tar.gz redmine-1ab261dda6dff917297cff40f8468e63737d010c.zip |
Use Mail instead of TMail in MailHandler.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9630 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/vendor/tmail-1.2.7/tmail/require_arch.rb')
-rw-r--r-- | lib/vendor/tmail-1.2.7/tmail/require_arch.rb | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/lib/vendor/tmail-1.2.7/tmail/require_arch.rb b/lib/vendor/tmail-1.2.7/tmail/require_arch.rb deleted file mode 100644 index b4fffb8ab..000000000 --- a/lib/vendor/tmail-1.2.7/tmail/require_arch.rb +++ /dev/null @@ -1,58 +0,0 @@ -#:stopdoc: -require 'rbconfig' - -# Attempts to require anative extension. -# Falls back to pure-ruby version, if it fails. -# -# This uses Config::CONFIG['arch'] from rbconfig. - -def require_arch(fname) - arch = Config::CONFIG['arch'] - begin - path = File.join("tmail", arch, fname) - require path - rescue LoadError => e - # try pre-built Windows binaries - if arch =~ /mswin/ - require File.join("tmail", 'mswin32', fname) - else - raise e - end - end -end - - -# def require_arch(fname) -# dext = Config::CONFIG['DLEXT'] -# begin -# if File.extname(fname) == dext -# path = fname -# else -# path = File.join("tmail","#{fname}.#{dext}") -# end -# require path -# rescue LoadError => e -# begin -# arch = Config::CONFIG['arch'] -# path = File.join("tmail", arch, "#{fname}.#{dext}") -# require path -# rescue LoadError -# case path -# when /i686/ -# path.sub!('i686', 'i586') -# when /i586/ -# path.sub!('i586', 'i486') -# when /i486/ -# path.sub!('i486', 'i386') -# else -# begin -# require fname + '.rb' -# rescue LoadError -# raise e -# end -# end -# retry -# end -# end -# end -#:startdoc:
\ No newline at end of file |