We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Similar to the issue in the AWS S3 adapter: fog/fog-aws@412677c
Ruby 3 has deprecated the ability to call Proc.new without a block explicitly passed in.
Proc.new
The api that streams blob contents uses this move, so does not work in Ruby 3+
https://github.com/fog/fog-azure-rm/blob/68ea3f7dd14c0a524146f1e426fa2ad1f6192cc8/lib/fog/azurerm/requests/storage/get_blob.rb#LL8C15-L8C15
It's already capturing the &block in the args anyway, and is an easy patch:
def get_blob_with_block_given(container_name, blob_name, options, &_block)
Rather than implicit Proc.new:
Proc.new.call('', 0, 0)
Pass the block explicitly.
Proc.new(&_block).call('', 0, 0)
Updating each of the instances has allowed me to stream blobs down.
The text was updated successfully, but these errors were encountered:
Explicitly pass block to Proc.new
9d509ed
Fixes compatibility with Ruby 3+ Fixes fog#444
Successfully merging a pull request may close this issue.
Similar to the issue in the AWS S3 adapter: fog/fog-aws@412677c
Ruby 3 has deprecated the ability to call
Proc.new
without a block explicitly passed in.The api that streams blob contents uses this move, so does not work in Ruby 3+
https://github.com/fog/fog-azure-rm/blob/68ea3f7dd14c0a524146f1e426fa2ad1f6192cc8/lib/fog/azurerm/requests/storage/get_blob.rb#LL8C15-L8C15
It's already capturing the &block in the args anyway, and is an easy patch:
Rather than implicit
Proc.new
:Pass the block explicitly.
Updating each of the instances has allowed me to stream blobs down.
The text was updated successfully, but these errors were encountered: