なるようになるブログ

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

rails commit log流し読み(2017/12/23)

2017/12/23分のコミットです。

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


Add support for combined MiniMagick transformations

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

Active Storageのvariant処理で、gravityオプションを指定しても反映されないバグがあったのを修正しています。

元々MiniMagickを使っての変換処理では変換処理を単体で指定するようになっていたのですが、gravityについてはcombine_optionsメソッドを使用して他の値と一緒に指定する必要があった為、variantcombine_optionsが指定された際は、値をマージして使用するよう修正しています。


Revert "Remove code duplication in ActiveSupport::Cache"

Cache::Store#expanded_keyメソッドとCache.expanded_keyメソッドの実装が重複していたのを削除した、Remove code duplication in ActiveSupport::Cacheをrevertしています。

Rails 5.2でcache keyにversion timestampsが含まれるようになり、実装が完全に一致しているわけではなくなった為。


Test that cache stores build unversioned keys

activesupport/test/cache/behaviors/cache_store_behavior.rbの修正です。

バージョン管理されていないcache keyを使用した場合のテストを追加しています。


Merge pull request #31538 from yhirano55/add_cloud_service_links_to_readme_in_active_storage

activestorage/README.mdの修正です。

Amazon S3Google Cloud Storage、及び、Microsoft Azure Storageについて説明している箇所に、それぞれのdocへのリンクを追加しています。


[docs] Add mention of removal of HWIA interface from AC:Parameters

rails guideのRuby on Rails 5.1 Release Notesの修正です。

Action PackRemovalsの項に、ActionController::Parametersクラスからdeprecatedになっていた各種メソッド(ActionController::ParametersHashを継承した事により使えたメソッド)を削除した対応についてのエントリーを追加しています。


Use delayed_job master

Gemfileの修正です。

delayed_job gem を使用するのにGitHubのmaterブランチを指定するよう修正しています。

Ruby 2.5でテストを通るようにする為。