fix ruby snippets