Skip to content

Instantly share code, notes, and snippets.

@julik
Created January 13, 2014 10:24
Show Gist options
  • Save julik/8397831 to your computer and use it in GitHub Desktop.
Save julik/8397831 to your computer and use it in GitHub Desktop.
Dependency explorer - for when you desperately need to find which pre-release gem version added some stupid dependency you don't want.
require 'open-uri'
require 'pp'
gemname = 'sass'
arr = Marshal.load(open("https://rubygems.org/api/v1/dependencies?gems=#{gemname}"))
arr.sort! do | g1, g2 |
Gem::Version.new(g1[:number]) <=> Gem::Version.new(g2[:number])
end
# Now go grep for those dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment