Super::Color
SuperColor is an easy to use gem that gives color to any text in your terminal and puts
statements.
Installation
Add this line to your application's Gemfile:
gem 'super-color'
And then execute:
$ bundle
Or install it yourself as:
$ gem install super-color
Usage
It's as easy as:
puts "Hi, I'm colored".red
Available colors include:
red
yellow
green
magenta
color_warning
color_success
color_error
as well as helper methods like:
puts_warning
puts_success
puts_error
Which would be used as simply as:
1.even? ? "cool, i never knew that".puts_success : "oh -no! this hurts my brain..".puts_error
Development
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 tags, and push the .gem
file to rubygems.org.
Contributing
Bug reports and pull requests are not
welcome. This project is mostly dead.. apologies.