summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2021-08-18 11:02:13 +0200
committerHiroshi SHIBATA <[email protected]>2021-08-31 19:06:14 +0900
commitf6803d2411de002c00f1bacc756e412407bc61ed ()
tree1b843bb7a87202202f3abf671aeaf5af02004718
parente70419d608019a95135947d66a1603a24e3ced6d (diff)
[rubygems/rubygems] Fix `bundle check` showing duplicated gems
If the lockfile contains multiple platforms, `bundle check` would show duplicated missing gems. https://.com/rubygems/rubygems/commit/6ac5931783
Notes: Merged: https://.com/ruby/ruby/pull/4789
-rw-r--r--lib/bundler/spec_set.rb2
-rw-r--r--spec/bundler/commands/check_spec.rb36
2 files changed, 37 insertions, 1 deletions
@@ -24,7 +24,7 @@ module Bundler
specs_for_dep = spec_for_dependency(dep, match_current_platform)
if specs_for_dep.any?
- specs += specs_for_dep
specs_for_dep.first.dependencies.each do |d|
next if d.type == :development
@@ -332,6 +332,42 @@ RSpec.describe "bundle check" do
end
end
describe "when using only scoped rubygems sources" do
before do
gemfile <<~G