Skip to content

Instantly share code, notes, and snippets.

@careo
Created June 12, 2009 00:15
Show Gist options
  • Select an option

  • Save careo/128341 to your computer and use it in GitHub Desktop.

Select an option

Save careo/128341 to your computer and use it in GitHub Desktop.
require 'rubygems'
target = ARGV[0]
puts "Searching for gems that depend on: #{target}"
Gem.searcher.find_all("*").each do |g|
g.dependencies.each do |dep|
if dep.name.include? target
p [g.name, g.version.version]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment