Release 2.0.2
-
Adding this documentation might help clarify pattern matching within
RDF::Query::Pattern, too. -
do not fail with Encoding::CompatibilityError when normalizing unicode IRIs.
-
Fix
RDF::List#==comparisons toRDF::ValuesRuby 2.3.0 changed the behavior of
Comparable#==to avoid hiding errors. This led toNoMethodErrors for comparisons that returnfalsefor previous Rubies.This introduces a custom
RDF::List#==implementation for explicitly
supported comparisons betweenRDF::Valueclasses. We returnfalse
immediately forRDF::Values which are not#list?; falling back on
Comparablefor other types.Further,
RDF::Lists with three elements that happen to coincide with
the terms of an RDF::Statement would previously returntrue. E.g.:
RDF::List[:s, :p, :o] == RDF::Statement(:s, :p, :o). This unusual edge
case is patched by way of the changes described above. -
Adjust
List#<=>to avoid error casesUsing
Array(other)instead ofother.to_aavoids throwing errors when
comparing. This minor tweak slightly improves the solution to #304 given
in #305.