Local RubyGems repositories are physical, locally-managed repositories into which you can deploy and manage your in-house Gems.
To create a local RubyGems repository, in the Administration module, under Repositories | Repositories | Local, click New Local Repository and set Gems to be the Package Type.
You can set up a local RubyGems repository as follows:
You need to add the repository source URL by modifying your
~/.gemrc file or using the
gem source command as displayed below. You can extract the source URL by selecting the repository in the Tree Browser and clicking Set Me Up.
Notice that there are two sources. First, the remote proxy, then the local one. This will effectively allow you to retrieve Gems from both of them in the specified order.
All RubyGems repositories must be prefixed with api/gems in the path
When using the RubyGems command line to access a repository through Artifactory, the repository URL must be prepended with
api/gems in the path.
gem source -a http://localhost:8081/artifactory/api/gems/my-gems-local/