Ruby Gems - Study Mode

[#6] What is the purpose of the --no-ri and --no-rdoc flags when installing gems using Bundler?
Correct Answer

(C) Skips generating documentation for installed gems

[#7] What is the purpose of the gemspec file in a Ruby gem?
Correct Answer

(D) To specify information about the gem, such as its name, version, and dependencies

[#8] What is the purpose of the gem environment command in Ruby?
Correct Answer

(C) Displays information about the RubyGems environment

[#9] How do you create a new Ruby gem?
Correct Answer

(B) By running bundle gem gem_name

[#10] What does the command gem pristine gem_name do in Ruby?
Correct Answer

(C) Restores a gem to its pristine condition