Sha256: 35ce49e573f53a5721c223c3a26c7fc35916b371d4ece703c6674381126e5ef5

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

# Sparkr

Sparkr is a port of [spark](https://github.com/holman/spark) for Ruby.

It let's you create sparklines for your Ruby CLIs: ▁▂▃▅▇

## Installation

Add this line to your application's Gemfile:

    gem 'sparkr'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sparkr


## Usage

### Shell

After installation, just run `sparkr` and pass it a list of numbers, like
you would with [spark](https://github.com/holman/spark). The output is what
you would expect:

    $ sparkr 0 30 55 80 33 150
    ▁▂▃▅▂▇

### Ruby

The real reason for this port:

    Sparkr.sparkline([0,30,55,80,33,150])
    # => "▁▂▃▅▂▇"


## Contributing

1. Fork it ( http://github.com/rrrene/sparkr/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


## Author

René Föhring (@rrrene)


## Credits

Sparkr would not exist without Zach Holman's [spark](https://github.com/holman/spark).


## License

Sparkr is released under the MIT License. See the LICENSE.txt file for further
details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sparkr-0.1.0 README.md