Created
November 9, 2011 21:21
-
-
Save squarism/1353085 to your computer and use it in GitHub Desktop.
Read rubygems specs file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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