Mapping Gems to Git Repositories
It would be nice to be able to map a gem hosted here with its Github repository, if there is one.
What I'm trying to do is, when I install a new gem, to have a script I can run that iterates over my installed gems and clones their repos for me to inspect (for the sake of curiosity, education, and to see what I might be interested in contributing to).
Here's what I have so far:
#!/bin/bash
WATCHING_DIRECTORY=~/Awesome/Projects/Watching;
cd $WATCHING_DIRECTORY;
for GEM in `gem list --no-version --no-details`
do
# Here's where I'd get the Github repository link from rubygems.org
GITHUB_REPOSITORY="http://rubygems.org/gems/$GEM/repository"; # for example
if [ ! -n "$xyz" ]
then
git clone $GITHUB_REPOSITORY
fi
done
What do you think?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by John Barnette on 17 Jun, 2010 02:38 PM
We're working on additions to the gemspec that allow arbitrary metadata like this. It's hard, and everyone's really busy, so it's taking way too long. Once we do that, though, it'll be very easy to expose information like this.
John Barnette closed this discussion on 17 Jun, 2010 02:38 PM.
David Cole re-opened this discussion on 17 Jun, 2010 02:52 PM
3 Posted by David Cole on 17 Jun, 2010 02:52 PM
Awesome. You guys rock. Thanks so much for such a great service!
Support Staff 4 Posted by John Barnette on 17 Jun, 2010 02:56 PM
:-)
John Barnette closed this discussion on 17 Jun, 2010 02:56 PM.