Some updates for the Ruby snippets