-
Notifications
You must be signed in to change notification settings - Fork 412
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
Attachment download contents #422
Conversation
Neat, thanks! The only note I have is that it's probably preferable to return a Tempfile because the contents may be quite large and they'll otherwise be kept in memory. |
@morphine00 I provided the This way, there is one method for those who want to handle large files without reading into memory and another method for those who want an easy way to read the contents in a string object. |
Ah, I missed that detail, my apologies. |
@marlinpierce I'm so sorry, I know it's been a while. When you have a moment, could you update your PR to resolve the conflicts? If you can't get to it now I completely understand, and in that case I'll make a new PR with your changes. I'd like to get this in for you. Thanks! |
…nt-download # Conflicts: # spec/jira/resource/attachment_spec.rb
@bobbrodie the merge conflict is resolved. I'm looking forward to the |
Sounds great, thanks @marlinpierce. I've started a thread here about the next version. I think that being since it's been so long, and Ruby <= 3.0 are no longer supported, it probably makes sense to release a 3.0.0 version of the gem without those versions included. If you're in a spot where that won't work, let's chat and we can sort out a 2.4.0 release that only has backward compatible changes. If anyone else has feedback on that, I'd love to hear from others as well. |
I do like the charm of the version being 0.2.4. The extra zero is a hint that it is also the year. |
Adds methods to attachments to download the attachment contents.