Created
January 28, 2012 03:27
-
-
Save mpage/1692408 to your computer and use it in GitHub Desktop.
Simple script to resolve dependencies in a Gemfile without installing them
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 'bundler' | |
unless ARGV.size == 1 | |
puts "Usage: bundle_resolver.rb [/path/to/gemfile]" | |
exit 1 | |
end | |
defn = Bundler::Definition.build(ARGV[0], nil, nil) | |
defn.resolve_remotely! | |
defn.specs.each do |spec| | |
puts "#{spec.name} #{spec.version}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment