{"id":15663106,"url":"https://github.com/accessd/sublime-useful-ruby-snippets","last_synced_at":"2025-04-23T21:43:30.180Z","repository":{"id":4564610,"uuid":"5705826","full_name":"accessd/sublime-useful-ruby-snippets","owner":"accessd","description":"Ruby snippets for Sublime Text Editor http://www.sublimetext.com/","archived":false,"fork":false,"pushed_at":"2013-06-15T15:34:43.000Z","size":113,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T03:44:10.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/accessd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-06T17:25:33.000Z","updated_at":"2022-11-28T16:13:16.000Z","dependencies_parsed_at":"2022-09-06T03:32:19.372Z","dependency_job_id":null,"html_url":"https://github.com/accessd/sublime-useful-ruby-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessd%2Fsublime-useful-ruby-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessd%2Fsublime-useful-ruby-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessd%2Fsublime-useful-ruby-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/accessd%2Fsublime-useful-ruby-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/accessd","download_url":"https://codeload.github.com/accessd/sublime-useful-ruby-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250522284,"owners_count":21444508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:35:30.837Z","updated_at":"2025-04-23T21:43:30.162Z","avatar_url":"https://github.com/accessd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Missing Ruby \u0026 RSpec Snippets for Sublime Text 2\n================================================\n\nA.K.A. I'll Never Be Sure Why Sublime Didn't Ship With `do...end`\n\nStart typing the first few letters, and hit tab to complete!\n\n### Install it!\n\nJust clone it into the right folder using\n\n`git clone git://github.com/accessd/sublime-useful-ruby-snippets.git`\n\n+ __Linux__: In your Sublime packages directory, probably `~/.config/sublime-text-2/Packages`\n+ __Mac OS X__ (I'm on 10.7 Lion): `~/Library/Application\\ Support/Sublime\\ Text\\ 2/Packages/`.\n\n###### Fun Fact: you don't have to be in the Ruby folder, because each snippet is scoped to be used in `.rb` files.\n\n\n## Examples\n\nBlock with do:\n\n```ruby\n  ... do\n  end\n```\n\nDescription rspec block:\n\n```ruby\n  describe \"description\" do ... end\n```\n\nFactoryGirl create method:\n\n```ruby\n  create(:...)\n```\n\n## Complete Inventory\n\n`...` denotes the cursor position immediately after code insertion.\n\n```ruby\n  before do\n    ...\n  end\n```\n\n```ruby\n  before { ... }\n```\n\n```ruby\n  create ( :... )\n```\n\n```ruby\n  describe \"...\" do\n  \n  end\n```\n\n```ruby\n       do\n    ...\n  end\n```\n\n```ruby\n  each { |...|  }\n```\n\n```ruby\n  each_pair { |k,v| ... }\n```\n\n```ruby\n  each_pair do |k,v|\n    ...\n  end\n```\n\n```ruby\n  ...: \n```\n\n```ruby\n  it { should... }\n```\n\n```ruby\n  let(:...) {  }\n```\n\n```ruby\n  let!(:...) {  }\n```\n\n---\n\n[Ruby](http://ruby-lang.org) snippets for [Sublime Text Editor](http://www.sublimetext.com/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccessd%2Fsublime-useful-ruby-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccessd%2Fsublime-useful-ruby-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccessd%2Fsublime-useful-ruby-snippets/lists"}