2015/12/06分のコミットです。
CHANGELOGへの追加はありませんでした。
Shrink a couple of deprecation warnings to one-liners
actionpack/lib/action_dispatch/http/mime_type.rb
の修正です。
deprecationメッセージに不要な空白が大量にあったのを、他のdeprecationメッセージ同様1行で表示するよう修正しています。
Move command_name_for
to private section.
railties/lib/rails/commands/command.rb
の修正です。
Rails::Commands::Command.command_name_for
メソッドを、privateセクションに移動しています。
railties/lib/rails/commands/command.rb
のdocのです。
rails内部用APIのRails::Commands::Command#exists?
メソッドに、:nodoc:
を設定しています。
railties/lib/rails/commands/command.rb
の修正です。
Rails::Commands::Command.command_name_for
メソッドのリファクタリングとして、不要なnilのリターンの削除、不要な一時変数の削除を、行っています。
Default argv
to an empty array.
railties/lib/rails/commands/command.rb
の修正です。
Rails::Commands::Command.new
メソッドのargv
引数のデフォルト値を空のStringから空のArrayに変更しています。RubyのARGV
はArrayであり、それに型を合わせる為。
Remove _instance
suffix from command.
railties/lib/rails/commands/command.rb
の修正です。
Rails::Commands::Command#run
メソッドで使用している各コマンドクラスを格納する変数の名前をcommand_instance
-> command
に省略可しています。
Merge pull request #22202 from grosser/grosser/write-consistent
activesupport/lib/active_support/cache/mem_cache_store.rb
の修正です。
MemCacheStore
クラスでデータの書き込みに失敗した場合も、成功した場合同様raw valueを返すよう修正しています。
railties/lib/rails/commands/command.rb
の修正です。
Rails::Commands::Command#parse_options_for
メソッドでコマンドオプションをfetchする際に、ラムダ式に->
にを使用していたのをproc
を使用するよう修正しています。引数を複数受け取れるようにする為。
Merge pull request #19977 from prathamesh-sonpatki/mention-redirect-path-in-assert-response
actionpack/lib/action_dispatch/testing/assertions/response.rb
の修正です。
assert_response
メソッドで、redierct処理が行われた場合、エラーメソッドに明確にredirect処理が行われた旨表示するよう修正しています。
# before Expected response to be a <success>, but was <302> # after Expected response to be a <success>, but was a redirect to <http://test.host/posts/lol>
Add class level run
to Rails command.
railties/lib/rails/commands/command.rb
、
railties/lib/rails/commands/commands_tasks.rb
の修正です。
Rails::Commands::Command.run
メソッドを追加しています。.run
メソッドでは、タスク名からコマンド名への変更、及びコマンドがあればそのコマンドの実行(実行はRails::Commands::Command#run
メソッドで実行)を行うようになっています。
Remove "run with rake" suggestion.
railties/lib/rails/commands/commands_tasks.rb
の修正です。
bin/rails
経由でコマンドが見つからなかった場合に、rake
経由でタスクを実行するようサジェストを表示していたのを、サジェストを表示しないよう修正しています。
全てのrakeタスクをbin/rails
経由で実行出来るようにする予定であり、rake
を使用する必要はなくなる為、との事です。
Invert command and commands tasks reference.
railtiesのcommand処理の修正です。
commands tasksとcommand classの参照の順番を逆に(command classの参照を先に)しています。
元々のbin/rails
のtask(generate、server等)もいずれcommand classを作成し、そちら経由で実行するようにする為のようです。
Ditch Commands
namespace for base command.
railtiesのcommand処理の修正です。
Rails::Commands::Command
クラスをRails::Command
に移動(Commands
namespaceを削除)しています。