views:

105

answers:

2

I am trying to find out how many times a gem was installed via gem install or gem update.

For example, Watir 1.6.2:

I have been told that 4,027 does not include installs made via gem install or gem update. Is that information correct? If yes, where can I find the numbers for gem install and gem update? I have looked everywhere I could think of at rubyforge, but no luck.

+1  A: 

With gemcutter being the new canonical source for gems, you'll have better luck with these statistics in the future. All future gem installs will go through gemcutter. Unfortunately, I'm pretty sure the old rubyforge download numbers are just web downloads; they don't include gem install or gem update stats.

I'm not sure if the gem install stats exist in any shape or form from the old rubyforge platform, but the person to email would be Tom Copeland.

Ryan McGeary
Thanks, I already contacted Tom, and as you can probably see he already answered. :)
Željko Filipin
+5  A: 

Yup, I hope to migrate all the download stats over to gemcutter... although we're going to have to do that carefully since there are about 50M rows. That said, here's what I've got for watir-1.6.2 on RubyForge:

gforge=> select count(*) from gem_downloads where gem_name = 'watir-1.6.2.gem';
 count 
-------
 29169
(1 row)
tomcopeland
I can't believe that the sysadmin of RubyForge answers this question with a SQL query showing the raw data and gets no upvotes for this. Duly corrected. BTW: Thanks for all those years of awesome service!
Jörg W Mittag
Thanks Tom. So the short answer is: `gem install` and `gem update` stats are not public at rubyforge, but it will be visible on gemcutter soon?
Željko Filipin
Heh, thanks Jorg! Thanks to Zeljko for letting me know this question was up here. Also, Zeljko, those rubyforge stats are pretty much just static now since all downloads are coming from gemcutter... but hopefully we can make those public soon by just glomming them into the gemcutter database.
tomcopeland