なるようになるブログ

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

rails commit log流し読み(2014/06/11)

2014/06/11分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md

activesupport/CHANGELOG.md


[ci skip] Correct output and use valid options of number helpers

actionview/lib/action_view/helpers/number_helper.rbactivesupport/lib/active_support/number_helper.rbのdocの修正です。

実行結果にtypoがあったのを修正しています。


Remove deprecated method ActiveRecord::Base.quoted_locking_column

activerecord/lib/active_record/locking/optimistic.rbの修正です。

deprecatedになっていたActiveRecord::Base.quoted_locking_columnを削除しています。


[ci skip] Add Docs for strip_insignificant_zeros option in number helpers

actionview/lib/action_view/helpers/number_helper.rbactivesupport/lib/active_support/number_helper.rbのdocの修正です。

number_to_human_sizeメソッドstrip_insignificant_zerosオプションについてexampleを追加しています。


[ci skip] Improve enable_starttls_auto documentation.

actionmailer/lib/action_mailer/base.rbのdocの修正です。

enable_starttls_autoオプションについての説明を修正しています。


fix error with long keys in ActiveSupport::Cache::FileStore activesupport/lib/active_support/cache/file_store.rbの修正です。

ActiveSupport::Cache::FileStoreで生成されるパスが長すぎてエラーになってしまうバグを修正しています。

ファイルシステムのmaxは1024なのですが、付加される情報を加味して、900文字を制限としています。900を越える場合は、md5でハッシュ化してます。


remove deprecation call while initializing ClassCache object

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

ClassCache生成時に、出力されていたdeprecatedのワーニングを削除しています。もっと上位層での対応が完了したから、だと思うのですが、ちょっと怪しいです…。


[ci skip] Refine Action Mailer guide.

rails guideのAction Mailer Basicsの修正です。

1行60文字に収めたり、適切に改行いれたり等見やすさの改善をしています。


[ci skip] Fix doc for javascript_helper

actionview/lib/action_view/helpers/javascript_helper.rbのdocの修正です。

実行結果が誤っていたのを修正しています。

       #   javascript_tag "alert('All is good')", defer: 'defer'
-      #   # => <script defer="defer">alert('All is good')</script>
+      # 
+      # Returns: 
+      #   <script defer="defer">
+      #   //<![CDATA[
+      #   alert('All is good')
+      #   //]]>
+      #   </script>

ちゃんと"CDATA"挿入されるんですね。


Correct Bundler link [ci skip]

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

bundlerのURLをhttp://bundler.ioに修正しています。


No need to decorate columns twice

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

decorate_columnsを2回行っている箇所があったのを修正しています。


remove deprecated code. Rely on describe provided by minitest

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

deprecatedになっていたメソッドをばっさり削除しています。因みにdescribeメソッド。minitestに依存するので、不要との事です。


add missing changelog entry. refer [#16db90d] [ci skip]

activemodel/CHANGELOG.mdの修正です。Validatior#setupの削除について追記しています。


fix typo in changelog [ci skip]

activemodel/CHANGELOG.mdの修正です。

そんなCHANGELOGにタイポがあったのを修正しています。


Fix Apache Directives [ci skip]

rails guideのThe Asset Pipelineの修正です。

ApacheのDirectivesが誤っていたのを修正しています。


cleanup, get rid of trailing whitespace. [ci skip]

rails guideのThe Asset Pipelineの修正です。

先ほどの修正で入ってしまった不要なスペースを削除しています。


Remove deprecation warning

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

deprecation warningを削除しています。


Remove YAML serialization workaround for columns

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

YAML serializationのワークアラウンドの削除、との事です。コミット内容からだとちょっと解らない…。


rm cached attributes

activerecord/lib/active_record/attribute_methods/read.rbの修正です。

deprecatedになっていたcache_attributescached_attributescache_attribute?メソッドを削除しています。