Hi, i have a patch to make instiki work with the latest version of ruby : as_clean_logger_rb-fixed.patch But i dont know how to apply it. Any ideas?? Thanks, Chris -- Posted via http://www.ruby-forum.com/.
On 10/03/06, Chris <evilgeenius@gmail.com> wrote:> Hi, > i have a patch to make instiki work with the latest version of ruby : > > as_clean_logger_rb-fixed.patch > > But i dont know how to apply it. Any ideas??Normally you cd to the right directory (usually wherever the gem is installed - look at the patchfile, they normally contain relative pathnames which should help ) and run patch < nameofpatchfile -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/
patch is not recognized from the command line in windows -- Posted via http://www.ruby-forum.com/.
On 3/11/06, Chris <evilgeenius@gmail.com> wrote:> patch is not recognized from the command line in windowsYou can get a windows version of patch here: http://unxutils.sourceforge.net/> -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Bill Guindon (aka aGorilla) The best answer to most questions is "it depends".
I have to be the dumbest developer ever. I have downloaded the "patch" utility and am able to use it via the command line utility. I downloaded the patch that I want (datetime_select_ignores_discard_year_fix.diff). However when run the following line: patch < datetime_select_ignores_discard_year_fix.diff I receive the error: patching file ''date_helper.rb'' Assertion failed: hunk, file patch.c, line 321 This application has requested the Runtime to terminate it in an unusual way. I run this command in the following directory: C:\dev\ruby\lib\ruby\gems\1.8\gems\actionpack-1.12.0\lib\action_view\helpers Horrible.....can''t even apply a patch...now THAT''S sad. Thanks people! -- Posted via http://www.ruby-forum.com/.
Patrick The Hermit wrote:> I have to be the dumbest developer ever.haha! and the baldest.. ;)! patch -R < datetime_select_ignores_discard_year_fix.diff I ran it using cygwin [on 1.1] and had the same problem.. looks like a version issue. i.e. you aint the dumbest [but I got a few canidates tho] Just hack the damn file and makes the changes yourself - look at the file, the - means take that line out, the + means put that line in.. hopefully it''ll be fixed in the next release.. $ -- Posted via http://www.ruby-forum.com/.