ChunkedIO warnings
esotericpig opened this issue · comments
Bradley Whited commented
Excellent gem, thanks for making it.
If you run this code...
# test.rb
require 'down'
down = Down.open('https://github.com')
down.each_chunk() {|chunk| }
down.close()
...using ruby -w test.rb
, you'll get a lot of warnings while downloading:
~/.gem/ruby/2.7.0/gems/down-5.1.1/lib/down/chunked_io.rb:304: warning: instance variable @next_chunk not initialized
~/.gem/ruby/2.7.0/gems/down-5.1.1/lib/down/chunked_io.rb:264: warning: instance variable @closed not initialized
This isn't a big deal, but fills up my log files if warnings are turned on.
Environment
- ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
- down (5.1.1)
Thanks