なるようになるブログ

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

rails commit log流し読み(2016/04/29)

2016/04/29分のコミットです。

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

activesupport/CHANGELOG.md


Fix broken links to ryandaigle.com [ci skip]

rails guideのRuby on Rails 2.2 Release NotesRuby on Rails 2.3 Release Notesの修正です。

http://ryandaigle.com へのリンクが壊れてしまっていたのを修正しています。2.2に2.3…。


schema_load triggers 2nd schema_load (via locking)

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

locking_columnを使用している際に、schema load処理が2回行われてしまうバグがあったのを修正しています。

lock用のカラムが定義済みかどうかのチェック処理に誤りがあったのを修正して対応しています。


test the number of times the schema is loading

activerecord/test/cases/schema_loading_test.rbの修正です。

先のshcema loadの修正について、テストを追加しています。


Remove last uses of @env[] and @env[]=

actionpack/lib/action_dispatch/http/mime_negotiation.rbactionpack/lib/action_dispatch/testing/test_request.rbの修正です。

@env hashを直接操作している箇所があったのを、#get_header#set_headerメソッド経由で処理を行うよう修正しています。


Active Job: Add note about ability to configure adapters on per job basis in CHANGELOG and release notes.

activejob/CHANGELOG.mdRuby on Rails 5.0 Release Notesの修正です。

jobクラスごとにqueue adapterを指定出来るようにした対応(ActiveJob: queue_adapter can be inherited by tamird · Pull Request #16992 · rails/rails)について、CHANGELOG及びRails 5 Release Notesにentryを追加しています。


Merge pull request #24762 from Envek/solid_durations_2

Active Supportの修正です。

リグレッションが発生した為にrervertされた、ActiveSupport::Durationでweeksとhoursを使用出来るよう修正した対応を再度コミットしています。

CHANGELOGより。

[1.hour.inspect, 1.hour.value, 1.hour.parts]
# => ["3600 seconds", 3600, [[:seconds, 3600]]]   # Before
# => ["1 hour", 3600, [[:hours, 1]]]              # After

[1.week.inspect, 1.week.value, 1.week.parts]
# => ["7 days", 604800, [[:days, 7]]]             # Before
# => ["1 week", 604800, [[:weeks, 1]]]            # After

よりISO8601のフォーマットに準拠にする為の対応との事です。