An interface to libmagic to determine file types using "magic" numbers. This can be used in place of calling the file(1) command in Ruby scripts. Shu-yu Guo is the original author but all maintenance is handled by Eric Wong nowadays. source: http://bogomips.org/mahoro.git/
Gemfile gem 'mahoro', '~> 0.3'
install gem install mahoro -v 0.3