diff options
author | David Stosik <david.stosik+git-noreply@gmail.com> | 2019-08-15 14:47:57 +0900 |
---|---|---|
committer | David Stosik <david.stosik+git-noreply@gmail.com> | 2019-08-15 14:47:57 +0900 |
commit | d18a83109e9c420aec2da15db85af97635eca232 (patch) | |
tree | d4093fb49ba5e8f3daa024ab9dca10665d315911 | |
parent | 9452a005b8e62eeddd1309523faf9cf7b8698edd (diff) | |
download | bundler-d18a83109e9c420aec2da15db85af97635eca232.tar.gz |
Bundler displays a duplicate gem entries warning even if gems only appear once per group
-rw-r--r-- | lib/bundler/dsl.rb | 2 | ||||
-rw-r--r-- | 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 534c9b5537..cc23f9b389 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -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 diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb index e279d71827..8e161a4aae 100644 --- a/spec/commands/install_spec.rb +++ b/spec/commands/install_spec.rb @@ -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 |