From: David Unric Date: 2012-09-08T01:25:11+09:00 Subject: How to patch ruby's gem before an install ? Hi, got stuck and cann't find appropriate guide how can I patch gem package before it gets installed. For example I'm trying to fix gem for Gosu library: 1. download the gem with "gem fetch gosu" 2. extract contents of the gem with "gem unpack gosu-0.7.45.gem" 3. apply a patch: cd gosu-0.7.45 && patch -p1 /path/to/patch/fix_cflags.patch 4. ??? how to rebuild a gem from modified sources ? I cann't find the original gemspec. 5. ??? install modified gem with gem install ./gosu-0.7.45.gem Any idea ? Thx, David -- Posted via http://www.ruby-forum.com/.