なるようになるブログ

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

rails commit log流し読み(2017/09/30)

2017/09/30分のコミットです。

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


Merge pull request #30735 from tjschuck/fix_doc_code_formatting

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

ActionDispatch::SSLクラスのdocのフォーマットを修正しています。


Fix "warning: `*' interpreted as argument prefix"

activestorage/lib/active_storage/previewer.rbの修正です。

ActiveStorage::Previewer#drawメソッドでRubyのwarning("warning: `*' interpreted as argument prefix")が出ていたので、中括弧を追加し対応しています。


Fix test "signed URL generation" failure

activestorage/test/service/azure_storage_service_test.rbの修正です。

signed URLを生成するテストがCIでエラーになっていたのを修正しています。

Preview PDFs and videos でURLの生成処理に変更が入っており、その影響のようです。


Fix "warning: method redefined; discarding old test_scaffold_plural_names"

railties/test/generators/named_base_test.rbの修正です。

NamedBaseのテストでRubyのwarning("warning: method redefined; discarding old test_scaffold_plural_names")が出ていたので、重複していたテスト名を変更しています。


Don't use Active Support where it is not needed.

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

ActionDispatch::SSLクラスでdaysメソッドを使用していたのを、使用しないよう修正しています。

active_support/timeはデフォルトではrequireされないので、ここでdaysメソッドを使用するとAction Packを単体で使用するような場合にエラーになってしまう為。


Remove unused methods from RenderPartialWithRecordIdentificationController

actionview/test/activerecord/render_partial_with_record_identification_test.rbの修正です。

使用していないrender_with_has_many_through_associationrender_with_belongs_to_associationメソッドを削除しています。


Testing to ensure both bang and non-bang methods behaves consistently

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

HashWithIndifferentAccess#transform_valuesメソッドと#transform_keysメソッドがそれぞれbang付きメソッド(#transform_values!#transform_keys!)と同じ挙動をする事を確認するテストを追加しています。


Remove :api: tag that has leaked on the doc directly [ci skip]

各docから:api:タグを削除しています。

メソッドをAPI docに表示するかどうかの管理の為に設定したいたようなのですが、RDocでは:api:タグは動作しない為、:api:タグは削除し:nodoc:を使用するよう修正しています。 因みに:api:タグはYARDだと使用出来るようです。


Ensure AliasTracker respects a custom table name

activerecord/lib/active_record/associations/association_scope.rbactiverecord/lib/active_record/associations/join_dependency.rbの修正です。

custom table nameを使用している場合にもtable aliasesを追跡出来るよう対応しています。