bundle gem yourgemname
cd yourgemname
bundle install
gem build ./yourgemname.gemspec
gem "yourgemname", :path => "/path/to/yourgemname"
gem push yourgemname-0.0.1.gem
require 'rake'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
task :make do
puts `gem build #{Dir['*.gemspec'].first}`
end