Date | Commit message (Collapse) |
|
Using an ext/ directory is easier to grok for RubyGems
|
|
This can make Mahoro easier-to-use in multi-threaded apps
where magic concurrency is not required. For real concurrency,
it is recommended users create per-thread Mahoro objects.
|
|
Pathname (and some other classes) are implemented this way and
Ruby 1.9+ respects #to_path on all File.open calls.
|
|
Different versions/installations of libmagic may return
different results.
|
|
Just covering all of our bases.
|
|
No need to convert things twice when once is enough.
|
|
It's a bug in user code if we try to open files with '\0' in it.
|
|
we have a default "setup" method nowadays
|
|
libmagic seems to vary between different OSes, and we're
not the only ones with this problem
ref:
http://search.cpan.org/~fitzner/File-LibMagic-0.96/LibMagic.pm#BUGS
|
|
|