How do (or can I) hack a gem temporarily while looking for a bug?
- by Tom Andersen
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.