Resolve RubyGems Packages

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

You can resolve RubyGems packages from Local, Remote, and Virtual RubyGems Repositories specified as supporting RubyGems packages.

Note

Applicable for Local, Remote, and Virtual repositories.

After completing the configuration under the General section above, simply execute the following command:

gem install <PACKAGE>

The package will be resolved from the repository configured in your ~/.gemrc file. You can also specify a source with the following command:

gem install <PACKAGE> --source  https://[JFrogPlatformURL]/artifactory/api/gems/<REPOSITORY>

Where:

  • <PACKAGE>: The name of the package to install

  • [JFrogPlatformURL]: The URL of your JFrog Platform Deployment.

  • [REPOSITORY]: The name of your local, remote, or virtual RubyGems repository.

Example (Local Repository):

gem install mygem --source https://company.jfrog.io/artifactory/api/gems/sharan-ruby-test-local 

Example (Remote Repository):

gem install another-gem --source https://company.jfrog.io/artifactory/api/gems/gal-gems-remote

Example (Virtual Repository):

gem install third-gem --source https://company.jfrog.io/artifactory/api/gems/ruby-bal-virtual