On Mar 20, 9:45pm, [email protected] wrote:
How would I go about to deploy this in production ‘the rails way’?
If you’re using bundler (which you should be), then you can:
Fork the gem and checkout that fork
Make your modifications to your fork (include tests if possible)
and push back to origin.
Update bundler to pull from your forked repository instead of
rubygems for that particular gem:
gem ‘event_calendar’, :git => ‘git://github.com/your_account_name/
This way you have an authoritative version of your changes to the gem
on github that your project can answer, and you can use the power of
git to merge in upstream changes, etc. as you go along. And if it
makes sense you can make a Pull Request so you no longer need to
maintain the code.
A side note, since your fork is public if you want to do more local
integration testing in #2 before pushing it back to origin you can
point bundler at a local git repository too:
gem 'event_calendar', :git => '/some/path/to/local/checkouts/
And that way you can make changes, rebase, etc. locally to get
everything happy, and then when ready push to origin and update your