Skip to content

Commit 8c2435b

Browse files
authored
Bump compatibility for FPN/ColorTypes/Colors (#129)
1 parent f2baf1d commit 8c2435b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ColorVectorSpace"
22
uuid = "c3611d14-8923-5661-9e6a-0046d554d3a4"
3-
version = "0.8.3"
3+
version = "0.8.4"
44

55
[deps]
66
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
@@ -12,9 +12,9 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1212
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1313

1414
[compat]
15-
ColorTypes = "0.8, 0.9"
16-
Colors = "0.9, 0.10, 0.11"
17-
FixedPointNumbers = "0.6, 0.7"
15+
ColorTypes = "0.8, 0.9, 0.10"
16+
Colors = "0.9, 0.10, 0.11, 0.12"
17+
FixedPointNumbers = "0.6, 0.7, 0.8"
1818
SpecialFunctions = "0.7, 0.8, 0.9, 0.10"
1919
StatsBase = "0.28, 0.29, 0.30, 0.31, 0.32"
2020
julia = "1"

src/ColorVectorSpace.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ norm(c::TransparentGray) = sqrt(abs2(c))
259259
(<)(g1::AbstractGray, g2::AbstractGray) = gray(g1) < gray(g2)
260260
(<)(c::AbstractGray, r::Real) = gray(c) < r
261261
(<)(r::Real, c::AbstractGray) = r < gray(c)
262-
isless(g1::AbstractGray, g2::AbstractGray) = isless(gray(g1), gray(g2))
262+
if !hasmethod(isless, Tuple{AbstractGray,AbstractGray}) # this was moved to ColorTypes 0.10
263+
isless(g1::AbstractGray, g2::AbstractGray) = isless(gray(g1), gray(g2))
264+
end
263265
isless(c::AbstractGray, r::Real) = isless(gray(c), r)
264266
isless(r::Real, c::AbstractGray) = isless(r, gray(c))
265267

0 commit comments

Comments
 (0)