Whenever developing gems, I don’t see any reasons why Gemfile is not directly inspected for dependencies.
Indeed, why use a .gemspec file in order to list them ? Is there a real benefit ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well that’s because the
Gemfileisn’t a file from Rubygems, but a file from Bundler. So the Rubygem developers would have to extend their used files in order to support Gemfile. Since there already is the.gemspecfile, there is no valid reason why they should. (there are enough gems which do well without aGemfile)In fact, it is recommended to use this as the only contents of the
Gemfileof gems:It will instruct bundler to use the
.gemspecfile as the authorative source of gems.