Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save randito/2789731 to your computer and use it in GitHub Desktop.
Save randito/2789731 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
# Generate all tags for all gems included by bundler in gems.tags
#
# Basically does the same as "bundle show gemname", except for all gems.
# Interestingly enough, "bundle show" without any arguments falls back to
# "bundle list", otherwise the whole thing could have been a bash one-liner.
require 'bundler'
paths = Bundler.load.specs.map(&:full_gem_path)
system("ctags -R -f gems.tags #{paths.join(' ')}")
@randito
Copy link
Author

randito commented May 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment