ruby: fix and spec handling of `/` after an identifier

fixes #1936