Bird
0
0

You wrote this line in your Gemfile:

medium📝 Debug Q6 of 15
Ruby - Gems and Bundler
You wrote this line in your Gemfile:
gem 'sidekiq' '~> 6.0'

What is the problem?
AWrong version operator used
BGem name should be capitalized
CMissing comma between gem name and version constraint
DNo problem, this is correct syntax
Step-by-Step Solution
Solution:
  1. Step 1: Check syntax for gem declaration with version

    The gem name and version constraint must be separated by a comma.
  2. Step 2: Identify missing comma in the given line

    The line misses the comma between 'sidekiq' and '~> 6.0', causing a syntax error.
  3. Final Answer:

    Missing comma between gem name and version constraint -> Option C
  4. Quick Check:

    Comma separates gem name and version [OK]
Quick Trick: Always put a comma between gem and version [OK]
Common Mistakes:
  • Omitting comma between gem name and version
  • Using wrong quotes or no quotes
  • Assuming capitalization matters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Ruby Quizzes