ruby: fix compilation warning