2014/08/09分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Extract source code for the entire exception stack trace for better debugging and diagnosis.
Merge pull request #16427 from ryandao/full_stack_source_extract
エラー画面の改修です。
エラー時に表示されるTraceがクリッカブルになり、該当部分のソースがエラー画面上で見れるようになりました。
サンプル。
ここでTraceクリッカブルになって、リンクを押すと、"Extracted source"の部分が変わります。
(伝わるかなあ…)
better errorsを使用しているので、あまりデフォルトのエラー画面を見る機会が無いのですが、ちょっと便利かも。
Fixes test for Gemfile entry changes
railties/test/generators/app_generator_test.rb
の修正です。
昨日行われたGemfileの対応により壊れてしまったテストを修正しています。
add a test for prepending SCRIPT_NAME to generated urls
railties/test/path_generation_test.rb
の修正です。
paramsにscript_name
を指定した時のテストを追加しています。
save a hash allocation per request.
railties/lib/rails/engine.rb
の修正です。
env['SCRIPT_NAME']
が設定されていた場合、リクエスト毎に値を保持するよう修正しています。
Add config option for cookies digest
actionpack/lib/action_dispatch/middleware/cookies.rb
の修正です。
cookieのをconfig.action_dispatch.cookies_digest
で指定出来るようになりました。デフォルトはSHA1
config.action_dispatch.cookies_digest = 'SHA256'
セキュリティレベル上げたい場合とかに使う感じですかね。
Return preconfigured AS::MessageVerifier
railties/lib/rails/application.rb
の修正です。
ActiveSupport::MessageVerifier
の戻り値が、config.action_dispatch.cookies_digest
、config.action_dispatch.cookies_serializer
の値を反映した値を返すように修正しています。
- ActiveSupport::MessageVerifier.new(secret) + ActiveSupport::MessageVerifier.new(secret, digest: config.action_dispatch.cookies_digest, serializer: config.action_dispatch.cookies_serializer)
古いバージョンでMessageVerifier
を使って値を設定して、バージョンアップ後にcookies_digest
の設定変更した場合、値復号出来なくなるので、危ないですねえ。
Revert "Merge pull request #16434 from strzalek/cookies-digest-config-option"
Add config option for cookies digest、 Return preconfigured AS::MessageVerifierを Revertしています。
ソース内にミスがあり、buildを壊してしまっているので、一旦Revertしたとの事です。
Docs: grammar fix for fetch. [ci skip]
activesupport/lib/active_support/cache.rb
のdocの修正です。
doc内にthe
が足りてなかったので追加しています。
Using delegated connection method
activerecord/lib/active_record/tasks/postgresql_database_tasks.rb
の修正です。
ActiveRecord::Base.connection
をconnection
に修正しています。
ファイル内でdelegate :connection, to: ActiveRecord::Base
を行っている為、delegateを使用する為の修正です。
actionpack/lib/action_controller/metal/live.rb
の修正です。
ロギング処理をブロックの中に移動しています。
実行時にStringを生成するようにする為ですね。詳細はこちら。
[ci skip] Changed options to +options+ for rdoc
activerecord/lib/active_record/associations.rb
の修正です。
options
を+options
に修正しています。 等幅フォントで表示されるように対応。
README.md
の修正です。
Ruby on Rails Tutorial
のリンクをhttp://www.railstutorial.org/bookに修正しています。