- Fix #30: Color/effect nesting restores the parent level correctly. More verbose ASCII escape sequences are generated to ensure this.
- Fix #31: Make paint work with frozen strings enabled
- Also make paint library itself frozen
- Fix #29: Update dev dependencies
- Explicitly set mac's Terminal.app to 256 colors only, fixes #28
- Support NO_COLOR environment variable, implements #26 (see no-color.org)
- Blacklist True Color support for urxvt, fixes #25
- Set True Color as default mode on more terminals, patch by @smoochbot
- Add
gray
alias forwhite
color, patch by @AlexWayfer
- Remove
gunzip
deprecation warning
- Fix nested substitutions, patch by @mildmojo
- New default color mode
0xFFFFFF
: 24bit - true color. If this breaks your code, addPaint.mode = 256
to the beginning of your code - New
Paint%[]
API: Substitution mechanism for nested color strings
- Smaller gem size (compress RGB color name data)
- Remove
Paint.update_rgb_colors
andPaint.rainbow
- Internal method
.hex
renamed to.rgb_hex
and does not take "#" prefixed strings anymore - Minor refactorings and documentation updates
- Fix case of string arguments getting mutated (see gh#14)
- Improved performance
- Option for :random colors removed (see readme)
- Separate Paint::SHORTCUTS into extra gem
- Drop support for Ruby 1 (inoffically still support 1.9.3)
- Don't colorize strings via shortcuts when Paint.mode == 0
- Freeze bundled ascii color data
- Fix caching bug for random ansi color
- Add missing require 'rbconfig' and travis test everything
- Support 256 color on windows' ConEmu
- Fix post-install message unicode
- Paint.[] also accepts uppercased hex strings (gh#2)
- Performance tweaks (thanks to murphy) (gh#4, #5)
- API change: deactivate colorizing with Paint.mode = 0
- Paint.[] with only a single string argument does not colorize the string anymore, but returns the plain string
- New pseudo color :random - returns a random ansi color
- Improve rgb function with better gray scale values
- Add Paint.mode:
- Set to 0 to deactivate colorizing
- Set to 16 or 8 and all color generation methods will generate simple ansi colors
- Set to 256 for 256 color support
- Tries to automatically detect your terminal's features
- Minor changes
- Initial release