Index: /server/fedora/config/gems.py
===================================================================
--- /server/fedora/config/gems.py	(revision 760)
+++ /server/fedora/config/gems.py	(revision 761)
@@ -4,12 +4,15 @@
 Joe Presbrey <presbrey@mit.edu"""
 
-import commands, re
+import commands, re, sys
 
 def scripts_gems():
-	cout = commands.getoutput('gem list --local')
-	return re.findall('([^\s]+)\s\([0-9\.]+\)', cout)
+    o = commands.getoutput('gem list --local')
+    return map(lambda x: len(x) > 1 and (x[0], x[1].split(', ')) or x,
+               re.findall('([^\s]+)\s\(([^\)]+)\)', o))
 
 if __name__ == "__main__":
-	for x in gems_local():
-		if x == 'sources': continue
-		print x
+    for x in scripts_gems():
+        if x[0] == 'sources': continue
+        #print >>sys.stderr, x
+        for y in x[1]:
+            print 'gem install %s --version %s -y' % (x[0], y)
