Closed dearblue closed 5 years ago
:white_check_mark: Build minitar 68 completed (commit https://github.com/halostatue/minitar/commit/e3a30bb9cd by @dearblue)
Is "not compatible" means missing #bytesize
method?
In that case, is use of monkey patch acceptable?
example:
unless String.method_defined?(:bytesize)
class String
alias bytesize size
end
end
I am going to include this code.
I'm sorry, I did not confirm "thumbs up" attached to my comment.
Thank you very much for your support. It's a great achievement!
Sorry for collect two fixes to one pull request, because the conflict.
One is fix for should be use
String#bytesize
instead ofString#size
.When packing the file included multibyte character, tar file is broken.
Another is fix for to be omissible
size
parameter withMinitar::Writer#add_file_simple
.Thanks.