lib/addressable/idna/native.rb in addressable-2.8.1 vs lib/addressable/idna/native.rb in addressable-2.8.2
- old
+ new
@@ -27,13 +27,9 @@
def self.punycode_decode(value)
IDN::Punycode.decode(value.to_s)
end
- def self.unicode_normalize_kc(value)
- IDN::Stringprep.nfkc_normalize(value.to_s)
- end
-
def self.to_ascii(value)
value.to_s.split('.', -1).map do |segment|
if segment.size > 0 && segment.size < 64
IDN::Idna.toASCII(segment, IDN::Idna::ALLOW_UNASSIGNED)
elsif segment.size >= 64