pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/ruby-color



Module Name:    pkgsrc
Committed By:   taca
Date:           Sat Aug  2 03:44:27 UTC 2025

Modified Files:
        pkgsrc/graphics/ruby-color: Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/graphics/ruby-color/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/graphics/ruby-color/PLIST
cvs rdiff -u -r1.9 -r1.10 pkgsrc/graphics/ruby-color/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/ruby-color/Makefile
diff -u pkgsrc/graphics/ruby-color/Makefile:1.8 pkgsrc/graphics/ruby-color/Makefile:1.9
--- pkgsrc/graphics/ruby-color/Makefile:1.8     Wed Dec  2 14:28:40 2015
+++ pkgsrc/graphics/ruby-color/Makefile Sat Aug  2 03:44:27 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.8 2015/12/02 14:28:40 taca Exp $
+# $NetBSD: Makefile,v 1.9 2025/08/02 03:44:27 taca Exp $
 
-DISTNAME=      color-1.8
+DISTNAME=      color-2.1.0
 CATEGORIES=    graphics
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/graphics/ruby-color/PLIST
diff -u pkgsrc/graphics/ruby-color/PLIST:1.6 pkgsrc/graphics/ruby-color/PLIST:1.7
--- pkgsrc/graphics/ruby-color/PLIST:1.6        Wed Dec  2 14:28:40 2015
+++ pkgsrc/graphics/ruby-color/PLIST    Sat Aug  2 03:44:27 2025
@@ -1,42 +1,31 @@
-@comment $NetBSD: PLIST,v 1.6 2015/12/02 14:28:40 taca Exp $
+@comment $NetBSD: PLIST,v 1.7 2025/08/02 03:44:27 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
-${GEM_LIBDIR}/.autotest
-${GEM_LIBDIR}/.coveralls.yml
-${GEM_LIBDIR}/.gemtest
-${GEM_LIBDIR}/.hoerc
-${GEM_LIBDIR}/.minitest.rb
-${GEM_LIBDIR}/.travis.yml
-${GEM_LIBDIR}/Code-of-Conduct.rdoc
-${GEM_LIBDIR}/Contributing.rdoc
-${GEM_LIBDIR}/Gemfile
-${GEM_LIBDIR}/History.rdoc
-${GEM_LIBDIR}/Licence.rdoc
+${GEM_LIBDIR}/CHANGELOG.md
+${GEM_LIBDIR}/CODE_OF_CONDUCT.md
+${GEM_LIBDIR}/CONTRIBUTING.md
+${GEM_LIBDIR}/CONTRIBUTORS.md
+${GEM_LIBDIR}/LICENCE.md
 ${GEM_LIBDIR}/Manifest.txt
-${GEM_LIBDIR}/README.rdoc
+${GEM_LIBDIR}/README.md
 ${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/SECURITY.md
 ${GEM_LIBDIR}/lib/color.rb
+${GEM_LIBDIR}/lib/color/cielab.rb
 ${GEM_LIBDIR}/lib/color/cmyk.rb
-${GEM_LIBDIR}/lib/color/css.rb
 ${GEM_LIBDIR}/lib/color/grayscale.rb
 ${GEM_LIBDIR}/lib/color/hsl.rb
-${GEM_LIBDIR}/lib/color/palette.rb
-${GEM_LIBDIR}/lib/color/palette/adobecolor.rb
-${GEM_LIBDIR}/lib/color/palette/gimp.rb
-${GEM_LIBDIR}/lib/color/palette/monocontrast.rb
 ${GEM_LIBDIR}/lib/color/rgb.rb
 ${GEM_LIBDIR}/lib/color/rgb/colors.rb
-${GEM_LIBDIR}/lib/color/rgb/contrast.rb
-${GEM_LIBDIR}/lib/color/rgb/metallic.rb
+${GEM_LIBDIR}/lib/color/version.rb
+${GEM_LIBDIR}/lib/color/xyz.rb
 ${GEM_LIBDIR}/lib/color/yiq.rb
+${GEM_LIBDIR}/licences/dco.txt
+${GEM_LIBDIR}/test/fixtures/cielab.json
 ${GEM_LIBDIR}/test/minitest_helper.rb
-${GEM_LIBDIR}/test/test_adobecolor.rb
 ${GEM_LIBDIR}/test/test_cmyk.rb
 ${GEM_LIBDIR}/test/test_color.rb
-${GEM_LIBDIR}/test/test_css.rb
-${GEM_LIBDIR}/test/test_gimp.rb
 ${GEM_LIBDIR}/test/test_grayscale.rb
 ${GEM_LIBDIR}/test/test_hsl.rb
-${GEM_LIBDIR}/test/test_monocontrast.rb
 ${GEM_LIBDIR}/test/test_rgb.rb
 ${GEM_LIBDIR}/test/test_yiq.rb
 ${GEM_HOME}/specifications/${GEM_NAME}.gemspec

Index: pkgsrc/graphics/ruby-color/distinfo
diff -u pkgsrc/graphics/ruby-color/distinfo:1.9 pkgsrc/graphics/ruby-color/distinfo:1.10
--- pkgsrc/graphics/ruby-color/distinfo:1.9     Tue Oct 26 10:46:52 2021
+++ pkgsrc/graphics/ruby-color/distinfo Sat Aug  2 03:44:27 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 10:46:52 nia Exp $
+$NetBSD: distinfo,v 1.10 2025/08/02 03:44:27 taca Exp $
 
-BLAKE2s (color-1.8.gem) = 6ba536a45aa6050e0761f75bcfc89a8fc06ee777256d271e1a902dd16925c105
-SHA512 (color-1.8.gem) = 4b051c50c4a9d2d2bb8a8f0db5c5f32e833e47405d3dffefaf6b6a10f75af8c8ef523e66847312336b0e1dfa0eb264325b018bf285466d61da513f8b32122f77
-Size (color-1.8.gem) = 46080 bytes
+BLAKE2s (color-2.1.0.gem) = 817864b7c134495b5c1ace81340dd4d5e1cdf7c1d969c24e4f825b79c05cfe91
+SHA512 (color-2.1.0.gem) = 250f3fee322c48461b99464b7372995dbe526119b98948df5c82fcbbccdb5e06cf122b4173d778ad57da92f01578e2c34cc2eb566ee261969a0d32f9c38c6304
+Size (color-2.1.0.gem) = 47616 bytes



Home | Main Index | Thread Index | Old Index