frozon / passbook

Passbook gem let's you create pkpass for passbook iOS 6
MIT License
235 stars 65 forks source link

File output causes IOError because of temp_file.close #48

Open jeffblake opened 9 years ago

jeffblake commented 9 years ago

Removing the call to .close will fix it. You can't access an instance of Tempfile after close is called. Perhaps adding another method like pass.cleanup! that closes the temp file is a good idea.

frozon commented 9 years ago

Hi, Could you please provide a use case in order to reproduce this IOError