Created
November 18, 2013 12:52
-
-
Save krisleech/7527298 to your computer and use it in GitHub Desktop.
Get list of gems which are being pulled from git repo's.
This file contains 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
Bundler::LockfileParser.new(Bundler.read_file(Rails.root.join("Gemfile.lock"))).dependencies | |
.reject { |dep| dep.source.nil? } | |
.map { |dep| [dep.name, dep.source.path.to_s.split('-').last] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment