I got this error:
syntax error, unexpected kEND, expecting $end
What is the difference between kend and $ end?
The English language says:
syntax error, unexpected end of file , awaiting end keyword
I agree with this rather unintuitive post.
So the difference is as follows:
kEND = end of file
$ end = end keyword
KEND is the end of your file. $ end is the end tag, something like
if somethingIsTrue puts "its true!" end
Usually, when this happens, you forget to close something with an end.