Name |
Last commit
|
Last Update |
---|---|---|
lib | ||
script | ||
test | ||
.gitignore | ||
.travis.yml | ||
.yardopts | ||
Gemfile | ||
LICENSE | ||
README.md | ||
Rakefile | ||
mimemagic.gemspec |
Previously if we passed in an IO object which doesn't respond to #seek, MimeMagic would read the whole IO into memory. And this is exactly the type of objects that the Shrine file upload library deals with. However, we can also "seek" by blank-reading that many bytes, and always rewinding to the beginning, which is what we've implemented in this change. This change also doesn't require IOs to respond to #binmode.
Name |
Last commit
|
Last Update |
---|---|---|
lib | Loading commit data... | |
script | Loading commit data... | |
test | Loading commit data... | |
.gitignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
.yardopts | Loading commit data... | |
Gemfile | Loading commit data... | |
LICENSE | Loading commit data... | |
README.md | Loading commit data... | |
Rakefile | Loading commit data... | |
mimemagic.gemspec | Loading commit data... |