Created
August 28, 2008 00:39
-
-
Save mattetti/7620 to your computer and use it in GitHub Desktop.
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
specs = {} | |
elements = %w[ merb extlib merb-core merb-more merb-action-args merb-assets merb-builder merb-cache merb-freezer merb-gen merb-haml merb-mailer merb-parts merb_activerecord merb_helpers merb_sequel merb_param_protection merb_test_unit merb_stories] | |
elements.each do |name| | |
dependency = Gem::Dependency.new name, nil | |
Gem.source_index.search(dependency).each do |spec| | |
specs[spec.full_name] = spec | |
end | |
end | |
deps = specs.values.sort.map do |spec| spec.dependencies.map{|d| "#{d.name}" } end.flatten.uniq | |
print "Recursive dependencies: \n" | |
deps.each{|dep| print " #{dep}\n"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment