mimimi / ruby-tsv

Simple TSV parser
MIT License
37 stars 4 forks source link

TSV::Table#rewind ought to rewind data_enumerator. #5

Open Slotos opened 9 years ago

Slotos commented 9 years ago

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

brain-geek commented 9 years ago

@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.

Slotos commented 9 years ago

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