Sha256: 27b69f3080073a09a08497b6c59b467a0b68ebb8d968dac0d31f3aaea5dff27b

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

# RBeautify

This gem provides a cli binary named 'rbeautify' that will pretty up ruby code.

## Installation

Add this line to your application's Gemfile:

    gem 'ruby-beautify'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ruby-beautify

## Usage

To Pretty up a file:

		$ rbeautify filename

It can take mulitple filenames:

		$ rbeautify a b c

Without a filename it reads from STDIN, suitable for piping:

		$ curl 'http://example.org/ugly-file.rb' | rbeautify

It has help:

		$ rbeautify -h


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

# History

The original analyzer is available at: http://www.arachnoid.com/ruby/rubyBeautifier.html.

My work is based off of this sublime-text2 plugin: https://github.com/CraigWilliams/BeautifyRuby but cleaned up and made suitable for use directly in a shell.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-beautify-0.91.0 README.md