File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ gem "mocha"
3333gem "rubocop-shopify" , require : false
3434gem "yard"
3535gem "rake"
36+ gem "csv" # required for Ruby 3.4+
3637
3738# for unit testing optional sorbet support
3839gem "sorbet-runtime"
Original file line number Diff line number Diff line change 3030 coderay (1.1.3 )
3131 concurrent-ruby (1.2.2 )
3232 connection_pool (2.4.1 )
33+ csv (3.2.8 )
3334 globalid (1.1.0 )
3435 activesupport (>= 5.0 )
3536 i18n (1.14.1 )
@@ -109,6 +110,7 @@ PLATFORMS
109110
110111DEPENDENCIES
111112 activerecord
113+ csv
112114 globalid
113115 i18n
114116 job-iteration !
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class CsvEnumerator
2020 # csv = CSV.open('tmp/files', { converters: :integer, headers: true })
2121 # JobIteration::CsvEnumerator.new(csv).rows(cursor: cursor)
2222 def initialize ( csv )
23- unless csv . instance_of? ( CSV )
23+ unless defined? ( CSV ) && csv . instance_of? ( CSV )
2424 raise ArgumentError , "CsvEnumerator.new takes CSV object"
2525 end
2626
You can’t perform that action at this time.
0 commit comments