lib/csl/locale.rb in csl-1.4.0 vs lib/csl/locale.rb in csl-1.4.1

- old
+ new

@@ -371,11 +371,11 @@ language && language == Locale.languages[region] end def like?(other) return false unless other.is_a? Locale - return true if universal? || other.universal? + return true if other.universal? language == other.language end def universal? @@ -430,13 +430,13 @@ when default_region? -1 when other.default_region? 1 else - region <=> other.region + region.to_s <=> other.region.to_s end else - language <=> other.language + language.to_s <=> other.language.to_s end end # @return [String] the Locale's IETF tag def to_s