なるようになるブログ

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

rails commit log流し読み(2015/01/14)

2015/01/14分のコミットです。

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

activesupport/CHANGELOG.md

railties/CHANGELOG.md


Merge pull request #18471 from ahmad-alkheat/master

rails guideのActive Record Query Interfaceの修正です。

find_byメソッドのexampleに、実際生成されるSQLのexampleを追加しています。


Set all asset options together

railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です

config.action_controller.asset_hostオプションの位置をずらして、asset関係のオプションを近くにまとめています。


Show how to change the queuing backend for ActiveJob in production

railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です。

config.active_job.queue_adapterconfig.active_job.queue_name_prefixのサンプルを追加しています。


Stop promoting rack-cache usage at the moment (not so common or important to deserve that billing)

railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.ttの修正です。

config.action_dispatch.rack_cacheオプションを削除しています。

rack-cacheは一般的ではないし、そんなに重要でも無いから、との事です。


Add missing time zone definitions for Russian Federation

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

TimeZoneクラスに不足していたタイムゾーンを追加しています。

追加されたのは、Kaliningrad(Europe/Kaliningrad)Samara(Europe/Samara)Srednekolymsk(Asia/Srednekolymsk)で、 合わせて、Volgogradの値がEurope/Moscow -> Europe/Volgogradに修正されています。


Add the method_source gem to the default Gemfile

railties/lib/rails/generators/rails/app/templates/Gemfileの修正です。

生成されるGemfileにmethod_sourceが追加されています。

これは、DHHがソースコードを見るメソッドが欲しいというissueを作成し、それなら自前で実装するより、 method_source使えば良くない? という事で追加されたとの事です。


Merge pull request #18476 from Alamoz/scaffold_index_view_grammar

railties/lib/rails/generators/erb/scaffold/templates/index.html.erbの修正です。

生成されるindex.html.erbからh1タグにあった"Listing"が削除されています。

-<h1>Listing <%= plural_table_name.titleize %></h1>
+<h1><%= plural_table_name.titleize %></h1>

Guides: Removing reference to blog that is not updated anymore [ci skip]

rails guideのRuby on Rails Security Guideの修正です。

参考URLからhttp://www.rorsecurity.infoを削除しています。もうメンテされてないから、との事。


Fix form_for guide binding a form to an object.

rails guideのForm Helpersの修正です。

form_forメソッドで生成されるHTMLのexampleに誤りがあったのを修正しています。


Merge pull request #18478 from yoshiokatsuneo/active_record_connection_pool_error_disconnect

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

checkout_and_verifyメソッドでエラーが起きた際、すべてのコネクションを切断するのではなく、エラーが起きたコネクションだけ切断するよう修正しています。

-        disconnect!
+        remove c
+        c.disconnect!

improve grammar

railties/lib/rails/railtie.rbのdocの修正です。

"load" -> "loads"に修正しています。


fix link in autoloading guide [ci skip]

rails guideのAutoloading and Reloading Constantsの修正です。

ページ内リンクのパスが誤っている箇所があったのを修正しています。


- Changed IN to ON in markdown renderer condition

guides/rails_guides/markdown/renderer.rb及び各guideの修正です。

guideの先頭に表示しているwarningメッセージのグラマーの修正です。"IN"を"ON"に修正しています。

-**DO NOT READ THIS FILE IN GITHUB, GUIDES ARE PUBLISHED IN http://guides.rubyonrails.org.**
+**DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON http://guides.rubyonrails.org.**

Extract Date header to string constant in Http Response, similar to other headers

actionpack/lib/action_dispatch/http/cache.rbの修正です。

Date headerだけ定数で管理していなかったのを、他のheaderのkeyと同様に定数で管理するよう修正しています。


require 'rails' if not include_all_railties, just as 'rails/all' does

railties/lib/rails/generators/rails/app/templates/config/application.rbの修正です。

include_all_railties?がfalseの際に、railsをrequireするよう修正しています。


Fix typo in ActionView CHANGELOG [ci skip]

actionview/CHANGELOG.mdの修正です。

"rended" -> "rendered"にタイポを修正しています。


Changed "in GitHub" to "on GitHub" [ci skip]

CONTRIBUTING.mdguides/source/contributing_to_ruby_on_rails.mdの修正です。

"in GitHub" -> "on GitHub"に修正しています。タイポ、というかグラマーの修正でしょうか。