2016/03/10分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
AppGenerator: allow both 'rake' and 'rails'
railties/lib/rails/generators/actions.rb
の修正です。
AppGenerator
で、rake
メソッドを使用した場合もrails
コマンドが実行されるようになってしまっていたのを、rake
メソッドを指定した場合はrake
コマンドが、rails
メソッドを指定した場合はrails
コマンドがそれぞれ動作するよう修正しています。
Add ActionController::Parameters#dig
actionpack/lib/action_controller/metal/strong_parameters.rb
の修正です。
Hash#dig
メソッドが使える環境(MRIでは2.3以上ですね)では、ActionController::Parameters#dig
メソッドが使えるよう対応しています。
params = ActionController::Parameters.new(foo: { bar: { baz: 1 } }) params.dig(:foo, :bar, :baz) # => 1 params.dig(:foo, :zot, :xyz) # => nil params2 = ActionController::Parameters.new(foo: [10, 11, 12]) params2.dig(:foo, 1) #=> 11
Job payload should be symmetric across JSON dump/load
activejob/lib/active_job/core.rb
の修正です。
Jobのpayloadをserializeする際、localeをStringに変換するよう修正しています。
値がSymbolのままだと、payloadをJSONとしてdump / loadした際に、値が正しく復元しない為、との事です。
Add JSON round trip verification testcase
activejob/lib/active_job/core.rb
、
activejob/test/cases/job_serialization_test.rb
の修正です。
serialize / deserialize したデータが同一である事を確認するテストを追加しています。
Rename dependencies.rake to cache_digests.rake
action_view/tasks/dependencies.rake
をaction_view/tasks/cache_digests.rake
にリネームしています。
cache_digests
に関する処理が定義されているrakeファイルの為、との事です。が、後ほどrevertされています。
Revert "Merge pull request #24125 from dharamgollapudi/patch-3"
先のrakeファイルのリネーム処理をrevertしています。修正が漏れがあったらしく、db:migrate
がコケるようになってしまった為、との事です。
add return values to example [ci skip]
actionpack/lib/action_controller/metal/strong_parameters.rb
のdocの修正です。
先のコミットで追加されたActionController::Parameters#dig
メソッドのdoc内のexampleコードで、戻り値が記載されていない箇所があったのを、追加しています。
prefer require_relative over require + File.expand_path
railties/lib/rails/generators/rails/app/templates/Rakefile
の修正です。
相対pathからファイルをrequireするのに、require + File.expand_pathを使用していたのを、require_relative
を使用するよう修正しています。
revises the homepage URL in the gemspecs [ci skip]
各gemspecsに記載されているhomepageのURLをhttp://www.rubyonrails.org
からhttp://rubyonrails.org
に修正しています。
今はwww
無しが正確なURLなんですねえ。
revises whitespace in the gemspec of AV [ci skip]
actionview/actionview.gemspec
の修正です。
各パラメータを設定する箇所から、不要なスペースを削除しています。
Remove needless break;
[ci skip]
rails guideのThe Asset Pipeline
の修正です。
Far-future Expires Header
の項のnginxの設定についての例から、不要なbreak;
文を削除しいます。
Fixed comments of add_foreign_key method
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
の修正です。
add_foreign_key
メソッドのdoc内にあるexampleで、生成される外部キーの名称が実際生成される外部キーの名称と異なっていたのを修正しています。
actionpack/lib/action_dispatch/routing.rb
のdocの修正です。
Routing
moduleのdoc内、Non-resourceful routes
について説明している箇所の説明の順を整理しています。