Recently I started using a gem called blackbook. The gem has a few issues that I would like to fix. I cloned the git repo and installed the gem locally, hoping I could mess with the source code. When I edit the source code nothing happens, so now I am thinking that I must rebuild the gem every time I make a change.
My question is this: Should I be able to edit the source code of the gem and see results immediately, or should I use the source code as a plugin to my rails app, and then rebuild the gem only when I have made significant progress?
Thank you,
Tony
You can mess with the source code of the installed gem to change the behavior of what you have installed. But unless you are playing path games this won’t affect the gem itself even if you rebuild.
What I generally do is this:
Also, if you are using git hub they should automatically rebuild the gem for you every time you push a commit with an updated gemspec (e.g., you’ve changed the version number).