The NetBSD Project

CVS log for pkgsrc/graphics/ruby-color/PLIST

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / graphics / ruby-color

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Aug 2 03:44:27 2025 UTC (15 months, 2 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, HEAD
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +13 -24 lines
graphics/ruby-color: update to 2.1.0

2.0.0 (2025-07-05)

Color 2.0.0 is a major release of the Color library.

Breaking Changes

Color 2.0 contains breaking changes.  Functionality previously deprecated
has been removed, but other functionality has been changed or removed as
part of this release without prior warning.

* The minimum supported version of Ruby is 3.2.

* Color classes are now immutable implementations of Data objects (first
  introduced in Ruby 3.2).  This will restrict Color 2 from running on
  versions of JRuby before JRuby 10.

* The constants Color::COLOR_VERSION and Color::COLOR_TOOLS_VERSION have
  been removed; there is only Color::VERSION.  This reverses a planned
  deprecation decision made more than ten years ago that no longer makes
  sense.

* All named color classes at Color have been removed as planned.

* Color::RGB::BeccaPurple has been removed as an alias for
  Color::RGB::RebeccaPurple.

* The pseudo-constructor Color.new has been removed.

* Color class constructors no longer yield the constructed color if a block
  is passed.

* Renamed Color::COLOR_EPSILON and Color::COLOR_TOLERANCE to Color::EPSILON
  and Color::TOLERANCE.  These aren't private constants because they need to
  be accessed throughout Color, but they are internal constants that should
  not be used outside of the Color library or functions exposed therein.

* PDF format functions #pdf_fill and #pdf_stroke have been removed from
  Color::CMYK, Color::Grayscale, and Color::RGB.  The supporting internal
  constants Color::<class>::PDF_FORMAT_STR have also been removed.

* Palette processing classes, Color::Palette::AdobeColor,
  Color::Palette::Gimp, and Color::Palette::MonoContrast have been removed.
  Persons interested in using these are encouraged to extract them from
  Color 1.8 and adapt them to use Color 2.0 APIs.

* CSS methods (#css_rgb, #css_rgba, #css_hsl, #css_hsla) have been replaced
  with #css on color classes that have CSS representations.  The output of
  #css differs (Color 1.8 used the legacy CSS color formats; Color 2.0 uses
  modern CSS color formats).

* Color::GrayScale has been renamed to Color::Grayscale.  The alias constant
  Color::GreyScale has been removed.

* The #html method has been removed from all color classes except
  Color::RGB.

* Named RGB colors are no longer defined automatically, but must be loaded
  explicitly by requiring color/rgb/colors.  This resolves #30.  The use of
  Color::RGB#extract_colors, Color::RGB.by_hex, Color::RGB.by_name, or
  Color::RGB.by_css will require color/rgb/colors automatically as they
  require the presence of the named colors.

* Color:CSS#[] has been removed, as has the containing namespace.  It has
  always been a shallow wrapper around Color::RGB.by_name.


New Features

* Color::CIELAB and Color::XYZ namespaces have been added.  Separate
  implementations were submitted by David Heitzman and @stiff (in #8 and
  #11), but I have reworked the code substantially.  These implementations
  were originally as Color::LAB and include a new contrast calculation using
  the ΔE*00 algorithm.

Internal

* Updated project structure for how I manage Ruby libraries in 2025.  This
  includes increased release security (MFA is required for all releases,
  automated releases are enabled), full GitHub Actions, Dependabot, Standard
  Ruby, and more.

* Charles Nutter re-added JRuby support in CI. #36

Governance

Color 2.0 and later requires that all contributions be signed-off attesting
that the developer created the change and has the appropriate permissions or
ownership to contribute it to this project under the licence terms.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Dec 2 14:28:40 2015 UTC (10 years, 11 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -1 lines
Update ruby-color to 1.8.

== 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

  * This project now has a {Code of Conduct}[Code-of-Conduct_rdoc.html]

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Feb 3 14:09:58 2015 UTC (11 years, 9 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -1 lines
Update ruby-color to 1.7.1.

== 1.7.1 / 2014-06-12

* Minor enhancements:
  * Renamed Color::RGB::BeccaPurple to Color::RGB::RebeccaPurple as stipulated
    by Eric Meyer. http://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

* Minor enhancements:
  * Added Color::RGB::BeccaPurple (#663399) in honour of Rebecca Meyer, the
    daughter of Eric Meyer, who passed away on the 7th of June, 2014. Her
    favourite colour was purple. #663399becca
    https://twitter.com/meyerweb/status/476089708674428929
    http://www.zeldman.com/2014/06/10/the-color-purple/
    http://discourse.specifiction.org/t/name-663399-becca-purple-in-css4-color/225

* Bug fixes:
  * Changed the homepage in the gem to point to github.com instead of
    RubyForge, which has been shut down. Fixes #10, reported by @voxik.

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

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Mar 14 17:10:02 2014 UTC (12 years, 8 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Update ruby-color to 1.5.1.

== 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
    <tt>#coerce(other)</tt>, <tt>#to_a</tt>, and supported conversion methods
    (e.g., <tt>#to_rgb</tt>).
  * Added @daveheitzman’s initial implementation of an RGB contrast method as
    an extension file: <tt>require 'color/rgb/contrast'</tt>. 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.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Sep 15 13:34:36 2013 UTC (13 years, 2 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +9 -9 lines
update ruby-color to 1.4.2.

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

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jun 14 17:59:27 2009 UTC (17 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -7 lines
Remove @dirrm entries from PLISTs

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri Apr 4 15:19:16 2008 UTC (18 years, 7 months ago) by jlam
Branches: TNF
CVS tags: pkgsrc-base, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Initial import of ruby18-color-1.4.0 as graphics/ruby-color.

The capabilities of the Color library are limited to pure mathematical
manipulation of the colors based on color theory without reference to
color profiles (such as sRGB or Adobe RGB).  For most purposes, when
working with the RGB and HSL colors, this won't matter.  However, some
color models (like CIE La*b) are not supported because Color does not
yet support color profiles, giving no meaningful way to convert colors
in absolute color spaces (like La*b, XYZ) to non-absolute color spaces
(like RGB).

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Apr 4 15:19:16 2008 UTC (18 years, 7 months ago) by jlam
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>