I've been developing Rails apps now for about a year and am starting on a new project (that's actually 3 projects). I'd like to write some gems that can be shared amongst these projects to maintain a common code-base. They'll likely eventually evolve into Rails engines at some point, but to start, just common libraries that can be included into each app.
I've never authored a rubygem before so I'm looking for tips and tricks as to where/how I should start building this gem:
- Is it easiest start programming it nested within a rails app, say, as a git submodule to take advantage of existing rails environment etc...?
- Should I start programming it just as a standalone library? (my non-rails experience is fairly rudimentary so i'm not sure about structure/setup/testing)
I'd like to stick within the simple Rails conventions as much as possible with proper testing environment etc... Probably won't be Rails3 adopters yet but will obviously head in that direction.
Any tips, tricks, suggestions or recommended resources are all greatly appreciated!!