sync_close: This fix breakage from Ruby-trunk r50118
commitdb790ff3531acdfa23ab290998bba29360a6782b
authorEric Wong <e@80x24.org>
Mon, 14 Sep 2015 05:33:16 +0000 (14 05:33 +0000)
committerEric Wong <e@80x24.org>
Mon, 14 Sep 2015 05:34:18 +0000 (14 05:34 +0000)
tree7326eb39c42abc10717337a677cff505a29fd05d
parent3358447d32b70e96f6cd48f05967306eafbc00d0
sync_close: This fix breakage from Ruby-trunk r50118

By providing read+readpartial methods

IO.copy_stream behaves slightly differently when operating on
non-IO-subclassed objects nowadays.

Ref:
> * io.c (copy_stream_body): use the arguments without conversion if
>   having read, readpartial, and write methods, than conversion by
>   to_path method.  [ruby-core:68676] [Bug #11015]
lib/rainbows/sync_close.rb