ref2bibtex (rubygems): Ok, maybe a bit more, you can pass a DOI and get the bibtex string back too.
Keywords: api|bibtex|crossref|doi|ruby