In my own gem, I have a Gemfile
that looks basically like this:
source 'https://my.gemserver.com'
source 'https://rubygems.org'
gemspec
My .gemspec
has all dependencies listed as add_dependency
and add_development_dependency
.
As of Bundler 1.8, I get the warning:
Warning: this Gemfile contains multiple primary sources. Using `source` more than
once without a block is a security risk, and may result in installing unexpected gems.
To resolve this warning, use a block to indicate which gems should come from the
secondary source. To upgrade this warning to an error,
run `bundle config disable_multisource true`.
Is there a way to resolve this warning (without muting via bundle config)? I cannot find anything about a source option in the Rubygems specification.
Gemfile
and.gemspec
hold. – Maiteadd_development_dependency
in the .gemspec. I believe this comes from a pre-bundler era and gems there should belong to the Gemfile. – Nocturne