powerpak/tqdm-ruby

Return value is different when using tqdm

survili opened this issue · 1 comments

Hi, love this little gem, it's very useful.

Below is a little sample, where you can see that a return value is different when using tqdm.

[6] pry(main)> (0...1000).tqdm.each {|x| sleep 0.001 }
=> 1
[7] pry(main)> (0...1000).each {|x| sleep 0.001 }
=> 0...1000

Thank you

Thanks for pointing this out! @chadmetcalf was kind in fixing it.

Fixed by ca375d8