2021/4/4 Ruby 3.0化のメモ
Sixeight.icon
が書きました
詰まったところコーナー
社内ライブラリが3.0に対応していない!
grpc
の以下の症状に遭遇した
https://github.com/grpc/grpc/issues/25060#issuecomment-804132905
一般的な話
キーワード引数の変更
委譲しているときに厳しい
Separation of positional and keyword arguments in Ruby 3.0
URI.escape
URI#escape と URI#unescape は Ruby 3.0.0 から削除された - いまブログ
include
の挙動が変わった
Ruby 3.0 で変わる Module#include の挙動 - Secret Garden(Instrumental)
Use ActiveSupport::ToJsonWithActiveSupportEncoder#to_json for Ruby ...
Bug #17423: Prepend should prepend a module before the class - Ru...
知見コーナー
参考
一般的な話
12月25日にリリースされる Ruby 3.0 に備えよう!
プロと読み解く Ruby 3.0 NEWS クックパッド開発者ブログ
型の話
Ruby 3の静的解析機能のRBS、TypeProf、Steep、Sorbetの関係についてのノート - クックパッド開発者ブログ
Ruby 3 の静的解析ツール TypeProf の使い方 - クックパッド開発者ブログ