Skip to content

Instantly share code, notes, and snippets.

@jordansissel
Created November 23, 2013 00:16
Show Gist options
  • Save jordansissel/7609084 to your computer and use it in GitHub Desktop.
Save jordansissel/7609084 to your computer and use it in GitHub Desktop.
require "rubygems"
require "pry"
require "find"
cache = {}
Gem::Specification.find_all do |gemspec|
gemspec.require_paths.each do |lib|
prefix = File.join(gemspec.full_gem_path, lib)
puts prefix + "/"
end
end
% GEM_HOME=$PWD/vendor/bundle/jruby/1.9 GEM_PATH= RUBYLIB=$PWD/lib ruby gemflat.rb | xargs sh -c 'rsync -av "$@" build/flatgems2/' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment