なるようになるブログ

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

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

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

CHANGELOGへの追加はありませんでした。


Revert "Change 1.week to create 1 week durations instead of 7 days durations."

ActiveSupport::Durationでweeksとhoursを使用出来るよう対応した、Change 1.week to create 1 week durations instead of 7 days durations. · rails/rails@1bf9fe7をrevertしています。

minutes / hourを加えた場合に、timezoneが変わってしまうリグレッションが発生してしまった為、revertしたとの事です。


Respect gospel of Railties Gods: no on_load with after.

actionview/lib/action_view/railtie.rbの修正です。

action_view.collection_caching initializerで、action_controllerのon load時に処理を実行するようになっていたのから、on loadの指定を削除しています。

    initializer "action_view.collection_caching", after: "action_controller.set_configs" do |app|
-      ActiveSupport.on_load(:action_controller) do
-        PartialRenderer.collection_cache = app.config.action_controller.cache_store
-      end
+      PartialRenderer.collection_cache = app.config.action_controller.cache_store
     end

action_controller.set_configsの後に実行されるようになっており、その時点でAction Controllerはロード済みの筈の為。


Fix release script to allow pre release gems

tasks/release.rbの修正です。

install taskでpre releaseのgemをインストール出来るよう、gem install--preオプションを指定するよう修正しています。


Prep Rails 5 beta 4

コンポーネントのバージョンを5.0.0.beta4に更新しています。


Push action_view.collection_caching to be called towards the end, since it depends on being called after action_controller.set_configs.

actionview/lib/action_view/railtie.rbの修正です。

action_view.collection_cachingのinitializerをファイルの終端に移動しています。

action_view.collection_caching initializerはaction_controller.set_configsの後に実行するようになっているので、ファイルの途中にあると、それ移行のinitializerも同様に実行がブロックされてしまうので、action_controller.collection_cachingをファイルの終端に移動し他のinitializerには影響が出ないよう修正しています。


Update to the Rails 5 version of the book

RELEASING_RAILS.mdの修正です。

Agile Web Development with Railsへのリンクを、Rails 4系(https://pragprog.com/titles/rails4/agile-web-development-with-rails-4th-edition)の本から、Rails 5系(https://pragprog.com/titles/rails5/agile-web-development-with-rails-5th-edition)の本にリンクを修正しています。


Fix inconsistent usage of capital letter in rails generate command examples

rails guideのGetting Started with Railsの修正です。

generateコマンドのexampleコードで、指定するcontroller名の先頭に大文字小文字が混在していたのを、大文字を使用するよう統一しています。


Review the byebug debugging guide

rails guideのDebugging Rails Applicationsの修正です。

Debugging with the byebug gemの項について、

  • フォーマット、言い回しの修正
  • 最新のbyebugに合わせてコマンド、出力内容を出力

を行っています。


Pass over debugging guide

rails guideのDebugging Rails Applicationsの修正です。

SuccesfullySuccessfullyにタイポしている箇所があったのを修正しています。