Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

home :: https://github.com/supportify/paperclip-azure
code :: https://github.com/supportify/paperclip-azure
rdoc :: https://www.rubydoc.info/docs/paperclip-azure
rdoc :: http://www.rubydoc.info/github/supportify/paperclip-azure/master/
bugs :: https://github.com/supportify/paperclip-azure/issues

== DESCRIPTION:
Expand Down
2 changes: 1 addition & 1 deletion lib/paperclip/azure.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Paperclip; end

class Paperclip::Azure
VERSION = "1.0.3"
VERSION = "1.0.4"
end
2 changes: 2 additions & 0 deletions lib/paperclip/storage/azure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def azure_storage_client
config[opt] = azure_credentials[opt] if azure_credentials[opt]
end

config[:storage_blob_host] = "https://#{azure_base_url}"

@azure_storage_client ||= ::Azure::Storage::Client.create config
end

Expand Down
2 changes: 1 addition & 1 deletion lib/paperclip/storage/azure/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Environment
}

def self.url_for(account_name, region = nil)
"#{account_name}.blob.#{ENVIRONMENT_SUFFIX[region || :global]}"
"#{account_name}.blob.#{ENVIRONMENT_SUFFIX[(region || :global).to_sym]}"
end
end
end
Expand Down