← Back to Upcase

Gemfile vs .gemspec for dev dependencies in a Gem/Engine


(Nathaniel Watts) #1

I can’t seem to find any clarification on this online -

Is there a reason why someone would declare development dependencies in their .gemspec file vs their Gemfile (with bundle groups). Or why both forms would be used in the same project?

Examples:


(Pau Pérez) #2

When I need to clarify these concepts I always go to this in-depth article from Yehuda Katz: http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/

I hope it’s helpful to you!