README.md in pastel-0.7.1 vs README.md in pastel-0.7.2

- old
+ new

@@ -1,9 +1,11 @@ <div align="center"> <img width="215" src="https://cdn.rawgit.com/piotrmurach/pastel/master/assets/pastel_logo.png" alt="pastel logo" /> </div> + # Pastel + [![Gem Version](https://badge.fury.io/rb/pastel.svg)][gem] [![Build Status](https://secure.travis-ci.org/piotrmurach/pastel.svg?branch=master)][travis] [![Build status](https://ci.appveyor.com/api/projects/status/9blbjfq42o4v1rk4?svg=true)][appveyor] [![Code Climate](https://codeclimate.com/github/piotrmurach/pastel/badges/gpa.svg)][codeclimate] [![Coverage Status](https://coveralls.io/repos/github/piotrmurach/pastel/badge.svg)][coverage] @@ -117,11 +119,11 @@ yellow('the world!') } } ``` -When dealing with multiline strings you can set `eachline` option(more info see [eachline](#29-eachline)): +When dealing with multiline strings you can set `eachline` option(more info see [eachline](#211-eachline)): ``` pastel = Pastel.new(eachline: "\n") ``` @@ -264,20 +266,20 @@ pastel.red("foo\nbar") # => "\e[31mfoo\e[0m\n\e[31mbar\e[0m" ``` ### 2.12 Alias Color -In order to setup an alias for the standard color do: +In order to setup an alias for standard colors do: ```ruby -pastel.alias_color(:funky, :red) +pastel.alias_color(:funky, :red, :bold) ``` -From that point forward, `:funky` alias can be passed to `decorate`, `valid?` with the same meaning as standard color: +From that point forward, `:funky` alias can be passed to `decorate`, `valid?` with the same meaning as standard colors: ```ruby -pastel.funky.on_green('unicorn') # => will use :red color +pastel.funky.on_green('unicorn') # => will use :red, :bold color ``` This method allows you to give more meaningful names to existing colors. You can also use the `PASTEL_COLORS_ALIASES` environment variable (see [Environment](#4-environment)) to specify aliases. @@ -343,13 +345,13 @@ ### 4.1 PASTEL_COLORS_ALIASES This environment variable allows you to specify custom color aliases at runtime that will be understood by **Pastel**. The environment variable is read and used when the instance of **Pastel** is created. You can also use `alias_color` to create aliases. -Only alphanumeric and `_` are allowed in the alias names with the following format: +Only alphanumeric and `_` and `.` are allowed in the alias names with the following format: ```ruby -PASTEL_COLORS_ALIASES='newcolor_1=red,newcolor_2=on_green' +PASTEL_COLORS_ALIASES='newcolor_1=red,newcolor_2=on_green,funky=red.bold' ``` ## 5. Command line You can also install [pastel-cli](https://github.com/piotrmurach/pastel-cli) to use `pastel` executable in terminal: