Skip to content

Instantly share code, notes, and snippets.

@jeroenvandijk
Created February 22, 2011 11:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroenvandijk/838550 to your computer and use it in GitHub Desktop.
Save jeroenvandijk/838550 to your computer and use it in GitHub Desktop.
Search for strings in your gems
require 'rubygems'
require 'bundler'
print Bundler.load.specs.map(&:full_gem_path).join(' ')

Search for strings in your gems

Prerequisites

  • you should use bundler

  • ack should be installed

    brew install ack

Command

ack <search-string-here> $(ruby gems_dirs.rb)    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment