remove use csv instead of fastercsv
This commit is contained in:
parent
ac866a321d
commit
de112300ca
2 changed files with 4 additions and 15 deletions
|
|
@ -197,14 +197,9 @@ SQL
|
||||||
|
|
||||||
# ---------------- HELPER METHODS -------------------------
|
# ---------------- HELPER METHODS -------------------------
|
||||||
def self.load_waiting_list_csv(filename)
|
def self.load_waiting_list_csv(filename)
|
||||||
|
require 'csv'
|
||||||
csv = filename
|
csv = filename
|
||||||
if RUBY_VERSION.include? "1.8"
|
people = CSV.read(csv)
|
||||||
require 'fastercsv'
|
|
||||||
people = FasterCSV.read(csv)
|
|
||||||
else
|
|
||||||
require 'csv'
|
|
||||||
people = CSV.read(csv)
|
|
||||||
end
|
|
||||||
people
|
people
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,8 @@
|
||||||
module RakeHelpers
|
module RakeHelpers
|
||||||
|
|
||||||
def process_emails(csv, num_to_process, offset, test=true)
|
def process_emails(csv, num_to_process, offset, test=true)
|
||||||
if RUBY_VERSION.include? "1.8"
|
require 'csv'
|
||||||
|
backers = CSV.read(csv)
|
||||||
require 'fastercsv'
|
|
||||||
backers = FasterCSV.read(csv)
|
|
||||||
else
|
|
||||||
require 'csv'
|
|
||||||
backers = CSV.read(csv)
|
|
||||||
end
|
|
||||||
puts "DRY RUN" if test
|
puts "DRY RUN" if test
|
||||||
churn_through = 0
|
churn_through = 0
|
||||||
num_to_process.times do |n|
|
num_to_process.times do |n|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue