You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 9.0.3.0, the global variable $INPUT_LINE_NUMBER isn't being updated correctly. Given the following program:
require 'csv'
File.open('foo.csv', 'w') do |f|
f.write "a,b,c\n1,2,3\n4,5,6\n7,8,9\n"
end
CSV.foreach('foo.csv', headers: true) do |row|
puts "i=#{$INPUT_LINE_NUMBER}"
end
MRI and JRuby 1.7 display:
i=2
i=3
i=4
While JRuby 9.0.3.0 displays:
i=2
i=2
i=2
The text was updated successfully, but these errors were encountered:
bpardee
pushed a commit
to bpardee/data_seeder
that referenced
this issue
Oct 27, 2015
In 9.0.3.0, the global variable $INPUT_LINE_NUMBER isn't being updated correctly. Given the following program:
MRI and JRuby 1.7 display:
While JRuby 9.0.3.0 displays:
The text was updated successfully, but these errors were encountered: