color 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee63ea78d61f49aac704bb5dad67aece3ec38392032742dd0feb97b26ef22362
4
- data.tar.gz: a72e49de5357ab7826e52cdc6b2df8afd814c0f1b680e526b66ef17de80d445d
3
+ metadata.gz: de0f595f559249d4eed1b1a71514d9b31caf458544b10d791b954b68d42ae169
4
+ data.tar.gz: 1d6680d9805b0556a7b865b5bf9bced7b089ed72c8889a7187ac30a082826efb
5
5
  SHA512:
6
- metadata.gz: 64afd6ed2802840e688bedb460fc530e72471bef5ae96833902348c6309b2d553e52c3e1538e621c347814f4fc349edf61bfead93a1bcfac789163f8906d9aa4
7
- data.tar.gz: ad710aa1a92a1061b46dc04dd182e8253aa24f8f4959ef2bbd86be89def51ad9d90a15fcdf264b75f9c4268091350b571659520346a65a054c37d42914482aa7
6
+ metadata.gz: 6bb3c94216b72f936f2252de8b698ff28e8fbc240bee72fa5cd4d016f3a911de3755b8ba892cbe857a8f3f4a9aeaef4bd79132e14c4230eff2f047690a8940d2
7
+ data.tar.gz: 275c0cdaed2c2474eedc59a915910dca1573a95f35f7cf41a5758f60284dbb3402454b56c17fb0d833de0b57047dddde25df09f2211585fe5957be68ee1791f2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.1 / 2025-07-05
4
+
5
+ Color 2.0.1 is a minor documentation update.
6
+
3
7
  ## 2.0.0 / 2025-07-05
4
8
 
5
9
  Color 2.0.0 is a major release of the Color library.
data/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  Color is a Ruby library to provide RGB, CMYK, HSL, and other color space
14
14
  manipulation support to applications that require it. It provides optional named
15
- RGB colors that are commonly supported in HTML, # SVG, and X11 applications.
15
+ RGB colors that are commonly supported in HTML, SVG, and X11 applications.
16
16
 
17
17
  The Color library performs purely mathematical manipulation of the colors based
18
18
  on color theory without reference to device color profiles (such as sRGB or
@@ -33,7 +33,7 @@ changes are:
33
33
  - Color palettes have been removed.
34
34
  - `Color::CSS` and `Color::CSS#[]` have been removed.
35
35
 
36
- ## Examples
36
+ ## Example
37
37
 
38
38
  Suppose you want to make a given RGB color a little lighter. Adjusting the RGB
39
39
  color curves will change the hue and saturation will also change. Instead, use
data/lib/color/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Color
4
- VERSION = "2.0.0" # :nodoc:
4
+ VERSION = "2.0.1" # :nodoc:
5
5
  end
data/lib/color.rb CHANGED
@@ -7,29 +7,25 @@
7
7
  # - **changelog**: [CHANGELOG](rdoc-ref:CHANGELOG.md)
8
8
  #
9
9
  # \Color is a Ruby library to provide RGB, CMYK, HSL, and other color space manipulation
10
- # support to applications that require it. It provides 152 named RGB colors that are
10
+ # support to applications that require it. It provides optional named RGB colors that are
11
11
  # commonly supported in HTML, SVG, and X11 applications.
12
12
  #
13
13
  # The \Color library performs purely mathematical manipulation of the colors based on
14
14
  # color theory without reference to device color profiles (such as sRGB or Adobe RGB). For
15
15
  # most purposes, when working with RGB and HSL color spaces, this won't matter. Absolute
16
- # color spaces (like CIE LAB and CIE XYZ), however, cannot be reliably converted to
17
- # relative color spaces (like RGB) without color profiles. When necessary for conversions,
18
- # \Color provides \D65 and \D50 reference white values in Color::XYZ.
16
+ # color spaces (like CIE LAB and CIE XYZ) cannot be reliably converted to relative color
17
+ # spaces (like RGB) without color profiles. When necessary for conversions, \Color
18
+ # provides \D65 and \D50 reference white values in Color::XYZ.
19
19
  #
20
- # \Color 2.0 is a major release to the \Color library, dropping support for all versions of
21
- # Ruby prior to 3.2.
20
+ # Color 2.0 is a major release, dropping support for all versions of Ruby prior to 3.2 as
21
+ # well as removing or renaming a number of features. The main breaking changes are:
22
22
  #
23
- # > **NOTE**: This is a pre-release version of \Color 2.0.
24
- # > The main goals for a 2.0 release have been met: modernizing the codebase, but
25
- # > consideration will be given to improving color transformation robustness and accuracy
26
- # > with Matrix operations and Rational numbers instead of floating point decimal values.
27
- #
28
- # In \Color 2.0, color objects are immutable (derived from Data) and do not expose the
29
- # `new` class method, instead using only `from_*` class methods. There is always
30
- # a `from_values` class method which represents the native color channel values (which may
31
- # not match the internal representation). This method _may_ have a counterpart that is
32
- # recommended for readability.
23
+ # - Color classes are immutable Data objects; they are no longer mutable.
24
+ # - RGB named colors are no longer loaded on gem startup, but must be required explicitly
25
+ # (this is _not_ done via `autoload` because there are more than 100 named colors with
26
+ # spelling variations) with `require "color/rgb/colors"`.
27
+ # - Color palettes have been removed.
28
+ # - `Color::CSS` and `Color::CSS#[]` have been removed.
33
29
  module Color
34
30
  ##
35
31
  # The maximum "resolution" for color math; if any value is less than or equal to this
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: color
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
@@ -213,7 +213,7 @@ dependencies:
213
213
  description: |-
214
214
  Color is a Ruby library to provide RGB, CMYK, HSL, and other color space
215
215
  manipulation support to applications that require it. It provides optional named
216
- RGB colors that are commonly supported in HTML, # SVG, and X11 applications.
216
+ RGB colors that are commonly supported in HTML, SVG, and X11 applications.
217
217
 
218
218
  The Color library performs purely mathematical manipulation of the colors based
219
219
  on color theory without reference to device color profiles (such as sRGB or