Use the Jeweler gem.
Seriously this is a brilliant piece of work. It allows you to concentrate on building your gem.
Create a file for bundler to load
I am using ‘_’ as a convention for filenames as ClassName to class_name
has been a convention in the rails community and the ruby community for a
long while. I have seen ‘-’ as well I prefer ‘_’ as ctags will interpret
‘something-thing’ as ‘something minus thing’ and i won’t get tab complete
in my editor.
This file’s name needs to match the name of your gem (gem_name) with ‘.rb’ after it
This file will need to require your engine
Create a file namespaced to the gem_name directory with a the filename ‘engine’
This file will hold the following code
create a directory
modify the Rakefile Summary and Description and commit your changes
release your gem
include your gem in your rails application’s Gemfile
require any asset files you need from the gem in application.js
send a message to email@example.com telling me that you got it working