about summary refs log tree commit homepage
DateCommit message (Collapse)
2020-02-22mahoro 0.5 HEAD v0.5 master
URL updates to YHBT.net due to bogomips expiring, and librelist being dead.
2020-02-22website: do not delete when publishing
2020-02-22update URLs to YHBT.net
bogomips.org is going away as I can't afford it. librelist has also been dead for years, now, so setup a public-inbox in its place.
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-05cleanup: make cMahoro an automatic variable
We do not access cMahoro outside of Init_mahoro, so it does not need to be global (rb_define_class takes care of making the Object VM-global).
2013-04-05split out nogvl_compat header
This file may be used by other extensions, so make it easy to share.
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-05release GVL if filesystem I/O is required
Filesystem I/O has unpredictable latency, release the GVL in these cases since we will never know how long it lasts. We enable interrupt processing since we may be operating on FIFOs. (Matz) Ruby 1.9 and 2.0 releases GVL for all file system operations, too.
2013-04-04test: be more flexible with Mahoro::NONE matches
Different versions/installations of libmagic may return different results.
2013-04-04add RDoc documentation
This should help developers find their way in case they are offline and unable to access the (unmaintained) website.
2013-04-03gemspec: cleanup and update rdoc options
In case users want to install documentation with their RubyGems
2013-04-03INSTALL: improve documentation for deb/rpm-based distros
This should make it easier to install mahoro.
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