Skip to content

Instantly share code, notes, and snippets.

@matasar
Created May 29, 2009 21:00
Show Gist options
  • Save matasar/120207 to your computer and use it in GitHub Desktop.
Save matasar/120207 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# The "real" count of rubygems on github
lines = `gem list -r -s http://gems.github.com`.split("\n")
gems = lines.map{|line| line.split('-')[1].split[0]}.uniq
puts gems.size
# Outputs 3140 as of this writing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment