Date | Commit message (Collapse) |
|
URL updates to YHBT.net due to bogomips expiring,
and librelist being dead.
|
|
|
|
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.
|
|
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.
|
|
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).
|
|
This file may be used by other extensions, so make it easy
to share.
|
|
Pathname (and some other classes) are implemented this way and
Ruby 1.9+ respects #to_path on all File.open calls.
|
|
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.
|
|
Different versions/installations of libmagic may return
different results.
|
|
This should help developers find their way in case they
are offline and unable to access the (unmaintained) website.
|
|
In case users want to install documentation with their RubyGems
|
|
This should make it easier to install mahoro.
|
|
|
|
|
|
Implement the existing singleton class method in terms
of this so we won't leak memory on exceptions.
|
|
|
|
Just covering all of our bases.
|
|
No need to allocate anything at all.
|
|
It's shorter and the library is smaller this way.
|
|
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.
|
|
Don't want people thinking I stole this project! :D
|
|
This allows other RubyGems to depend on us more easily.
|
|
This allows Mahoro to run properly under Ruby 1.9 that
is built with CALC_EXACT_MALLOC_SIZE.
|
|
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
|
|
RSTRING(str)->len no longer works in Ruby 1.9 due to internal
data representation changes for performance.
|
|
|