You already know that you _should_ be running Ruby 1.9, why aren't you? This is how New Relic upgraded our big-ass, five year old Rails 2.3 app to Ruby 1.9.
until we did this # See - http://bit.ly/WPAj7a if ::RUBY_VERSION.split('.')[0,3] == ['1','9','3'] MissingSourceFile::REGEXPS.push( [/^cannot load such file -- (.+)$/i, 1] ) end
FasterCSV, # in 1.9 it's just CSV. So use some constant tricks # to make sure it's always "CSV" for us if CSV.const_defined? :Reader # Ruby 1.8 compatible require 'fastercsv' Object.send(:remove_const, :CSV) CSV = FasterCSV else # CSV is now FasterCSV in ruby 1.9 end