{"id":15405228,"url":"https://github.com/fnando/sublime-better-ruby","last_synced_at":"2025-04-17T00:49:43.702Z","repository":{"id":17870642,"uuid":"20806826","full_name":"fnando/sublime-better-ruby","owner":"fnando","description":"Sublime Text Ruby package (snippets, builder, syntax highlight)","archived":false,"fork":false,"pushed_at":"2024-02-01T01:59:39.000Z","size":104,"stargazers_count":38,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T05:51:12.185Z","etag":null,"topics":["ruby","sublime-text","sublime-text-plugin"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/fnando.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-13T14:28:25.000Z","updated_at":"2024-11-29T02:05:09.000Z","dependencies_parsed_at":"2024-10-20T12:40:04.175Z","dependency_job_id":null,"html_url":"https://github.com/fnando/sublime-better-ruby","commit_stats":{"total_commits":37,"total_committers":3,"mean_commits":"12.333333333333334","dds":"0.29729729729729726","last_synced_commit":"ebcef5b0e5cc6f427ba9caaadeb8c480be38e782"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fsublime-better-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fsublime-better-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fsublime-better-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fsublime-better-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/sublime-better-ruby/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249294677,"owners_count":21245979,"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":["ruby","sublime-text","sublime-text-plugin"],"created_at":"2024-10-01T16:15:38.630Z","updated_at":"2025-04-17T00:49:43.678Z","avatar_url":"https://github.com/fnando.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Better Ruby\n\nThis is a custom Ruby package, that includes snippets, custom syntax\nhighlighters and more!\n\n## Installation\n\n### Setup Package Control Repository\n\n1. Follow the instructions from https://sublime.fnando.com.\n2. Open the command pallete, run “Package Control: Install Package“, then search\n   for “Rubocop Formatter“.\n3. Install the [ApplySyntax](https://github.com/facelessuser/ApplySyntax)\n   package and use the settings below.\n\nBy the way, there is a\n[Better Rails](https://github.com/fnando/better-rails-for-sublime-text) package\nas well.\n\n### Git Clone\n\nClone this repository into the Sublime Text “Packages” directory, which is\nlocated where ever the “Preferences” -\u003e “Browse Packages” option in sublime\ntakes you.\n\n## ApplySyntax configuration\n\n```json\n{\n  \"new_file_syntax\": \"Better Ruby/Ruby\",\n  \"reraise_exceptions\": true,\n\n  \"syntaxes\": [\n    {\n      \"syntax\": \"Better Ruby/Bundler\",\n      \"rules\": [{ \"file_path\": \".*(\\\\\\\\|/)Gemfile$\" }]\n    },\n\n    {\n      \"syntax\": \"Better Ruby/Puma\",\n      \"rules\": [{ \"file_path\": \".*(\\\\\\\\|/)puma\\\\.rb$\" }]\n    },\n\n    {\n      \"syntax\": \"Better Ruby/Ruby Test\",\n      \"rules\": [{ \"file_path\": \".*_test\\\\.rb$\" }]\n    },\n\n    {\n      \"syntax\": \"Better Ruby/Ruby\",\n      \"extensions\": [\n        \"thor\",\n        \"rake\",\n        \"simplecov\",\n        \"jbuilder\",\n        \"rb\",\n        \"podspec\",\n        \"rabl\"\n      ],\n      \"rules\": [\n        { \"file_path\": \".*(\\\\\\\\|/)Capfile$\" },\n        { \"file_path\": \".*(\\\\\\\\|/)Guardfile$\" },\n        { \"file_path\": \".*(\\\\\\\\|/)[Rr]akefile$\" },\n        { \"file_path\": \".*(\\\\\\\\|/)Berksfile$\" },\n        { \"file_path\": \".*(\\\\\\\\|/)[Cc]heffile$\" },\n        { \"file_path\": \".*(\\\\\\\\|/)Thorfile$\" },\n        { \"file_path\": \".*(\\\\\\\\|/)Podfile$\" },\n        { \"file_path\": \".*(\\\\\\\\|/)config.ru$\" },\n        { \"file_path\": \".*\\\\\\\\Vagrantfile(\\\\\\\\..*)?$\" },\n        { \"file_path\": \".*/Vagrantfile(/..*)?$\" },\n        { \"interpreter\": \"ruby\" }\n      ]\n    }\n  ]\n}\n```\n\n## Override Quote Style\n\nBy default, snippets use `\"` as the preferred quote style. If you want to change\nit to `'`, just create the file `Packages/User/Ruby-Quotes.tmPreferences` with\nthe following content:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n  \u003ckey\u003ename\u003c/key\u003e\n  \u003cstring\u003eQuotes\u003c/string\u003e\n  \u003ckey\u003escope\u003c/key\u003e\n  \u003cstring\u003esource.ruby\u003c/string\u003e\n  \u003ckey\u003esettings\u003c/key\u003e\n  \u003cdict\u003e\n    \u003ckey\u003eshellVariables\u003c/key\u003e\n    \u003carray\u003e\n      \u003cdict\u003e\n        \u003ckey\u003ename\u003c/key\u003e\n        \u003cstring\u003eTM_QUOTE\u003c/string\u003e\n        \u003ckey\u003evalue\u003c/key\u003e\n        \u003cstring\u003e'\u003c/string\u003e\n      \u003c/dict\u003e\n    \u003c/array\u003e\n  \u003c/dict\u003e\n\u003c/dict\u003e\n\u003c/plist\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fsublime-better-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Fsublime-better-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fsublime-better-ruby/lists"}