なるようになるブログ

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

rails commit log流し読み(2015/10/04)

2015/10/04分のコミットです。

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


Update text on CSS Injection / Myspace

rails guideのRuby on Rails Security Guideの修正です。

CSS Injectionの項の言い回し、グラマーの修正を行っています。


Wrong usage of 'a' in docs fixed [ci skip]

各docの修正です。

グラマーの修正(a -> anに修正)をまとめて行っています。


Revert "removing Rack::Runtime from the default stack."

先日対応された、デフォルトのmiddleware stackからRack::Runtimeを削除したコミットをrevertしています。

多くのengineで、default stackにRack::Runtimeがある事を前提としており、影響が多いためrevertしたとの事です。


YAGNI concurrent-ruby master branch now that 1.0.0.pre3 is released with fixes for warnings and circular require

Gemfile.lockの修正です。

Gemfileから、不要なconcurrent-rubyの指定を削除しています。実際concurrent-rubyを使用しているActive Supportのgemspecの方に指定があり、Gemfileでの指定は不要な為削除したようです。

ちなみにコミット対象がGemfile.lockだけになっており、コミットが漏れてしまったGemfileについては直後に別のコミットで対応されています。


Missed Gemfile change in f849cfe36c585fbc58c4a5fd91b0ae1571d38bcb

Gemfileの修正です。

先の対応でコミットが漏れていたので対応しています。


Introduce Headers#add. Move Response#add_header upstream.

Action Packの修正です。

headerに値を追加する為の、ActionDispatch::Http::Headers#addメソッドを追加、Response#add_headerメソッドをrack側に移動(Response#add_header to add to a value to a multivalued header by jeremy · Pull Request #957 · rack/rack)、Response#have_header?メソッドResponse#has_header?に名前を変更、をまとめて行っています。


Merge pull request #21848 from yui-knk/test_suppress_warnings

actionpack/test/dispatch/response_test.rbの修正です。

charsetのテストから、使用していない変数を削除しています。


Use Time#current instead of Time#now to prevent zone issue inorder to use application's time zone

activesupport/lib/active_support/core_ext/time/calculations.rbの修正です。

Time.days_in_monthメソッドyear引数のデフォルト値をnow.yearからcurrent.yearに修正しています。

Time#nowだとアプリケーションのTimeZoneが考慮されないので、TimeZoneが考慮されるTime#currentを使用するよう修正したとの事です。


Fix Time.now format in documentation

activesupport/lib/active_support/core_ext/time/conversions.rbのdocの修正です。

Time#to_formatted_sメソッドのdoc内のTime.nowの実行結果が、実際の結果と異なっていたのを修正しています。