I currently am working on a project where I have a main application that has several hosted engines. One of these engines is for the authentication and session handling that is currently stored in the main application in its own root folder.
I wish to create a gem from this folder and import it to the main application so that it can be used to make authentication calls for the user and session etc.
How can I go about creating a gem from this folder and making the classes and methods within available to the main application.
Any information or links you have on this would be greatly appreciated.