mimimi/ruby-tsv

TSV::Table#rewind ought to rewind data_enumerator.

Opened this issue · 2 comments

Currently it's being stopped by our Enumerator that's wrapping Enumerator.

@Slotos I can't reproduce the problem. Can you show me some broken code?

From what I see now - rewinding 'our' enumerator restarts it from the ground up - and this also restarts data_enumerator from scratch.

Sorry for scarce description, left these mostly as a reminder for myself. I'll attempt to reproduce them in the same environment I caught them in (ruby 2.2.0p0, rails console) and update as necessary.

update
Reproduced it on Debian Jessie in irb rails console and in separate pry session. Ruby 2.2.0p0
Reproduced it on OSX in pry session. Ruby 2.2.1p85