Pure Ruby version of github-linguist