Fix ruby snippets