Skip to content

Instantly share code, notes, and snippets.

@sr
Created October 11, 2009 16:06
Show Gist options
  • Save sr/207728 to your computer and use it in GitHub Desktop.
Save sr/207728 to your computer and use it in GitHub Desktop.
Convert bundler's Gemfile into Heroku's .gems
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