diff --git a/Gemfile.lock b/Gemfile.lock index 13fc8ecb9..d771ef59f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -142,10 +142,10 @@ GEM childprocess (0.1.4) ffi (~> 0.6.3) closure-compiler (0.3.3) - cloudfiles (1.4.9) + cloudfiles (1.4.10) mime-types (>= 1.16) columnize (0.3.2) - configuration (1.1.0) + configuration (1.2.0) crack (0.1.8) cucumber (0.9.4) builder (~> 2.1.2) @@ -176,6 +176,8 @@ GEM addressable (~> 2.2.2) multipart-post (~> 1.0.1) rack (>= 1.1.0, < 2) + faraday_middleware (0.3.0) + faraday (~> 0.5.3) fastercsv (1.5.3) fastthread (1.0.7) ffi (0.6.3) @@ -188,8 +190,6 @@ GEM hashie (0.4.0) highline (1.6.1) http_connection (1.4.0) - httparty (0.6.1) - crack (= 0.1.8) i18n (0.4.2) jammit (0.5.4) closure-compiler (>= 0.1.0) @@ -224,6 +224,7 @@ GEM fastthread (>= 1.0.1) gem_plugin (>= 0.2.3) multi_json (0.0.5) + multi_xml (0.2.0) multipart-post (1.0.1) net-ldap (0.1.1) nokogiri (1.4.3.1) @@ -327,6 +328,7 @@ GEM ffi (~> 0.6.3) json_pure rubyzip + simple_oauth (0.1.2) subexec (0.0.4) systemu (1.2.0) term-ansicolor (1.0.5) @@ -337,11 +339,13 @@ GEM thor (0.14.4) treetop (1.4.9) polyglot (>= 0.3.1) - twitter (0.9.12) + twitter (1.0.0) + faraday (~> 0.5.3) + faraday_middleware (~> 0.3.0) hashie (~> 0.4.0) - httparty (~> 0.6.1) - multi_json (~> 0.0.4) - oauth (~> 0.4.3) + multi_json (~> 0.0.5) + multi_xml (~> 0.2.0) + simple_oauth (~> 0.1.2) tzinfo (0.3.23) uuidtools (2.1.1) warden (0.10.7) diff --git a/lib/rake_helpers.rb b/lib/rake_helpers.rb index d58c9af83..1d1d9d675 100644 --- a/lib/rake_helpers.rb +++ b/lib/rake_helpers.rb @@ -3,8 +3,14 @@ # the COPYRIGHT file. module RakeHelpers def process_emails(csv, num_to_process, offset) - require 'fastercsv' - backers = FasterCSV.read(csv) + if RUBY_VERSION.include? "1.8" + require 'fastercsv' + backers = FasterCSV.read(csv) + else + require 'csv' + backers = CSV.read(csv) + end + churn_through = 0 num_to_process.times do |n| if backers[n+offset] == nil