2018/03/13分のコミットです。
CHANGELOGへの追加はありませんでした。
Remove path config option from Azure service
activestorage/lib/active_storage/service/azure_storage_service.rb
の修正です。
Azure Storage Serviceのconfigからpath
オプションを削除しています。
Azure Storage Serviceではpath
オプションにblob storageのエンドポイントを指定します。が、Active Storageとしては、エンドポイントはblobのclientから取得するようになっています。
そのため、path
を明示的に指定する必要が無い、かつ、path
にエンドポイントを直接するには今は引数が足りない、という問題もあった為、path
は削除したとの事です。
Update ASt test services config
.travis.yml
、
activestorage/test/service/configurations.yml.enc
の修正です。
先のpath
オプションを削除した対応で、CIで使うようのconfigファイルの更新が漏れていたのを修正しています。
Remove path option from AzureStorage config
railties/lib/rails/generators/rails/app/templates/config/storage.yml.tt
の修正です。
デフォルトで生成されるstorage.yml
からpath
オプションを削除いています。
Redis cache store: fix constructing with a Redis instance
activesupport/lib/active_support/cache/redis_cache_store.rb
の修正です。
RedisCacheStore.build_redis
メソッドでRedis instanceを生成する際に、call
メソッドを呼び出すかどうかのチェックにrespond_to?(:call)
を使用していたのを、is_a?(Proc)
でチェックするよう修正しています。
- if redis.respond_to?(:call) + if redis.is_a?(Proc) redis.call
引数にProc
が渡された場合に実行するようのチェックだったのですが、Redis
オブジェクトにもcall
メソッドが定義されており、Redis
オブジェクトが渡された場合にも誤ってcall
メソッドが実行されてしまっていた為、左記を避ける為、Proc
がどうかをチェックするようにしています。
Fix Azure signed URL generation with newer client lib
activestorage/lib/active_storage/service/azure_storage_service.rb
の修正です。
Active Storageでsigned URLを生成する際に、独自の生成ロジックでURLを生成したいてたの、client libraryが提供しているURL生成用のメソッドを使用するよう修正しています。
.travis.yml
の修正です。
先のコミットの際に何故か壮大にTravisの設定ファイルを壊してしまっていたのを、元に戻しています。