なるようになるブログ

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

rails commit log流し読み(2014/08/08)

2014/08/08分のコミットです。

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


Fix spelling.

actionpack/test/controller/test_case_test.rbの修正です。

stingstringに修正しています。


change to empty? from blank?

activerecord/lib/active_record/connection_adapters/schema_cache.rbの修正です。

テーブルのチェック処理を行う際のメソッドempty?からblank?に修正しています。nilの可能性があるからですかね。


use the uri parser so that newer version of Ruby work

activerecord/lib/active_record/connection_adapters/connection_specification.rbの修正です。

URIのパース処理でuri_parseメソッドを使用するよう修正してます。

uri_parseメソッドの中身は以下のような内容です。

def uri_parser
  @uri_parser ||= URI::Parser.new
end

newer version of Ruby workの意味がよく解らなかったです…。何かRuby側で変更が入ったのかなあ…。


remove dead file_watcher code

activesupport/lib/active_support/file_watcher.rbの修正です。

使われていないFileWatcherクラスを削除しています。


defer running after_config hooks until after the object is allocated

railties/lib/rails/application.rbの修正です。

各オブジェクトの生成処理が終わるまで、after_configフックを実行しないよう対応した、だと思います。ちょっと怪しい…。


add a new constructor that runs load hooks

railties/lib/rails/application.rbの修正です。

appのインスタンス生成用のメソッドとしてcreateメソッドを追加しています。

createメソッドでは、newメソッドrun_load_hooks!を呼び出していす。


need to call super

railties/test/engine_test.rbの修正です。

initializeメソッド内でsuperを行うよう修正しています。


Stop using padding in the generated Gemfile -- it looks shit

railties/lib/rails/generators/app_base.rbrailties/lib/rails/generators/rails/app/templates/Gemfileの修正です。

Gemfileを生成する際、一番長いgemの名前に合わせて、パティングを行うよう対応が行われていたのですが、その処理を削除しています。

"it looks shit"とは、大分気に入らなかったんですかね…。


Pull spring gem entry into the Gemfile template instead of gemfile_entries so it can be grouped with the other development tools

railties/lib/rails/generators/app_base.rbrailties/lib/rails/generators/rails/app/templates/Gemfileの修正です。

gemfile_entriesからspringを削除して、代わりにGemfileのtemplateに追加しています。springは別枠だろう、とう事での対応のようです。

因みに、合わせてGemfileのtemplateにweb-consoleが追加されています。


Merge pull request #16384 from tomkadwill/improved_create_documentation

activerecord/lib/active_record/persistence.rbのdocの修正です。

create!メソッドのdocの改善を行っています。


Rephrase how we explain RecordInvalid exception in the context of

activerecord/lib/active_record/persistence.rbのdocの修正です。

先のdocのコミットを再度修正しています。


[ci skip] Changed 'first argument' to '+name+ argument'

activerecord/lib/active_record/associations.rbのdocの修正です。

first argument+name+ argumentに修正しています。


Fix typo in plugins doc

rails guideのThe Basics of Creating Rails Pluginsの修正です。

pluginのexampleの所に、newが足りてなかったのを修正しています。


Fix the #const_regexp's documentation [ci skip]

activesupport/lib/active_support/inflector/methods.rbのdocの修正です。

exampleの戻り値の型がRegexpになっていたのですが、本来はStringなので、Stringに修正しています。


Merge pull request #16426 from tgxworld/fix_false_positive

actionpack/test/controller/test_case_test.rbの修正です。

テストカバレッジ向上の為のテストの追加、テストメソッド名の修正等を行っています。