How (or can I) hack a gem temporarily looking for a bug?

I have a gem installed in my home directory on a laptop (for example, not on a server). I installed ruby ​​1.9.1, as well as some other gems, especially right_aws - which allows you to access s3, etc. With ruby.

Everything works, except for the error when I make a request in SimpleDB, and the returned list of elements includes an element with any double-byte utf-8 character in its itemName ().

So, I look through the sources of the right_aws gem installed on my machine, and I see some places where I would like to check the fix. If I edit the file, save the changes (you need a password), then restart the server (script / server), it ignores my changes.

I am very new to ruby ​​- do you need to “compile” or some other similar move for the source code changes to take effect?

I see that the edited file is changing, viewing it in the terminal, etc.

+3
source share
2 answers

Are you sure you are editing the version that the application is launching? If you use the Bundler, it will upload it to a separate folder (hidden in your home directory). If not check with gem which right_aws. Make sure that the file you are editing matches the one that was specified by this.

+3
source

. / gem , .

+1

Source: https://habr.com/ru/post/1749855/


All Articles