なるようになるブログ

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

rails commit log流し読み(2016/12/31)

2016/12/31分のコミットです。

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


Remove needless ActiveSupport::Deprecation.silence

railties/lib/rails/commands/rake/rake_command.rbの修正です。

rake_tasksメソッドでrequire_application_and_environment!メソッドを呼び出す際に、ActiveSupport::Deprecation.silenceを使用してdeprecationを表示しないようにしていたのを、ActiveSupport::Deprecation.silenceを削除しています。require_application_and_environment!メソッドの呼び出しでdeprecationメッセージが表示される事が無くなった為。


Allow log remote ip addres when config.action_dispatch.trusted_proxies passed

railties/lib/rails/application/default_middleware_stack.rbの修正です。

ActionDispatch::RemoteIp middlewareをRails::Rack::Loggerより先にuseするよう修正しています。

loggerでproxryを使用している場合にもrequest_idが正しく表示されるようにする為に、ActionDispatch::RemoteIpを先にuseするようにしたとの事です。


Enforce middleware ordering with a test, instead of comments

railties/test/application/middleware_test.rbの修正です。

middlewareの読み込み順が想定通りになっているか確認する為のテストを追加しています。


Mark internal cache constants as private

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

Rails内部用の定数をの可視性をprivateに変更しています。


Add missing word in activerecord/CHANGELOG.md

activerecord/CHANGELOG.mdの修正です。

CHANGELOGエントリーのグラマーの修正を行っています。


Only add regexes for the new words

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

ActiveSupport::Inflector::Inflections::Uncountables#addメソッドでwordを登録する度に登録済みのwordsに対しても再度正規表現を追加しなおしていたのを、#addで追加されたwordのみ正規表現を登録するよう修正しています。


Prefer Regexp#match? over Regexp#===

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

Regexp#===メソッドの代わりにRegexp#match?メソッドを使用するよう修正しています。


Merge pull request #12509 from eitoball/pluralize_for_non_ascii_character_words

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

ActiveSupport::Inflector.pluralizeメソッドにnon-ASCIIの値を指定した場合のテストを追加しています。


remove skip_bundle option from plugin generator

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

plugin generatorからskip_bundleオプションを削除しています。

Do not run `bundle install` when generating a new pluginの対応によりオプションの指定のあるなしに関わらずbundle installは実行されなくなり、オプションの意味が無い為。


Bump license years for 2017

license yearsを2017に更新しています。