Project

General

Profile

Bug #14711

Updated by nobu (Nobuyoshi Nakada) over 6 years ago

Since Ruby 2.3.0 URI::HTML5ASCIIINCOMPAT returns expression instead of an array.  

 I guess it's a backward compatibility issue. 

 ``` 
 ➜    ~ RBENV_VERSION=2.2.5 ruby -e "require 'uri'; p URI::HTML5ASCIIINCOMPAT" 
 [#<Encoding:UTF-7 (dummy)>, #<Encoding:UTF-16BE (autoload)>, #<Encoding:UTF-16LE (autoload)>, #<Encoding:UTF-32BE (autoload)>, #<Encoding:UTF-32LE (autoload)>] 
 ➜    ~ RBENV_VERSION=2.3.0 ruby -e "require 'uri'; p URI::HTML5ASCIIINCOMPAT" 
 "expression" 
 ➜    ~ RBENV_VERSION=2.4.4 ruby -e "require 'uri'; p URI::HTML5ASCIIINCOMPAT" 
 "expression" 
 ➜    ~ RBENV_VERSION=2.5.0 ruby -e "require 'uri'; p URI::HTML5ASCIIINCOMPAT" 
 "expression" 
 ``` 
 ``

Back