Skip to content

Commit

Permalink
Merge pull request #2444 from inkoop/backblaze-private-bucket-support
Browse files Browse the repository at this point in the history
Backblaze private bucket support
  • Loading branch information
mshibuya committed Feb 16, 2020
2 parents 9a37fc9 + 3dfacea commit 8964775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/carrierwave/storage/fog.rb
Expand Up @@ -196,7 +196,7 @@ def attributes
# [NilClass] no authenticated url available
#
def authenticated_url(options = {})
if ['AWS', 'Google', 'Rackspace', 'OpenStack', 'AzureRM', 'Aliyun'].include?(@uploader.fog_credentials[:provider])
if ['AWS', 'Google', 'Rackspace', 'OpenStack', 'AzureRM', 'Aliyun', 'backblaze'].include?(@uploader.fog_credentials[:provider])
# avoid a get by using local references
local_directory = connection.directories.new(:key => @uploader.fog_directory)
local_file = local_directory.files.new(:key => path)
Expand Down
2 changes: 1 addition & 1 deletion spec/storage/fog_helper.rb
Expand Up @@ -483,7 +483,7 @@ def check_file
end

it "should have an authenticated_url" do
if ['AWS', 'Rackspace', 'Google', 'OpenStack', 'AzureRM', 'Aliyun'].include?(@provider)
if ['AWS', 'Rackspace', 'Google', 'OpenStack', 'AzureRM', 'Aliyun', 'backblaze'].include?(@provider)
expect(@fog_file.authenticated_url).not_to be_nil
end
end
Expand Down

0 comments on commit 8964775

Please sign in to comment.