When building new gems I like to run the command gem build app.gemspec
instead of rake build
because I get extra warnings, kind of lint for my gem specification.
However both commands have the problem that they actually generate in gem file and that is something that I never want, since I use my gems by referencing either their repository or path from other projects inside the Gemfile of those other projects.
Is there a way to lint / test my gemspec files like gem build
does without actually generating the final gem? gem build
does not support the --dry-run
command