diff --git a/.gemtest b/.gemtest deleted file mode 100644 index e69de29..0000000 diff --git a/.travis.yml b/.travis.yml index 2e15705..2b9eb1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,13 @@ language: ruby rvm: - ruby-head +- 2.1.0 - 2.0.0 - 1.9.3 - 1.9.2 - 1.8.7 - ree -- rbx-19mode -- rbx-18mode +- rbx - jruby-head - jruby-19mode -- jruby-18mode diff --git a/LICENSE.txt b/LICENSE.txt index 8fca02c..5425d99 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT LICENSE -Copyright (c) 2011-2013 Jan Lelis +Copyright (c) 2011-2014 Jan Lelis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.rdoc b/README.rdoc index 72908fb..a00a3c1 100644 --- a/README.rdoc +++ b/README.rdoc @@ -29,7 +29,7 @@ In Ruby do: The only method you need to know to get started is: Paint.[] -The first argument given to Paint.[] is the string to colorize (if the object is not a string, to_s will be called on the object). The other arguments describe how to modify/colorize the string. Let's learn by example: +The first argument given to Paint.[] is the string to colorize (if the object is not a string, to_s will be called on it). The other arguments describe how to modify/colorize the string. Let's learn by example: Paint['Ruby', :red] # sets ansi color red Paint['Ruby', :red, :bright] # also applies bright/bold effect @@ -46,7 +46,7 @@ The first argument given to Paint.[] is the string to colorize (if the Paint['Ruby', :italic, :encircle, :rapid_blink, :overline] # probably not supported effects Paint['Ruby'] # don't pass any argument and the string will not be changed -If you pass multiple colors, the first one is taken as foreground color and the second one defines the background color (all others will be ignored). To only change the background color, you have to pass a nil first. Effects can be passed in any order. +When you pass multiple colors, the first one is taken as foreground color and the second one defines the background color, every other will be ignored. To only change the background color, you have to pass a nil first. Effects can be passed in any order. You can find more examples in the specs. @@ -161,7 +161,7 @@ There are some supporting methods available. You can get a p like alter Another helper method is Paint.unpaint, which removes any ansi colors: - Paint.unpaint( Paint['J-_-L', :red, :bright] ).should == 'J-_-L' + Paint.unpaint( Paint['Ruby', :red, :bright] ).should == 'Ruby' == J-_-L