Parser for BibTeX files written in Ruby. No dependencies (except Test::Unit if you need to run the tests).
By Nick Gasson (www.doof.me.uk)
Example of usage:
require ‘rubygems’ require ‘bibtex’
BibTeX::Parser.parse(‘references.bib’).map do |entry|
puts entry[:Title]
puts entry[:Year]
entry
end
Installation:
gem sources -a gems.github.com gem install aurels-rbib