How do (or can I) hack a gem temporarily while looking for a bug?
Posted
by Tom Andersen
on Stack Overflow
See other posts from Stack Overflow
or by Tom Andersen
Published on 2010-06-13T22:04:35Z
Indexed on
2010/06/13
22:12 UTC
Read the original article
Hit count: 138
I have a gem installed in my home directory on a laptop (eg not THE server). I have installed ruby 1.9.1 and also some other gems, notably right_aws - which allows access to s3, etc with ruby.
All works, except there is a bug when I do a query on SimpleDB, and the returned list of items includes an item with any two byte utf-8 character in its itemName().
So I look through the sources of the right_aws gem installed on my machine, and I can see some places where I would like to test a fix. If I edit the file, save changes, (needing a password), then restart the server (script/server), it ignores my changes.
I am quite new at ruby - do you have to 'compile' or other similar move to get the source code changes made take effect?
I can see the edited file is changed by viewing it in terminal, etc.
© Stack Overflow or respective owner