0
0
Rubyprogramming~5 mins

RubyGems repository - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Agem remove gem_name
Bgem push gem_name
Cgem update gem_name
Dgem install gem_name
What is the default URL for the RubyGems repository?
Ahttps://rubygems.org
Bhttps://gems.ruby.com
Chttps://rubyrepo.net
Dhttps://gemstore.com
Which command uploads your gem to a RubyGems repository?
Agem install
Bgem push
Cgem fetch
Dgem build
How do you install a gem from a custom repository?
Agem install gem_name --source https://custom.repo.url
Bgem push gem_name --source https://custom.repo.url
Cgem update gem_name --source https://custom.repo.url
Dgem remove gem_name --source https://custom.repo.url
Before pushing a gem to RubyGems, what must you do?
AUpdate RubyGems
BInstall the gem locally
CBuild the gem with <code>gem build</code>
DRemove old gems
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.