Install ruby gem from private gitlab repository

Hello I have ruby on rails project and I can not figure out how to add gem from private gitlab’s repo to Gemfile. Any ideas?