fix 1.9 build
This commit is contained in:
parent
3d5cf8f625
commit
90193a16f5
2 changed files with 20 additions and 10 deletions
20
Gemfile.lock
20
Gemfile.lock
|
|
@ -142,10 +142,10 @@ GEM
|
||||||
childprocess (0.1.4)
|
childprocess (0.1.4)
|
||||||
ffi (~> 0.6.3)
|
ffi (~> 0.6.3)
|
||||||
closure-compiler (0.3.3)
|
closure-compiler (0.3.3)
|
||||||
cloudfiles (1.4.9)
|
cloudfiles (1.4.10)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
columnize (0.3.2)
|
columnize (0.3.2)
|
||||||
configuration (1.1.0)
|
configuration (1.2.0)
|
||||||
crack (0.1.8)
|
crack (0.1.8)
|
||||||
cucumber (0.9.4)
|
cucumber (0.9.4)
|
||||||
builder (~> 2.1.2)
|
builder (~> 2.1.2)
|
||||||
|
|
@ -176,6 +176,8 @@ GEM
|
||||||
addressable (~> 2.2.2)
|
addressable (~> 2.2.2)
|
||||||
multipart-post (~> 1.0.1)
|
multipart-post (~> 1.0.1)
|
||||||
rack (>= 1.1.0, < 2)
|
rack (>= 1.1.0, < 2)
|
||||||
|
faraday_middleware (0.3.0)
|
||||||
|
faraday (~> 0.5.3)
|
||||||
fastercsv (1.5.3)
|
fastercsv (1.5.3)
|
||||||
fastthread (1.0.7)
|
fastthread (1.0.7)
|
||||||
ffi (0.6.3)
|
ffi (0.6.3)
|
||||||
|
|
@ -188,8 +190,6 @@ GEM
|
||||||
hashie (0.4.0)
|
hashie (0.4.0)
|
||||||
highline (1.6.1)
|
highline (1.6.1)
|
||||||
http_connection (1.4.0)
|
http_connection (1.4.0)
|
||||||
httparty (0.6.1)
|
|
||||||
crack (= 0.1.8)
|
|
||||||
i18n (0.4.2)
|
i18n (0.4.2)
|
||||||
jammit (0.5.4)
|
jammit (0.5.4)
|
||||||
closure-compiler (>= 0.1.0)
|
closure-compiler (>= 0.1.0)
|
||||||
|
|
@ -224,6 +224,7 @@ GEM
|
||||||
fastthread (>= 1.0.1)
|
fastthread (>= 1.0.1)
|
||||||
gem_plugin (>= 0.2.3)
|
gem_plugin (>= 0.2.3)
|
||||||
multi_json (0.0.5)
|
multi_json (0.0.5)
|
||||||
|
multi_xml (0.2.0)
|
||||||
multipart-post (1.0.1)
|
multipart-post (1.0.1)
|
||||||
net-ldap (0.1.1)
|
net-ldap (0.1.1)
|
||||||
nokogiri (1.4.3.1)
|
nokogiri (1.4.3.1)
|
||||||
|
|
@ -327,6 +328,7 @@ GEM
|
||||||
ffi (~> 0.6.3)
|
ffi (~> 0.6.3)
|
||||||
json_pure
|
json_pure
|
||||||
rubyzip
|
rubyzip
|
||||||
|
simple_oauth (0.1.2)
|
||||||
subexec (0.0.4)
|
subexec (0.0.4)
|
||||||
systemu (1.2.0)
|
systemu (1.2.0)
|
||||||
term-ansicolor (1.0.5)
|
term-ansicolor (1.0.5)
|
||||||
|
|
@ -337,11 +339,13 @@ GEM
|
||||||
thor (0.14.4)
|
thor (0.14.4)
|
||||||
treetop (1.4.9)
|
treetop (1.4.9)
|
||||||
polyglot (>= 0.3.1)
|
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)
|
hashie (~> 0.4.0)
|
||||||
httparty (~> 0.6.1)
|
multi_json (~> 0.0.5)
|
||||||
multi_json (~> 0.0.4)
|
multi_xml (~> 0.2.0)
|
||||||
oauth (~> 0.4.3)
|
simple_oauth (~> 0.1.2)
|
||||||
tzinfo (0.3.23)
|
tzinfo (0.3.23)
|
||||||
uuidtools (2.1.1)
|
uuidtools (2.1.1)
|
||||||
warden (0.10.7)
|
warden (0.10.7)
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,14 @@
|
||||||
# the COPYRIGHT file.
|
# the COPYRIGHT file.
|
||||||
module RakeHelpers
|
module RakeHelpers
|
||||||
def process_emails(csv, num_to_process, offset)
|
def process_emails(csv, num_to_process, offset)
|
||||||
require 'fastercsv'
|
if RUBY_VERSION.include? "1.8"
|
||||||
backers = FasterCSV.read(csv)
|
require 'fastercsv'
|
||||||
|
backers = FasterCSV.read(csv)
|
||||||
|
else
|
||||||
|
require 'csv'
|
||||||
|
backers = CSV.read(csv)
|
||||||
|
end
|
||||||
|
|
||||||
churn_through = 0
|
churn_through = 0
|
||||||
num_to_process.times do |n|
|
num_to_process.times do |n|
|
||||||
if backers[n+offset] == nil
|
if backers[n+offset] == nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue