1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Bundler displays a duplicate gem entries warning even if gems only appear once per group

https://github.com/bundler/bundler/commit/d18a83109e
This commit is contained in:
David Stosik 2019-08-15 14:47:57 +09:00 committed by Hiroshi SHIBATA
parent 3ecb5125c6
commit a02dbcecb1
2 changed files with 3 additions and 3 deletions

View file

@ -128,7 +128,7 @@ module Bundler
else
Bundler.ui.warn "Your Gemfile lists the gem #{current.name} (#{current.requirement}) more than once.\n" \
"You should probably keep only one of them.\n" \
"Remove any duplicate entries and specify the gem only once (per group).\n" \
"Remove any duplicate entries and specify the gem only once.\n" \
"While it's not a problem now, it could cause errors if you change the version of one of them later."
end

View file

@ -330,7 +330,7 @@ RSpec.describe "bundle install with gem sources" do
G
expect(err).to include("Your Gemfile lists the gem rack (>= 0) more than once.")
expect(err).to include("Remove any duplicate entries and specify the gem only once (per group).")
expect(err).to include("Remove any duplicate entries and specify the gem only once.")
expect(err).to include("While it's not a problem now, it could cause errors if you change the version of one of them later.")
end
@ -342,7 +342,7 @@ RSpec.describe "bundle install with gem sources" do
G
expect(err).to include("Your Gemfile lists the gem rack (= 1.0) more than once.")
expect(err).to include("Remove any duplicate entries and specify the gem only once (per group).")
expect(err).to include("Remove any duplicate entries and specify the gem only once.")
expect(err).to include("While it's not a problem now, it could cause errors if you change the version of one of them later.")
end
end