Host gems in GitLab

I’ve created a few custom Rails gems for my employer but now I need to find somewhere to host the gems. Is it possible to host Rails gems on a local GitLab CE server and reference them similarly to ones hosted on GitHub.

GitHub Example:
gem “devise_ldap_authenticatable”, :git => “git://github.com/cschiewek/devise_ldap_authenticatable.git”

GitLab Example?
gem “my_employer_gem”, :git => “git://gitlab.employer.com/me/my_employer_gem.git”

You can certainly do that.

However, you can’t use the git:// URL, which uses the “Git Protocol” on port 9418, since GitLab doesn’t support it.

Instead, use :git => "git@gitlab.employer.com:me/my_employer_gem.git" to get the Gem using Git+SSH or :git => "https://gitlab.employer.com/me/my_employer_gem.git" to get it using Git+HTTPS.