Skip to content
New issue

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

New method: Client#upload_file_from_io #83

Merged
merged 1 commit into from
Aug 6, 2019
Merged

New method: Client#upload_file_from_io #83

merged 1 commit into from
Aug 6, 2019

Conversation

moonglum
Copy link
Contributor

@moonglum moonglum commented Aug 2, 2019

This addresses #82

This method allows users to upload a file from IO. This is useful if the file you want to upload is not
read from disk, but for example from an HTTP request.

To have less code duplication, the existing upload_file method now uses the new upload_file_from_io method internally.

@xhocquet
Copy link
Collaborator

xhocquet commented Aug 2, 2019

Thanks 🙏 for the PR @moonglum ! At first glance everything looks good, I'll just do a proper review + run my smoke tests when I get some time this weekend.

@xhocquet xhocquet self-requested a review August 2, 2019 19:10
@moonglum
Copy link
Contributor Author

moonglum commented Aug 3, 2019

Awesome, thanks 👍

Copy link
Collaborator

@xhocquet xhocquet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks all good! Will smoke test before merging + making a release

@xhocquet
Copy link
Collaborator

xhocquet commented Aug 6, 2019

@moonglum Smoke tests look great! If you could make one small change, I'll merge your PR:
Please bump the version to 1.11.0 to reflect the new 'feature', thanks!

This method allows users to upload a file from IO. This is useful if the
file you want to upload is not read from disk, but for example from an
HTTP request.
@moonglum
Copy link
Contributor Author

moonglum commented Aug 6, 2019

@xhocquet Awesome 👍 I bumped the version to 1.11.0 👍

@xhocquet xhocquet merged commit d261c57 into cburnette:master Aug 6, 2019
@xhocquet
Copy link
Collaborator

xhocquet commented Aug 6, 2019

@moonglum Congrats and thank you for the contribution! Should be out on Rubygems shortly :)

@moonglum moonglum deleted the upload-file-from-io branch August 7, 2019 06:09
@moonglum
Copy link
Contributor Author

moonglum commented Aug 7, 2019

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants