Shared Access Signature generation for Azure

I've implemented this for generating SAS for blobs on azure storage. was not suitable, because it depends on the deprecated version of celluloid and is not actively mainained.


url = ' '
  ENV['AZURE_STORAGE_ACCESS_KEY'],  # Here should be your azure access key
  ENV['AZURE_STORAGE_ACCOUNT'],     # Here should be your storage account name
  url,                              # URL to sign
  signedpermissions: 'r'            # Read-only
  signedexpiry: + (60 * 5) # 5 minutes after now the link will be expired