2016/04/26分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Add require of mattr_accessor since Compatibility relies on it.
activesupport/lib/active_support/core_ext/date_and_time/compatibility.rb
の修正です。
active_support/core_ext/module/attribute_accessors
のrequireを足りてなかったのを追加しています。
Move remaining current_savepoint_name to savepoints module
activerecord/lib/active_record/connection_adapters/abstract/savepoints.rb
、
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
の修正です。
AbstractAdapter
クラスに定義されていたSAVEPOINT name 取得用のメソッド(#current_savepoint_name
)をActiveRecord::ConnectionAdapters::Savepoints
module配下に移動しています。
Dont simply assume a type is a valid database type. This is only always true in the case of sqlite.
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
、
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
の修正です。
ActiveRecord::ConnectionAdapters::AbstractAdapter#valid_type?
メソッドがtrueを返すようになっていたのを、falseを返すよう修正しています。
def valid_type?(type) - true + false end
sqlite adapterは必ずtrueを返すようにしたい為にtrueを返すようになっていたようなのですが、本来このチェックは各connection adapterで行うべきもの(mysql adapter、postgresql adapterは行っている)で、sqlite adapterの為にtrueを返すのはおかしいだろう、という事でAbstractAdapter
のvalid_type?
はfalseを返すようにし、代わりにSQLite3Adapter
クラスvalid_type?
メソッドを追加し、そちらでtrueを返すように修正しています。
CI: allow JRuby build to fail, too flaky to be useful
.travis.yml
の修正です。
allow_failures
にjruby-9.0.5.0
を追加しています。buildが不安定だからですかね。
Do not cache ActiveSupport::TimeZone#utc_offset
activesupport/lib/active_support/values/time_zone.rb
の修正です。
ActiveSupport::TimeZone
クラスでutc offsetの値をキャッシュしていたのを、キャッシュしないよう修正しています。
アプリ動作中に夏時間になってしまった場合、utc offsetの値が変わってしまうからキャッシュしないようにしたようです。夏時間大変そう。
Merge pull request #24641 from rafaelfranca/fix-per-form-token-with-full-url https://github.com/rails/rails/commit/9364d50654a791e6405b0a14854ab08cd5420cab
actionpack/lib/action_controller/metal/request_forgery_protection.rb
の修正です。
per-form tokenを生成する際に、schemaとhostの情報を使用しないよう修正しています。
def normalize_action_path(action_path) - action_path.split('?').first.to_s.chomp('/') + uri = URI.parse(action_path) + uri.path.chomp('/') end
pathの比較だけをしたいので、schema、hostの情報は不要な為。また、schema、hostの情報が含まれてしまっていると、tokenの比較処理でエラーになってしまう為のようです。
Clear ActionMailer deliveries on setup and teardown
actionmailer/lib/action_mailer/test_case.rb
の修正です。
ActionMailer::TestCase
クラスのsetupとteardownでActionMailer::Base.deliveries
をclearするよう修正しています。
Little perfomance fix for Array#split.
activesupport/lib/active_support/core_ext/array/grouping.rb
の修正です。
Array#split
で、不要なconcat処理等を行わないようリファクタリングを行っています。
Fix typo in Rails Guides [ci skip]
rails guideのConfiguring Rails Applications
の修正です。
compatibility
をcompatability
にタイポしている箇所があったのを修正しています。