Created
May 26, 2012 10:32
-
-
Save tuzz/2793300 to your computer and use it in GitHub Desktop.
Speedy gem dependency fetching
This file contains 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
# gem install gem-dependent | |
require 'rubygems/dependent' | |
def gem_dependencies(limit = nil) | |
specs_and_sources = Gem::Dependent.all_specs_and_sources(:all_versions => true) | |
specs_and_sources = specs_and_sources.take(limit) if limit | |
Gem::Dependent.fetch_all_dependencies(specs_and_sources) | |
end | |
puts gem_dependencies(100).inspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yay Ruby!!