<commit_before>#Update

  2013-04-01
  Updated to work with Sublime Text 3
  Continue using in ST2 as usual using Package Control.

  To install in ST3, clone the repo and copy the "BeautifyRuby"
  folder into the "Packages" folder.

  Restart ST3

  2013-01-11
  @zelig adds erb template support

  2013-01-09
  @zelig adds pre-save support

  2012-09-30
  @danryan adds file_patterns to settings file. Thanks!

  ```ruby
  "file_patterns": [ ".rb", ".rake", "Gemfile", "Rakefile" ]
  ```

  2012-04-08
  Now aligns arguments within parens "()" on multiple lines.
  eg.

  ```ruby
    calling_a_method(
      arg_one,
      arg_two,
      etc
    )
  ```

  2012-04-05

  Now handles ruby interpreter configuration under settings

  2012-02-03

  Added BeautifyRuby to Edit menu item and cmd+shift+p command pallet

  2012-01-30

  Added setting to use a tab instead of two spaces. Also considers 'rake' files ruby files.

  2012-01-24

  Now handles ascii characters.

  2012-01-22

  Removed a ':' that was causing an error.

  2012-01-21

  To avoid potential data loss, the document saves before and after running beautifier.

  2012-01

  Changed key binding so it did not interfere with opening the side panel.

# BeautifyRuby

Beautifies Ruby code. This plugin uses the [Ruby Script Beautifier](http://www.arachnoid.com/ruby/rubyBeautifier.html) written by P.Lotus

I made very little modification to get it to work with a Sublime Text 2 plugin.

Erb html templates uses [<NAME>ley's htmlbeautifier gem](https://github.com/threedaymonk/htmlbeautifier). This (as well as rubygems) is assumed to be installed as seen by the ruby interpreter.

This package offers a pre-save hook, i.e., your ruby and erb files will be reformatted automatically before saving. To activate this feature, set:

    "run_on_save": true,

The sublime command "beautify_ruby" performs a save after formatting. You can disable this default by setting:

    "save_on_beautify": false<commit_msg>readme change<commit_after># BeautifyRuby

Beautifies Ruby code. This plugin uses the [Ruby Script Beautifier](http://www.arachnoid.com/ruby/rubyBeautifier.html) written by P.Lotus

I made very little modification to get it to work with a Sublime Text 2 plugin.

Erb html templates uses [<NAME>'s htmlbeautifier gem](https://github.com/threedaymonk/htmlbeautifier). This (as well as rubygems) is assumed to be installed as seen by the ruby interpreter.

This package offers a pre-save hook, i.e., your ruby and erb files will be reformatted automatically before saving. To activate this feature, set:

    "run_on_save": true,

The sublime command "beautify_ruby" performs a save after formatting. You can disable this default by setting:

    "save_on_beautify": false
{'fraction_non_alphanumeric': 0.073224043715847, 'fraction_numerical': 0.03642987249544627, 'mean_word_length': 3.710120068610635, 'pattern_counts': {'":': 5, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3034020', 'n_tokens_mistral': 949, 'n_tokens_neox': 815, 'n_words': 346}