Created
October 11, 2009 16:06
-
-
Save sr/207728 to your computer and use it in GitHub Desktop.
Convert bundler's Gemfile into Heroku's .gems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def disable_rubygems; nil; end | |
def source(s); $src = s unless s[/gemcutter/] end | |
def gem(n, v) | |
if Hash === v | |
$stderr.puts "ignoring git gem #{n}" | |
return | |
end | |
puts "#{n} -v#{v}#{$src ? " -s#{$src}": ""}" | |
end | |
load ARGV[0] || "Gemfile" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment