From de112300ca7f899b4b39b9ad29a753cddf62f433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Rodr=C3=ADguez?= Date: Tue, 12 Feb 2013 14:41:09 -0200 Subject: [PATCH] remove use csv instead of fastercsv --- lib/csv_generator.rb | 9 ++------- lib/rake_helpers.rb | 10 ++-------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/lib/csv_generator.rb b/lib/csv_generator.rb index e1fa8cb17..0f99f1fd2 100644 --- a/lib/csv_generator.rb +++ b/lib/csv_generator.rb @@ -197,14 +197,9 @@ SQL # ---------------- HELPER METHODS ------------------------- def self.load_waiting_list_csv(filename) + require 'csv' csv = filename - if RUBY_VERSION.include? "1.8" - require 'fastercsv' - people = FasterCSV.read(csv) - else - require 'csv' - people = CSV.read(csv) - end + people = CSV.read(csv) people end diff --git a/lib/rake_helpers.rb b/lib/rake_helpers.rb index 47cd7aed6..20284cb40 100644 --- a/lib/rake_helpers.rb +++ b/lib/rake_helpers.rb @@ -4,14 +4,8 @@ module RakeHelpers def process_emails(csv, num_to_process, offset, test=true) - if RUBY_VERSION.include? "1.8" - - require 'fastercsv' - backers = FasterCSV.read(csv) - else - require 'csv' - backers = CSV.read(csv) - end + require 'csv' + backers = CSV.read(csv) puts "DRY RUN" if test churn_through = 0 num_to_process.times do |n|