opal/opal — pull request #249 by mojavelinux (2013-05-11 11:20:13+00:00)
Title: preserve trailing separator for String#lines

I made a slight mistake when implementing String#lines w/o block given. I forgot to preserve the separator.

I also added a fix to not restore the separator on the last entry if it wasn't present in the original string. This behavior is consistent w/ the behavior of Ruby as I deduced from comparing outputs.