なるようになるブログ

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

rails commit log流し読み(2018/02/21)

2018/02/21分のコミットです。

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


Merge pull request #32026 from bogdanvlviv/improve-30941

Active Jobの修正です。

ActiveSupport::TimeWithZone用のserializerを追加、及び、serializerのdocのグラマー、フォーマットの修正等を行っています。


Correct Range header syntax

activestorage/app/models/active_storage/identification.rbの修正です。

ActiveStorage::Identification#identifiable_chunkメソッドでRangeヘッダーの指定方法に誤りがあったのを修正しています。


Undocument ActiveStorage::Identification

activestorage/app/models/active_storage/identification.rbのdocの修正です。

ActiveStorage::Identificationクラスに:nodoc:を指定しています。


Hoist update for clarity

activestorage/app/models/active_storage/blob/identifiable.rbactivestorage/app/models/active_storage/identification.rbの修正です。

ActiveStorage::Blob::Identifiable moduleのidentifyメソッドで実際の更新処理をActiveStorage::Identificationクラスに委譲していたのを、identifyメソッドの中で実際の更新処理を行うようにしています。

その方がわかりやすいから、とのこと。


CI with jruby-head compatible with Ruby 2.4.1

.travis.ymlの修正です、

CIで使用するJRubyのバージョンを9.1.15.0からheadに変更しています。

今のmasterはRuby 2.4.1以上のみをサポートするようになったのですが、リリースされているJRubyMRI 2.3系対応のみで、2.4系対応のバージョンはまだリリースされていない為、headを参照するようにしています。


Allow S3 tests against buckets in other regions

activestorage/test/controllers/direct_uploads_controller_test.rbactivestorage/test/service/s3_service_test.rbの修正です。

Active StorageのS3にアップロードする場合のテストで、テスト内のbucketsのチェックがus-east-1のみを想定したチェックになっていたのを、他のregionの場合でもテストが通るようbucketsのチェックを修正しています。


Add note to Active Storage guide about S3 permissions [ci skip]

rails guideのActive Storage Overviewの修正です。

Amazon S3 Serviceの項に必要なS3のpermissionsについての説明を追加しています。


Update to sinatra 2.0.1

Gemfile.lockの修正です。

sinatra(Active Jobのテストで使用している)のバージョンを更新しています。security vulnerabilityがあった為。

参考:NVD - CVE-2018-7212