0.0
No commit activity in last 3 years
No release in over 3 years
Simple gem to add color to your fancy terminal ASCII characters. Extends string class. As easy as: puts "hi, i'm the color".red \n Supports colors red, yellow, green, magenta, as well as colors for warning, success, and error.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 5.0
~> 10.0
 Project Readme

Super::Color

Build Status

SimpleCov Test Coverage:
<script src="http://code.jquery.com/jquery-3.1.1.min.js"></script> <script> $("#new-projects").load( "https://raw.githubusercontent.com/MVV90/super-color/master/coverage/index.html #footer div", function(responseTxt, statusTxt, xhr) { var coveragePercent = $(responseTxt).find(".yellow:first").text(); $("#new-projects").html(coveragePercent); if(coveragePercent >= 100.0) { $("#coverage").css("border", "2px solid green"); } else { $("#coverage").css("border", "2px solid red"); } } ); </script>

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

Can even be combined:

puts "Hello ".green + "World".red + "!".yellow

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 will probably go unnoticed. This project is mostly dead.. apologies.