Ruby update

Fixes #1477.