From 0920b02c1d8abfddc6a611eb4f933a24af8eb2bd Mon Sep 17 00:00:00 2001 From: Petrik Date: Mon, 23 Aug 2021 21:17:59 +0200 Subject: [PATCH] Upgrade azure-storage-blob to use at least 2.0.0 azure-storage-blob 1.1.0 supports ruby 1.9.3 to 2.5: https://github.com/Azure/azure-storage-ruby/blob/v1.1.0-common/common/README.md azure-storage-blob 2.0.0 supports ruby 2.3 to 2.7: https://github.com/Azure/azure-storage-ruby/blob/v2.0.0-blob/common/README.md --- Gemfile | 2 +- Gemfile.lock | 2 +- .../lib/active_storage/service/azure_storage_service.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index acac4907fb..d2cc1b567c 100644 --- a/Gemfile +++ b/Gemfile @@ -86,7 +86,7 @@ end group :storage do gem "aws-sdk-s3", require: false gem "google-cloud-storage", "~> 1.11", require: false - gem "azure-storage-blob", require: false + gem "azure-storage-blob", "~> 2.0", require: false gem "image_processing", "~> 1.2" end diff --git a/Gemfile.lock b/Gemfile.lock index 15022cd02a..e9135bec98 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -538,7 +538,7 @@ DEPENDENCIES activerecord-jdbcsqlite3-adapter (>= 1.3.0) aws-sdk-s3 aws-sdk-sns - azure-storage-blob + azure-storage-blob (~> 2.0) backburner bcrypt (~> 3.1.11) benchmark-ips diff --git a/activestorage/lib/active_storage/service/azure_storage_service.rb b/activestorage/lib/active_storage/service/azure_storage_service.rb index 1e1c646e1d..e078a98d0f 100644 --- a/activestorage/lib/active_storage/service/azure_storage_service.rb +++ b/activestorage/lib/active_storage/service/azure_storage_service.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -gem "azure-storage-blob", ">= 1.1" +gem "azure-storage-blob", ">= 2.0" require "active_support/core_ext/numeric/bytes" require "azure/storage/blob"