about summary refs log tree commit homepage
DateCommit message (Collapse)
2011-03-09fix trailing whitespace v0.3
2011-02-27better rdoc for constants
2011-02-27add Mahoro#compile instance method
Implement the existing singleton class method in terms of this so we won't leak memory on exceptions.
2011-02-27add missing constants I found in magic.h
2011-02-27more '\0' byte in C string avoidance
Just covering all of our bases.
2011-02-27avoid needless wrapping of the magic_t with struct
No need to allocate anything at all.
2011-02-27rb_const_set => rb_define_const
It's shorter and the library is smaller this way.
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-31doc: add evidence of maintainership transfer v0.2
Don't want people thinking I stole this project! :D
2011-01-31add gemspec for RubyGems.org
This allows other RubyGems to depend on us more easily.
2011-01-31use xfree() instead of free() in for GC destructor
This allows Mahoro to run properly under Ruby 1.9 that is built with CALC_EXACT_MALLOC_SIZE.
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-31update for Ruby 1.9 compatibility
RSTRING(str)->len no longer works in Ruby 1.9 due to internal data representation changes for performance.
2011-01-30initial import v0.1