Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fnando/sublime-better-ruby
Sublime Text Ruby package (snippets, builder, syntax highlight)
https://github.com/fnando/sublime-better-ruby
ruby sublime-text sublime-text-plugin
Last synced: 19 days ago
JSON representation
Sublime Text Ruby package (snippets, builder, syntax highlight)
- Host: GitHub
- URL: https://github.com/fnando/sublime-better-ruby
- Owner: fnando
- Created: 2014-06-13T14:28:25.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T01:59:39.000Z (9 months ago)
- Last Synced: 2024-10-06T04:28:48.651Z (about 1 month ago)
- Topics: ruby, sublime-text, sublime-text-plugin
- Language: Ruby
- Homepage:
- Size: 102 KB
- Stars: 39
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Better Ruby
This is a custom Ruby package, that includes snippets, custom syntax
highlighters and more!## Installation
### Setup Package Control Repository
1. Follow the instructions from https://sublime.fnando.com.
2. Open the command pallete, run “Package Control: Install Package“, then search
for “Rubocop Formatter“.
3. Install the [ApplySyntax](https://github.com/facelessuser/ApplySyntax)
package and use the settings below.By the way, there is a
[Better Rails](https://github.com/fnando/better-rails-for-sublime-text) package
as well.### Git Clone
Clone this repository into the Sublime Text “Packages” directory, which is
located where ever the “Preferences” -> “Browse Packages” option in sublime
takes you.## ApplySyntax configuration
```json
{
"new_file_syntax": "Better Ruby/Ruby",
"reraise_exceptions": true,"syntaxes": [
{
"syntax": "Better Ruby/Bundler",
"rules": [{ "file_path": ".*(\\\\|/)Gemfile$" }]
},{
"syntax": "Better Ruby/Puma",
"rules": [{ "file_path": ".*(\\\\|/)puma\\.rb$" }]
},{
"syntax": "Better Ruby/Ruby Test",
"rules": [{ "file_path": ".*_test\\.rb$" }]
},{
"syntax": "Better Ruby/Ruby",
"extensions": [
"thor",
"rake",
"simplecov",
"jbuilder",
"rb",
"podspec",
"rabl"
],
"rules": [
{ "file_path": ".*(\\\\|/)Capfile$" },
{ "file_path": ".*(\\\\|/)Guardfile$" },
{ "file_path": ".*(\\\\|/)[Rr]akefile$" },
{ "file_path": ".*(\\\\|/)Berksfile$" },
{ "file_path": ".*(\\\\|/)[Cc]heffile$" },
{ "file_path": ".*(\\\\|/)Thorfile$" },
{ "file_path": ".*(\\\\|/)Podfile$" },
{ "file_path": ".*(\\\\|/)config.ru$" },
{ "file_path": ".*\\\\Vagrantfile(\\\\..*)?$" },
{ "file_path": ".*/Vagrantfile(/..*)?$" },
{ "interpreter": "ruby" }
]
}
]
}
```## Override Quote Style
By default, snippets use `"` as the preferred quote style. If you want to change
it to `'`, just create the file `Packages/User/Ruby-Quotes.tmPreferences` with
the following content:```xml
name
Quotes
scope
source.ruby
settings
shellVariables
name
TM_QUOTE
value
'
```