Closed ondra-m closed 8 years ago
Hi Ondrej, thanks for fixing the bug, would you mind creating a test case to trap this problem in truncator_spec
?
I think this is just workaround. Would not it be better to
.byteslice
instead of .[]
.[]
but without .bytesize
(just .size
)Thanks for providing test case and suggestions for fixing the issue, much appreciated!
Decided to go with the first option and released v0.2.0
. Enjoy!
I have error
NoMethodError: undefined method bytesize for nil:NilClass
onProblem is that
value[offset..-1]
return nil. Offsett is equal to value size.