CraigWilliams/BeautifyRuby — pull request #16 by danryan (2012-09-30 21:34:52+00:00)
Title: Allow custom file pattern matching

This pull request:

* adds a `file_patterns` pair to sublime-settings with an array of file patterns to match as valid Ruby
* modifies `is_ruby_file` method to pull the list of valid file patterns from the sublime-settings
* adds word boundaries to regex

With these changes, I can now beautify files with non-standard file names, e.g. Gemfile, Rakefile, etc., by modifying `BeautifyRuby.sublime-settings`:

```json
{
"tab_or_space": "space",
"ruby": "/usr/bin/env ruby",
"file_patterns": [ ".rb", ".rake", "Gemfile", "Rakefile" ]
}
```