Gem for rails

how make gem.
1.ex i make gem hello( self.hi puts “hello world”)
2.push to git
3.add gem inside gemfile on my app rails
4.bundle install
5.?
so how use gem on rails that was i make.?