This topic describes how to create a RubyGems Repository. This is required before uploading and installing RubyGems packages. There are three primary types of repositories:
Local repositories: Where you store and share 1st and 2nd party packages with your organization
Remote repositories: Enable you to download from any remote location, including external package registries or other Artifactory instances
Virtual repositories: Enable aggregating remote and local repositories, enabling your organization to scale by providing a single URL that allows access to multiple repositories and types
For more information on JFrog repositories, see Repository Management Overview.
Prerequisite: You need Admin or Project Admin permissions to create a RubyGems repository. If you don't have Admin permissions, the option will not be available.
To create a RubyGems repository:
In the Administration tab, click Repositories | Create a Repository
Select the repository type you want to create, configure the required fields (described in the following list), then click Create a Repository.
For Local Repositories, in the Repository Key field, type a meaningful name for the repository. For example,
rubygems-local-repository-1. For more information on local repositories and all their possible settings, see Local Repositories. See how to Set Up and use Local RubyGems repositories.For Remote Repositories, additionally, verify the Repository URL and update if needed. For more information on Remote Repositories and all their possible settings, see Remote Repositories. See how to use Remote RubyGems repositories.
For Virtual Repositories, additionally select one or more local or remote repository types to include in the virtual repository. For more information on virtual repositories and all their possible settings, see Virtual Repositories. See how to use Virtual RubyGems repositories.
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 prefixed with api/gems in the path.
All RubyGems commands, including gem source and gem push, must prepend the repository path with api/gems .
For example, if you are using Artifactory standalone or as a local service, you would access your RubyGem repositories using the following URL:
http://localhost:8081/artifactory/api/gems/<repository key>
Or, if you are using Artifactory Cloud, the URL would be:
https://<server name>.jfrog.io/artifactory/api/gems/<repository key>