Closed qume closed 7 years ago
on line 140 change
if c == 10 buffer.lstrip!
to
if c.ord == 10 buffer.lstrip!
to make this gem work. I don't know for sure but assume that this worked 7 years ago on a previous version of ruby then they changed how the comparison operator works with chars
Thanks for a great gem!
Actually this might work better - helps catch some UTF8 issues (why there are any I don't understand):
if c == "\n" buffer = buffer.encode("ASCII") buffer.lstrip!
on line 140 change
to
to make this gem work. I don't know for sure but assume that this worked 7 years ago on a previous version of ruby then they changed how the comparison operator works with chars
Thanks for a great gem!