Skip to content

Latest commit

 

History

History
194 lines (158 loc) · 8.24 KB

History.rdoc

File metadata and controls

194 lines (158 loc) · 8.24 KB

1.8 / 2015-10-26

  • 1 minor enhancement:

    • Add an optional alpha parameter to all #css_rgba calls. Thanks to Luke Bennellick (@bennell) and Alexander Popov (@AlexWayfer) for independently implemented submissions. Merged from #15.

  • 2 minor bug fixes:

    • Improve constant detection to prevent incorrectly identified name collisions with various other libraries such as Azure deployment tools. Based on work by Matthew Draper (@matthewd) in #24.

    • Prevent Color.equivalent? comparisons from using non-Color types for comparison. Fix provided by Benjamin Guest (@bguest) in #18.

  • 1 governance change

1.7.1 / 2014-06-12

  • Minor enhancements:

    • Renamed Color::RGB::BeccaPurple to Color::RGB::RebeccaPurple as stipulated by Eric Meyer. meyerweb.com/eric/thoughts/2014/06/19/rebeccapurple/ For purposes of backwards compatibility, the previous name is still permitted, but its use is strongly discouraged, and it will be removed in the Color 2.0 release.

1.7 / 2014-06-12

1.6 / 2014-05-19

  • Major enhancements:

    • Aaron Hill (@armahillo) implemented the CIE Delta E 94 method by which an RGB colour can be asked for the closest matching colour from a list of provided colours. Fixes #5.

    • To implement #closest_match and #delta_e94, conversion methods for sRGB to XYZ and XYZ to L*a*b* space were implemented. These should be considered experimental.

  • Tooling fixes:

    • Ensured that the gem manifest was up-to-date. Fixes #4 reported by @boutil. Thanks!

    • Fixed problems with Travis builds. Note that Ruby 1.9.2 is no longer tested. Rubinius remains in a “failure-tolerated” mode.

    • Color 1.6 is, barring security patches, the last release of Color that will support Ruby 1.8.

1.5.1 / 2014-01-28

  • color 1.5 was a yanked release.

  • Minor enhancements:

    • Added new methods to Color::RGB to make it so that the default defined colours can be looked up by hex, name, or both.

    • Added a method to Color::RGB to extract colours from text by hex, name, or both.

    • Added new common methods for colour names. Converted colours do not retain names.

    • Restructured color comparisons to use protocols instead of custom implementations. This makes it easier to implement new colour classes. To make this work, color classes should include Color only need to implement #coerce(other), #to_a, and supported conversion methods (e.g., #to_rgb).

    • Added @daveheitzman’s initial implementation of an RGB contrast method as an extension file: require 'color/rgb/contrast'. This method and the value it returns should be considered experimental; it requires further examination to ensure that the results produced are consistent with the contrast comparisons used in Color::Palette::MonoContrast.

    • Reducing duplicated code.

  • Bug Fixes:

    • Moved lib/color/rgb-colors.rb to lib/color/rgb/colors.rb. This should have no impact in general.

    • Improved the way that named colors are specified internally.

    • Fixed bugs with Ruby 1.8.7 that may have been introduced in color 1.4.2.

  • Tooling Changes:

    • Added simplecov for test coverage analysis.

    • Modernized Travis CI support.

1.4.2 / 2013-06-30

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.

1.4.1 / 2010-02-03

  • Imported to github.

  • Converted to Hoe 2.5 spec format.

1.4.0 / 2007-02-11

  • 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).

Color 0.1.0 / 2006-08-05

  • Added HSL (degree, percent, percent) interface.

  • Removed RGB instance variable; color is managed internally as HSL floating point.

  • Tests!

color-tools 1.3.0

  • 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.

color-tools 1.2.0

  • 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.

color-tools 1.1.0

  • Added color/palette/gimp to support the reading and use of GIMP color palettes.

color-tools 1.0.0

  • Initial release.