A present to the maintainers of the gentoo ruby herd

May 18, 2008 at 7:30 pm (Uncategorized) (, , , , )

A script that I liked to use, when I was a gentoo dev, was compare_gems.rb.

This script runs through a repository using Paludis::NoConfigEnvironment, so that it’s not actually necessary to configure paludis1. It grabs a list of all the packages that inherit the gems.eclass and then queries rubygems to find out which packages in the repository are lagging behind the published gems. It outputs all this infomation into a nice pretty html2 file.

This helped me to keep the gem ebuilds that I used up to date, and also told me all the other gems we had that had fallen behind. It’s not 100% perfect on matching, sometimes the gentoo package names don’t match the gem name, and it won’t do anything clever, like checking the src_uri, to find out what gem it should really match

1. This isn’t strictly speaking true at the moment, as I’ve just jiggled it around to work with the latest trunk of paludis, so you’d need paludis-scm installed to use it, but I’m sure ciaranm will tag another release soon.

2. OK, this is also somewhat truth deficient, as I’ve misplaced the stylesheet. The only copy I had was on dev.gentoo.org. I would ask for it back, as I understand they don’t generally delete your homedir straight away, but robbat2 is away, and he’s the only one I trust to do it competently, having seen another member of team infra announce “HERE’S YOUR HOME DIR IN A TAR >>> http://free.for.all” in a public IRC channel to someone else.

Permalink Leave a Comment