なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2016/05/19)

2016/05/19分のコミットです。

CHANGELOGへの追加はありませんでした。


- removing redundant 'happens' in documentation [ci skip]

activemodel/lib/active_model/validations/callbacks.rbのdocの修正です。

ActiveModel::Validations moduleのdocのグラマーの修正を行っています。


Improve method description

actioncable/lib/action_cable/channel/naming.rbのdocの修正です。

channel_nameメソッドのdocに、クラス名がキャメルケースの場合の実行例を追加しています。


Merge pull request #19428 from bdmac/fix_safe_buffer_titleize

activesupport/test/inflector_test_cases.rbの修正です。

Inflector#titleizeメソッドSafeBufferクラスの値を渡した場合のテストを追加しています。


Support for unified Integer class in Ruby 2.4+

Ruby 2.4からFixnum / Bignumクラスは廃止され、Integerクラスに統合されるようになりました。その対応として、Fixnum / Bignumを使用・参照していた箇所を、Integerクラスを使用するよう修正しています。

参考:Feature #12005: Unify Fixnum and Bignum into Integer - Ruby trunk - Ruby Issue Tracking System


fix named route example [ci skip]

actionpack/lib/action_dispatch/routing.rbのdocの修正です。

ActionDispatch::Routing moduleのdoc内のNamed routesのexampleコードに誤りがあったのを修正しています。