なるようになるブログ

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

rails commit log流し読み(2020/07/22)

2020/07/22分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

actionmailbox/CHANGELOG.md


Added documentation for _default option added to ActiveRecord::Enum [ci skip]

activerecord/lib/active_record/enum.rbのdocの修正です。

ActiveRecord::Enumのdocに_defaultオプションについての説明を追加しています。


Sendgrid: prepend X-Original-To header with envelope recipients

actionmailbox/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rbの修正です。

Sendgridから受信したメールにX-Original-Toが含まれていなかったのを、含むよう修正しています。


Fix enum losing attribute type cast.

activerecord/lib/active_record/enum.rbの修正です。

enumのtypeにinteger以外のtypeを使用していた場合に、attributeのtype castが行われなくなってしまっていたのを、integer以外のtypeでもtype castが行われるよう修正しています。


fix minor typos

rails guideのRails Internationalization (I18n) APIの修正です。

guide全体のタイポ、及び、グラマーの修正を行っています。

rails commit log流し読み(2020/07/21)

2020/07/21分のコミットです。

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


Fix InvalidMimeType errors not being caught, with tests.

actionpack/lib/action_dispatch/middleware/debug_exceptions.rbの修正です。

API-only applicationに不正なmimeが指定された場合に、HTTP statusに406ではなく500が返されてしまうバグがあったのを修正しています。


Assert that DebugExceptions renders HTML by default

actionpack/test/dispatch/debug_exceptions_test.rbの修正です。

DebugExceptionsがデフォルトでHTMLをrenderする事を確認するassertを追加しています。


Merge pull request #39882 from kamipo/simplify_attribute_type_decoration

Active Recordの修正です。

attribute typeのdecoration処理を専用のmoduleで行っていたのを、moduleを行わずに処理を行えるようリファクタリングしています。

rails commit log流し読み(2020/07/20)

2020/07/20分のコミットです。

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


Revert "Fix test_any in relations_test.rb, which was failing when relations_test.rb is run on its own (it passes when the entire suite is run). This is a hacky fix for a problem I didn't quite get to the bottom of, so I'd welcome a better solution..."

test_anySCHEMA queryをassert_queriesの前に実行する為にメソッドを呼び出しを追加した、Fix test_any in relations_test.rb, which was failing when relations_t…をRevertしています。

assert_queriesSCHEMA queryを無視するようになっており、上記対応が不要になった為。

rails commit log流し読み(2020/07/19)

2020/07/19分のコミットです。

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


Document how exceptions are handled in instrumentation

rails guideのActive Support Instrumentationの修正です。

Exceptionが発生した場合のpayloadに格納されているデータについての説明を追加しています。


Merge pull request #39708 from jonathanhefner/finish_template-goes-last

railties/lib/rails/generators/rails/app/app_generator.rbの修正です。

finish_templateがgeneratorの最後に実行されるよう修正しています。finish_templateはgeneratorの最後に実行される事を期待されている為。

rails commit log流し読み(2020/07/18)

2020/07/18分のコミットです。

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


fix typos in active support docs

rails guideのActive Support Core Extensionsの修正です。

各箇所のタイポの修正を行っています。


fix typo in Active Job exceptions docs

activejob/lib/active_job/exceptions.rbのdocの修正です。

retry_onメソッドのdoc内のタイポを修正しています。

rails commit log流し読み(2020/07/17)

2020/07/17分のコミットです。

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


Switch regex for delete_suffix in normalize_path

actionpack/lib/action_dispatch/journey/router/utils.rbの修正です。

normalize_pathメソッドで末尾の/を削除するのにregexを使用していたのを、delete_suffixメソッドを使用するよう修正しています。


Merge pull request #39829 from tgxworld/remove_protect_from_forgery_from_application_controller_template

railties/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.ttの修正です。

rails pluginで生成するcontrollerからprotect_from_forgery with: :exceptionを削除しています。デフォルトでprotect_from_forgeryが指定されるようになっている為。


Revert "Merge pull request #39613 from kamipo/where_with_custom_operator"

whereにcomparison operatorsを指定出来るよう対応した、Support where with comparison operators (>, >=, <, and <=)をRevertしています。APIについて、core teamからのapproveがとれてなかった為。

Support where with comparison operators (>, >=, <, and <=) Take 2で再度対応を進めています。

rails commit log流し読み(2020/07/16)

2020/07/16分のコミットです。

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


Add Action Mailbox bug report templates

bug report templatesの修正です。

Action Mailbox用のbug report templateを追加しています。


Link to Action Mailbox's new bug report template [ci skip]

rails guideのContributing to Ruby on Railsの修正です。

Create an Executable Test Caseの項に、先程追加されたAction Mailbox用のbug report templateへのリンクを追加しています。