Back

Splitting code into gems

I must admit that I don't have much experience with Ruby gems. I absolutely love the concept, and it's something that I aim to learn more about in next year.

If I'm honest, I am excited that the savings it will bring my business. Lots of the custom applications we build have underlying core technology that we either end up duplicating or rebuilding. I'm excited for the consistency it will bring our code, and allowing us to build our own standard library that we can share among our clients.

From what I have read there seems to be two types of gems - the 'Standard' gem and the 'Rails Engine' gem.

I found this tutorial great as a starting point, as it allowed me to create a gem from scratch without using any genertators. I used this to easily abstract logic away from one my main apps.