Sake for Gems Downloads List

July 17, 2007 Brian Takita

This post was originally written by Brian Takita.

I have a few gems on Rubyforge and I want to track how many of them were downloaded. I found Firefox’s search tools lacking to find my gem rr.

To fix this issue, I made a sake task, named gems:downloads:list, that prints the gem downloads in text.

The source is on caboo.se.

You can install it by using:

sudo gem install sake

sake -i http://pastie.caboo.se/79547.txt gems:downloads:list

sake gems:downloads:list | less

This will give an output like:

------------------------------------------------

|                              Gem | Downloads |

------------------------------------------------

|                            rails |   1194471 |

|                     activerecord |   1121778 |

|                       actionpack |   1054718 |

|                    activesupport |    990851 |

|                     actionmailer |    960759 |

|                 actionwebservice |    948640 |

|                             rake |    860824 |

|                            mysql |    593476 |

|                             fcgi |    230394 |

|                          mongrel |    220370 |

|                          daemons |    167443 |

|                          rmagick |    164537 |

|                       gem_plugin |    153505 |

|                         RedCloth |    147182 |

|                  rubygems-update |    119615 |

|                          net-ssh |    114369 |

|                     sqlite3-ruby |    105796 |

|                       fastthread |     95534 |

|            cgi_multipart_eof_fix |     95399 |

|                           needle |     87718 |

Sake is way cool. It was just too easy to implement and deploy this. Have fun making your own sake tasks.

About the Author

Biography

More Content by Brian Takita
Previous
Creating Multiple Models in One Action
Creating Multiple Models in One Action

One of the issues in my previous post The Controller Action that sparked some interest is the handling of t...

Next
The Controller Formula
The Controller Formula

When I introduce a programmer to Rails I encourage them to read the article Skinny Controller, Fat Model. M...

How do you measure digital transformation?

Take the Benchmark