Bird
0
0

Which file defines the gem's metadata like name, version, and author?

easy📝 Conceptual Q2 of 15
Ruby - Gems and Bundler
Which file defines the gem's metadata like name, version, and author?
AGemfile
BREADME.md
CRakefile
Dgemspec
Step-by-Step Solution
Solution:
  1. Step 1: Identify gem metadata location

    The gemspec file holds metadata such as name, version, and author details.
  2. Step 2: Differentiate from other files

    Gemfile manages dependencies, Rakefile automates tasks, README.md documents the gem.
  3. Final Answer:

    gemspec -> Option D
  4. Quick Check:

    Metadata file = gemspec [OK]
Quick Trick: Metadata lives in the gemspec file [OK]
Common Mistakes:
  • Confusing Gemfile with gemspec
  • Thinking README.md holds metadata
  • Using Rakefile for metadata

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Ruby Quizzes