2018/02/01分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Swap encoded image width and height if angle is 90 or 270 degrees
activestorage/lib/active_storage/analyzer/image_analyzer.rb
の修正です。
画像に角度が90度または270度であることを示すEXIFデータが含まれている場合、widthとheightの値を入れ替えるよう修正しています。
Consistent behavior for session and cookies with to_h and to_hash method
actionpack/lib/action_dispatch/middleware/cookies.rb
、
actionpack/lib/action_dispatch/request/session.rb
の修正です。
Session
クラスにto_hash
のaliasとしてto_h
メソッドを、CookieJar
クラスにto_h
のaliasとしてto_hash
メソッドを追加しています。
元々はSession
にはto_hash
、CookieJar
にはto_h
しかなかったのですが、紛らわしかったので、どちらも同じメソッドを使えるようにするためにaliasを追加しています。
activestorage/lib/active_storage/analyzer/image_analyzer.rb
の修正です。
先ほどのwidthとheightの入れ替え処理で、角度の取得処理に誤りがあったのを修正しています。
Update to latest rubies (2.2.9, 2.3.8 and 2.4.3) on Travis CI.
.travis.yml
の修正です。
CIで使用するRubyのバージョンを更新しています。
Use the full class name for the JSON coder, as there may be another
activestorage/app/models/active_storage/blob.rb
の修正です。
ActiveStorage::Blob
クラスでJSON coderを指定するのにフルクラス名を指定するようにしています。
- store :metadata, accessors: [ :analyzed, :identified ], coder: JSON + store :metadata, accessors: [ :analyzed, :identified ], coder: ActiveRecord::Coders::JSON
JSON
だけだと違うnamespaceのクラスが使用されてしまう事がある為。
representable で問題になっていたようです。Error while starting server with Rails 5.2.0.rc1
Add changelog entry for #31844
actionpack/CHANGELOG.md
の修正です。
先のsession
にto_h
メソッドを、CookieJar
にto_hash
メソッドをそれぞれ追加した対応についてCHANGELOGにエントリーを追加しています。