Created
January 13, 2014 10:24
-
-
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.
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
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