[Rubygems-developers] gem server, gem shortlist links

James Tucker jftucker at gmail.com
Mon Apr 7 11:04:27 EDT 2008

They're broken as of 1.1.0, I use this feature a lot. The link tags  
should link to a local anchor, instead they link to a postfix-url.

Here's a patch:

Index: server.rb
--- server.rb	(revision 1695)
+++ server.rb	(working copy)
@@ -51,7 +51,7 @@
    <p>There are <%=values["gem_count"]%> gems installed:</p>
-  <%= values["specs"].map { |v| "<a href=\"#{v["name"]} 
\">#{v["name"]}</a>" }.join ', ' %>.
+  <%= values["specs"].map { |v| "<a href=\"##{v["name"]} 
\">#{v["name"]}</a>" }.join ', ' %>.


Easy mistake to make, thanks for all the hard work guys.

I'd have written a test, but there's no infrastructure for testing it  
that I could see in the test suite, and it's a very very small fix. :-)

More information about the Rubygems-developers mailing list