Avoid installing importer dependencies and test-suite dependencies while building / deploying the documentation site.
Background
While setting-up Deploy Previews (on pull_request events) for the docs-site via Netlify. the build-image there failed to install certain gems with native=extensions due to missing dependencies of the native-code compiler.
Advantages
Lesser number of gems to install.
Using conditional block in the gemspec instead of a Bundler group in the Gemfile means dev-dependencies continue getting listed at the Rubygems.org page as is current behavior.
Summary
Avoid installing importer dependencies and test-suite dependencies while building / deploying the documentation site.
Background
While setting-up Deploy Previews (on
pull_request
events) for the docs-site via Netlify. the build-image there failed to install certain gems with native=extensions due to missing dependencies of the native-code compiler.Advantages