From d18a83109e9c420aec2da15db85af97635eca232 Mon Sep 17 00:00:00 2001 From: David Stosik Date: Thu, 15 Aug 2019 14:47:57 +0900 Subject: [PATCH] Bundler displays a duplicate gem entries warning even if gems only appear once per group --- lib/bundler/dsl.rb | 2 +- spec/commands/install_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index 534c9b55374..cc23f9b389a 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -128,7 +128,7 @@ def gem(name, *args) 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 diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb index e279d71827d..8e161a4aae6 100644 --- a/spec/commands/install_spec.rb +++ b/spec/commands/install_spec.rb @@ -330,7 +330,7 @@ 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 @@ 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