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/ documentation: http://bogomips.org/mahoro/
Gemfile gem 'mahoro', '~> 0.4'
install gem install mahoro