Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 30 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
# TextChart

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/text_chart`. To experiment with that code, run `bin/console` for an interactive prompt.
# TextChart 📊

`TextChart` is a gem that helps you generate text charts, like this one:
```text
text_chart demonstration
Goal: Show you how cool this is

9 |'''''''''''''''''''''''''''''''''''''''''''''''''''''###
8 | ###
7 | ###
6 |'''''''''''''### ###
5 |'''''''''''''###'''''''''''''''''''''''''''### ###
4 |'''''''''''''###'''''''''''''''''''''''''''###'''''''###'''''''###
3 |'''###'''''''###'''''''''''''''''### ### ### ###
2 | ### ### ### ### ### ###
1 | ### ### ### ### ### ###
0 |'''###'''''''###'''''''### ### ### ### ###
----------------------------------------------------------------------
```
## Why?

TODO: Delete this and the text above, and describe your gem
This is a pet project. I like ruby and text-based applications, so I combined them.

## Installation

Expand All @@ -22,17 +39,23 @@ Or install it yourself as:

## Usage

TODO: Write usage instructions here
This snippet will generate the text chart at the top of the readme.
```ruby
TextChart.new("text_chart demonstration", "Show you how cool this is", [3, 6, 0, 3, 5, 9, 4]).to_s
```
## Limitations

Right now `TextChart` only supports positive integers.

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test-unit` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/text_chart.
Bug reports and pull requests are welcome on GitHub at https://github.com/gustavothecoder/text_chart.

## License

Expand Down