A RubyGems repository is a storage place on the internet where Ruby libraries (called gems) are kept. Developers can download and share these gems easily.
Click to reveal answer
beginner
How do you install a gem from a RubyGems repository?
You use the command gem install gem_name in your terminal. This downloads the gem from the RubyGems repository and installs it on your computer.
Click to reveal answer
beginner
What is the default RubyGems repository URL?
The default RubyGems repository URL is https://rubygems.org. This is where most gems are hosted and downloaded from.
Click to reveal answer
intermediate
How can you specify a custom RubyGems repository?
You can specify a custom repository by using the --source option with the gem command, like gem install gem_name --source https://custom.repo.url.
Click to reveal answer
intermediate
What is the purpose of the gem push command?
The gem push command uploads your gem to a RubyGems repository so others can use it. You need to be logged in to the repository to push gems.
Click to reveal answer
What command installs a gem from the default RubyGems repository?
Agem remove gem_name
Bgem push gem_name
Cgem update gem_name
Dgem install gem_name
✗ Incorrect
The gem install gem_name command downloads and installs a gem from the default repository.
What is the default URL for the RubyGems repository?
Ahttps://rubygems.org
Bhttps://gems.ruby.com
Chttps://rubyrepo.net
Dhttps://gemstore.com
✗ Incorrect
The official RubyGems repository is hosted at https://rubygems.org.
Which command uploads your gem to a RubyGems repository?
Agem install
Bgem push
Cgem fetch
Dgem build
✗ Incorrect
Use gem push to upload your gem to a repository.
How do you install a gem from a custom repository?