Skip to content

Instantly share code, notes, and snippets.

@squarism
Created November 9, 2011 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squarism/1353085 to your computer and use it in GitHub Desktop.
Save squarism/1353085 to your computer and use it in GitHub Desktop.
Read rubygems specs file
# mirror rubygems somewhere with rubygems-mirror gem or git clone
# this is huge output, so try adding the ;1 at the end to suppress irb output
specs = Marshal.load open '/tmp/rubygems/specs.4.8'; 1
# get a few gems to play with
few_gems = specs[0...10]
some.find_all {|gem| gem[0] =~ /24/}
# more to do ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment