Skip to content

Instantly share code, notes, and snippets.

@hotchpotch
Created October 20, 2010 03:33
Show Gist options
  • Save hotchpotch/635710 to your computer and use it in GitHub Desktop.
Save hotchpotch/635710 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'pathname'
gem 'bundler'
require 'bundler'
files = Bundler.load.specs.map do |spec|
path = Pathname.new(spec.full_gem_path)
spec.lib_files.map {|file| path.join(file).to_s }
end.flatten.grep /\.rb$/i
puts files.join(" ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment