Ruby2.6アドベントカレンダーの22日目の記事です。
URI
URI::File 追加
https://bugs.ruby-lang.org/issues/14035
2.5 までは file: で始まる文字列をパースすると URI::Generic を返していましたが URI::File を返すようになります。
URI::File に user や password を設定しようとするとエラーになります。
uri = URI.parse("file:///path/to/file") #=> #<URI::File file:///etc/hosts> #=> 2.5 では #<URI::Generic file:///etc/hosts> uri.user = 'hoge' #=> can not set user for file URI (URI::InvalidURIError)
Set
Set#filter! 追加
https://bugs.ruby-lang.org/issues/13784
Set#select! の別名です。
Bundler
Bunderが標準ライブラリに追加
https://bugs.ruby-lang.org/issues/12733
2.5 に入りそうで入らなかった Bundler が標準添付になりました。