0
0
Rubyprogramming~10 mins

Gem installation with gem install in Ruby - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install the 'rails' gem using the command line.

Ruby
gem [1] rails
Drag options to blanks, or click blank then click option'
Aupdate
Binstall
Cremove
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'gem update' instead of 'gem install'.
Using 'gem remove' which deletes gems.
Using 'gem list' which only shows installed gems.
2fill in blank
medium

Complete the code to install version 2.7.0 of the 'nokogiri' gem.

Ruby
gem install nokogiri -v [1]
Drag options to blanks, or click blank then click option'
A2.7.0
Blatest
C1.10.10
D3.0.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' as a version number.
Using a version number that is not available.
Omitting the -v flag.
3fill in blank
hard

Fix the error in the command to install the 'sinatra' gem with version 2.1.0.

Ruby
gem install sinatra [1] 2.1.0
Drag options to blanks, or click blank then click option'
A--version
B-ver
C-v
D-version
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--version' which is not recognized by gem install.
Using '-ver' or '-version' which cause errors.
4fill in blank
hard

Fill both blanks to install the 'puma' gem with version 5.6.4 and show verbose output.

Ruby
gem [1] puma [2] 5.6.4 --verbose
Drag options to blanks, or click blank then click option'
Ainstall
Bupdate
C-v
D-V
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' instead of 'install'.
Using '-V' which is not the version flag.
5fill in blank
hard

Fill all three blanks to install the 'devise' gem version 4.8.0 with documentation skipped.

Ruby
gem [1] devise [2] 4.8.0 [3]
Drag options to blanks, or click blank then click option'
Ainstall
B-v
C--no-document
D--skip-docs
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--skip-docs' which is not a valid gem flag.
Omitting the version flag.