Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bhb
Created March 8, 2013 17:08
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 bhb/5118038 to your computer and use it in GitHub Desktop.
Save bhb/5118038 to your computer and use it in GitHub Desktop.
Find all gems in a bundle that have native extensions.
# bundle exec ruby ext_finder.rb
require 'rubygems'
Gem::Specification.each do |spec|
ext = spec.extensions
puts "#{spec.name} (#{spec.version}) has extensions: #{ext}" unless ext.empty?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment