Recall & Review
beginner
What is a RubyGems repository?
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?
✗ 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?
✗ Incorrect
The official RubyGems repository is hosted at
https://rubygems.org.Which command uploads your gem to a RubyGems repository?
✗ Incorrect
Use
gem push to upload your gem to a repository.How do you install a gem from a custom repository?
✗ Incorrect
The
--source option with gem install lets you specify a custom repository URL.Before pushing a gem to RubyGems, what must you do?
✗ Incorrect
You must build your gem package first using
gem build before pushing it.Explain what a RubyGems repository is and how it helps Ruby developers.
Think about where Ruby code libraries are kept online.
You got /3 concepts.
Describe the steps to publish your own gem to a RubyGems repository.
Consider what commands you run before and during publishing.
You got /3 concepts.