Skip to content

Instantly share code, notes, and snippets.

@thenoseman
Last active August 29, 2015 13:55
Show Gist options
  • Save thenoseman/8689127 to your computer and use it in GitHub Desktop.
Save thenoseman/8689127 to your computer and use it in GitHub Desktop.
list gems bundler_only_in_production
Bundler.setup(:production).dependencies.select { |g| g.groups.include?(:default) || g.groups.include?(:production) }
graph = Bundler::Graph.new(Bundler.load, "/dev/null").relations["development"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment