about summary refs log tree commit homepage
path: root/test.rb
DateCommit message (Collapse)
2013-04-05tree reorganization + various maint fixes v0.4
Using an ext/ directory is easier to grok for RubyGems
2013-04-05add optional thread-safety module
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.
2013-04-05Mahoro#file supports objects with #to_path support
Pathname (and some other classes) are implemented this way and Ruby 1.9+ respects #to_path on all File.open calls.
2013-04-04test: be more flexible with Mahoro::NONE matches
Different versions/installations of libmagic may return different results.
2011-02-27more '\0' byte in C string avoidance
Just covering all of our bases.
2011-02-27avoid needless double String conversion
No need to convert things twice when once is enough.
2011-02-27disallow '\0' in C strings
It's a bug in user code if we try to open files with '\0' in it.
2011-01-31test: do not use initialize in testcase
we have a default "setup" method nowadays
2011-01-31test: workaround for mime output variation
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
2011-01-30initial import v0.1