2016/03/11分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
remove obsolete i18n links from guides [ci skip]
rails guideのRails Internationalization (I18n) API
の修正です。
guide内にあった既に存在しないページへのリンクを削除しています。
Version 3.1.11 works on Windows again
Gemfile
の修正です。
bcrypt
のv3.1.11を使用するよう修正しています。
3.1.0で起こっていたWindowsで動かない問題が解消されている為、との事です。参考:Ruby 2.2.2 on Windows - LoadError: cannot load such file -- bcrypt_ext · Issue #128 · codahale/bcrypt-ruby
Gemfile.lock
の修正です。
先のGemfileの修正の際、lockファイルの更新が漏れていたので、更新しています。
Remove unfinished command infrastructure.
railties/lib/rails/command.rb
、
railties/lib/rails/commands.rb
の修正です。
Rails::Command
クラスを削除しています。元々、ユーザが任意にコマンドを登録出来るようにする予定があった(筈)なのですが、作業が途中になってしまっており、Rails 5.0には間に合わない為、途中になってしまっていたコードを一旦削除したようです。
Merge pull request #24145 from bdewater/remove_try_require
activesupport/lib/active_support/values/time_zone.rb
の修正です。
使用していないactive_support/core_ext/object/try
のrequireを削除しています。
activesupport/lib/active_support/core_ext/date_and_time/calculations.rb
の修正です。
こちらは使用しているのにrequireがされてなかったので、active_support/core_ext/object/try
のrequireを追加しています。
Merge pull request #24129 from dharamgollapudi/rename_dependencies_rake
action_view/tasks/dependencies.rake
をaction_view/tasks/cache_digests.rake
にリネームしています。
cache_digests
に関する処理が定義されているrakeファイルの為、との事です。
Merge pull request #23958 from kamipo/fix_bigserial_appears_with_limit_8
activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rb
の修正です。
PostgreSQLのbigserialカラムをdumpした際に、不要なlimit: 8
オプションが設定されてしまっていたのを、設定されないよう修正しています。
Extract default_primary_key?
to refactor column_spec_for_primary_key
Active Recordの修正です。
column_spec_for_primary_key
メソッドのリファクタの為に、primary keyのチェック処理をメソッド(default_primary_key?
)に切り出しています。
Dump bigint
instead of integer
with limit: 8
for schema dumper
Active Recordの修正です。
bigint型のカラムをdumpする際、limit: 8
が指定されたintegerとして出力されていたのを、bigint
として出力するよう修正しています。
# before create_table "big_numbers", force: :cascade do |t| t.integer "bigint_column", limit: 8 end # after create_table "big_numbers", force: :cascade do |t| t.bigint "bigint_column" end
Prevent Marshal.load
from looping infinitely
activesupport/lib/active_support/core_ext/marshal.rb
の修正です。
Marshal.load
メソッドで、constantをautoloadする際に、そのクラスがmarshalした際にと違う名前になっていた際に、無限ループしてしまうバグがあったのを修正しています。
Active Record 4.0で作成したオブジェクトをmarshalし、そのデータをRails 4.2でunmarshalしようとした所、Column
クラスの名前が変わっていた(4.0ではActiveRecord::ConnectionAdapters::Mysql2Adapter::Column
で、4.2ではActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::Column
)為、問題が発生したとの事です。
Fix thread_mattr_accessor
thread-local variable naming
activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
の修正です。
thread_mattr_reader
/ thread_mattr_writer
メソッドで、スレッドローカル変数を設定する際の名前に、クラス名を使用していたのを、インスタンス名を取得するよう修正しています。
- Thread.current[:"attr_#{self.class.name}_#{sym}"] + Thread.current[:"attr_#{name}_#{sym}"]
インスタンスの方が名前としてわかりやすいため、との事のようです。
activesupport/lib/active_support/file_update_checker.rb
のdocの修正です。
FileUpdateChecker
のdocにあるexampleで、deprecatedになったActionDispatch::Reloader.to_prepare
を使用していたのを、ActiveSupport::Reloader.to_prepare
を使用するよう修正しています。
Merge pull request #23677 from kamipo/passing_table_name_to_column_initialize
Active Recordの修正です。
Column
クラスでtable名をinstance_variable_get
を使用して取得していたのを、Column.new
の引数にtable名を渡すようにして、instance_variable_get
は使用しないで済むよう修正しています。