Maintenance:
Modernized Hoe installation of Color, removing some dependencies.
Switched to Minitest.
Turned on Travis CI.
Started using Code Climate.
Small code formatting cleanup that touched pretty much every file.
Imported to github.
Converted to Hoe 2.5 spec format.
Merged Austin Ziegler's color-tools library (previously part of the Ruby PDF Tools project) with Matt Lyon's color library.
The HSL implementation from the Color class has been merged into Color::HSL. Color is a module the way it was for color-tools.
A thin veneer has been written to allow Color::new to return a Color::HSL instance; Color::HSL supports as many methods as possible that were previously supported by the Color class.
Values that were previously rounded by Color are no longer rounded; fractional values matter.
Converted to hoe for project management.
Moved to the next step of deprecating Color::Name values; printing a warning for each use (see the history for color-tools 1.3.0).
Print a warning on the access of either VERSION or COLOR_TOOLS_VERSION; the version constant is now COLOR_VERSION.
Added humanized versions of accessors (e.g., CMYK colours now have both cyan and c to access the cyan component of the colour; cyan provides the value as a percentage).
Added CSS3 formatters for RGB, RGBA, HSL, and HSLA outputs. Note that the Color library does not yet have a way of setting alpha opacity, so the output for RGBA and HSLA are at full alpha opacity (1.0). The values are output with two decimal places.
Applied a patch to provide simple arithmetic colour addition and subtraction to Color::GrayScale and Color::RGB. The patch was contributed by Jeremy Hinegardner <jeremy@hinegardner.org>. This patch also provides the ability to return the maximum RGB value as a grayscale colour.
Fixed two problems reported by Jean Krohn <jb.krohn@free.fr> against color-tools relating to RGB-to-HSL and HSL-to-RGB conversion. (Color and color-tools use the same formulas, but the ordering of the calculations is slightly different with Color and did not suffer from this problem; color-tools was more sensitive to floating-point values and precision errors.)
Fixed an issue with HSL/RGB conversions reported by Adam Johnson <adam.sven.johnson@gmail.com>.
Added an Adobe Color swatch (Photoshop) palette reader, Color::Palette::AdobeColor (for .aco files only).
Added HSL (degree, percent, percent) interface.
Removed RGB instance variable; color is managed internally as HSL floating point.
Tests!
Added new metallic colours suggested by Jim Freeze <jfn@freeze.org>. These are in the namespace Color::Metallic.
Colours that were defined in the Color namespace (e.g., Color::Red, Color::AliceBlue) are now defined in Color::RGB (e.g., Color::RGB::Red, Color::RGB::AliceBlue). They are added back to the Color namespace on the first use of the old colours and a warning is printed. In version 1.4, this warning will be printed on every use of the old colours. In version 1.5, the backwards compatible support for colours like Color::Red will be removed completely.
Added the Color::CSS module, color/css or Color::CSS that provides a name lookup of Color::RGB-namespaced constants with Color::CSS. Most of these colours (which are mirrored from the Color::RGB default colours) are only "officially" recognised under the CSS3 colour module or SVG.
Added the Color::HSL colour space and some helper utilities to Color::RGB for colour manipulation using the HSL value.
Controlled internal value replacement to be between 0 and 1 for all colours.
Updated Color::Palette::Gimp to more meaningfully deal with duplicate named colours. Named colours now return an array of colours.
Indicated the plans for some methods and constants out to color-tools 2.0.
Added unit tests and fixed a number of hidden bugs because of them.
Changed installer from a custom-written install.rb to setup.rb 3.3.1-modified.
Added Color::GreyScale (or Color::GrayScale).
Added Color::YIQ. This colour definition is incomplete; it does not have conversions from YIQ to other colour spaces.
Added color/palette/gimp to support the reading and use of GIMP color palettes.
Initial release.
Generated with the Darkfish Rdoc Generator 2.