Closed vipulnsward closed 4 months ago
The recent updates focus on improving the Uploadcare::File.remote_copy
method by fixing an input parameter type error and altering its return type to a string. Additionally, variable names in the REST API example script were clarified, and HTTP interactions for remote file copying were captured. Other changes include modifying the form_data_for
method in the multipart upload client and enhancing VCR configuration to filter sensitive data.
File Path | Change Summary |
---|---|
CHANGELOG.md |
Documented the fix for Uploadcare::File.remote_copy method and other changes. |
api_examples/rest_api/post_files_remote_copy.rb |
Renamed variables for clarity in the remote file copy operation. |
lib/uploadcare/entity/file.rb |
Modified remote_copy method to return a string directly. |
lib/uploadcare/client/multipart_upload_client.rb |
Removed file parameter in form_data_for method's super call. |
spec/fixtures/vcr_cassettes/rest_file_remote_copy.yml |
Added new VCR cassette capturing HTTP interactions for remote file copying. |
spec/support/vcr.rb |
Introduced sensitive data filtering for public and secret keys in VCR configuration. |
spec/uploadcare/entity/file_spec.rb |
Updated tests to reflect changes in copying files to remote storage and added a test for storage errors. |
In the land of code, a change was made,
To fix the paths where errors played.
Remote copies now return with grace,
Variables renamed, a clearer space.
Sensitive keys hidden from view,
Uploadcare's flow, refreshed and new.
🐇✨
Description
Checklist
Summary by CodeRabbit
Bug Fixes
Uploadcare::File.remote_copy
method to prevent errors related to input parameter type.Enhancements
remote_copy
method to return a string instead of aFile
entity instance.Security
<uploadcare_public_key>
and<uploadcare_secret_key>
) in test configurations.Testing