From: Jordi Massaguer Pla Date: 2012-09-08T02:06:47+09:00 Subject: Re: How to patch ruby's gem before an install ? Quoting David Unric : > 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 I think you better look for the source code. Gosu is in https://github.com/jlnr/gosu . You can find the link for the source code in rubygems.org. In this case is in github, so you can clone and even fork and do a pull request to request your changes be in the next version for gosu. regards jordi > > Any idea ? > > Thx, David > > -- > Posted via http://www.ruby-forum.com/. > >