なるようになるブログ

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

rails commit log流し読み(2019/09/09)

2019/09/09分のコミットです。

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

activesupport/CHANGELOG.md

activerecord/CHANGELOG.md


Fix Class#new + keyword arguments warnings

Class#newにキーワード引数を渡す際にdouble splatを指定するよう修正しています。


Column takes keyword arguments

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

NullColumn#initializeの引数指定でキーワード引数を明示的に指定するよう修正しています。


I18n.translate takes keyword arguments

actionpack/lib/abstract_controller/translation.rbの修正です。

I18n.translateにキーワード引数を渡す際にdouble splatを指定するよう修正しています。


Fix Class#new + keyword arguments warnings

Class#newにキーワード引数を渡す際にdouble splatを指定するよう修正しています。


Keyword arguments for TableDefinition and create_table_definition

Active Recordの修正です。

TableDefinitioncreate_table_definitionメソッドでキーワード引数の指定にdouble splatを指定するよう修正しています。


Keyword arguments for Type initializers

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

register_integer_typeメソッドでキーワード引数の指定にdouble splatを指定するよう修正しています。


select_all takes keyword arguments

activerecord/lib/active_record/connection_adapters/mysql/database_statements.rbの修正です。

select_allメソッドでキーワード引数の指定にdouble splatを指定するよう修正しています。


Keyword arguments for schema manipulation methods

Active Recordの修正です。

schema操作系のメソッドでキーワード引数の指定にdouble splatを指定するよう修正しています。


Errors#add takes keyword arguments

activerecord/lib/active_record/validations/uniqueness.rbの修正でうs.

addメソッドでキーワード引数の指定にdouble splatを指定するよう修正しています。


Support calling include? on beginless and endless ranges.

activesupport/lib/active_support/core_ext/range/include_time_with_zone.rbの修正です。

Range#include?がbeginless Raneとendless Rangeで動作するよう修正しています。


Clear query cache when insert all is used

Active Recordの修正です。

insert, insert_all, upsert, 及び upsert_allメソッドでquery cacheがclearされず、query cache有効時に各処理が誤った結果が返してしまうバグがあったのを修正しています。


Fix docs to update http and www.ruby-doc.org [ci skip]

docの修正です。

http://www.ruby-doc.org へのリンクをhttps://ruby-doc.org に修正しています。


Improve autosave documentation [ci skip]

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

ActiveRecord::AutosaveAssociationのdoc内のexampleコードを、autosaveが指定された場合 / 指定されなかった場合の挙動がよりわかりやすくなるよう修正しています。


Merge pull request #37096 from npras/master

guides/assets/stylesheets/main.cssの修正です。

リストの中でもword highlightが有効になるようスタイルを修正しています。


Fix folders update watcher with no folders to watch (#36163)

activesupport/lib/active_support/evented_file_update_checker.rbの修正です。

クラス内で行っていたlisten gemのロード処理をファイルの先頭で行うようにして、listen gemのインストールが不足していた場合に直ぐ気付けるよう修正しています。


nil.try accepts keyword arguments (and does nothing with them)

activesupport/lib/active_support/core_ext/object/try.rbの指定です。

trytry!メソッドでキーワード引数を受け取れるよう引数指定にdouble splatを追加しています。


Fix keyword arguments warnings

Hashをキーワード引数として渡す際にdouble splatを指定するよう修正しています。