]> cat aescling's git repositories - mastodon.git/commit
Fix Cocaine::ExitStatusError when upload small non-animated GIF (#5489)
authorunarist <m.unarist@gmail.com>
Thu, 26 Oct 2017 13:48:35 +0000 (22:48 +0900)
committerGitHub <noreply@github.com>
Thu, 26 Oct 2017 13:48:35 +0000 (22:48 +0900)
commit4f337c020a7ca7a77086af5021c9c152fa1f07fc
tree02a9e15905b981712e9dc056123f760b42e21065
parent02f7f3619a2af35ec29aface76bd6b5ba0f1a725
Fix Cocaine::ExitStatusError when upload small non-animated GIF (#5489)

Looks like copied tempfile need to be flushed before further processing. This issue won't happen if the uploaded file has enough file size.
lib/paperclip/gif_transcoder.rb
spec/fixtures/files/mini-static.gif [new file with mode: 0644]
spec/models/media_attachment_spec.rb