Updated Ruby patch