Ruby Gems - Study Mode
[#26] Which command is used to build a Ruby gem from a gemspec file?
Correct Answer
(A) gem build gemspec_file
[#27] Which command is used to view information about a specific gem in Ruby?
Correct Answer
(A) gem info gem_name
[#28] What is the purpose of the --version flag when installing a gem using the gem install command in Ruby?
Correct Answer
(D) Specifies the version of the gem to be installed
[#29] What is the purpose of the --development flag when installing gems using Bundler?
Correct Answer
(C) Installs development dependencies along with regular dependencies
[#30] What is the purpose of the bundle install --without production command in Ruby projects?
Correct Answer
(B) Installs gems excluding those specified in the production group