From 3c844df6b1c97eaf2572a4db3c4dc69549982593 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 12 Nov 2013 15:24:42 +0000 Subject: Require activesupport before mail gem. If activesupport isn't present, the mail gem will load it's own version, and when rails is eventually loaded in this script, the warning "warning: already initialized constant VALID CHARACTER" is written to standard error. --- script/handle-mail-replies.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/handle-mail-replies.rb') diff --git a/script/handle-mail-replies.rb b/script/handle-mail-replies.rb index da0fc8e96..cbff03acb 100755 --- a/script/handle-mail-replies.rb +++ b/script/handle-mail-replies.rb @@ -20,6 +20,9 @@ $:.push(File.join($alaveteli_dir, "lib", "mail_handler")) load 'configuration.rb' MySociety::Config.set_file(File.join($alaveteli_dir, 'config', 'general'), true) MySociety::Config.load_default + + +require 'active_support/all' require 'mail_handler' if RUBY_VERSION.to_f >= 1.9 # the default encoding for IO is utf-8, and we use utf-8 internally -- cgit v1.2.3