diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-07-25 11:32:52 -0500 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-08-20 11:18:13 +1000 |
commit | 778a11b2b78b900a0803da871a280af87556a3fc (patch) | |
tree | c2e09630754fac9ac95afe8419060d97fcce0909 | |
parent | c6a85baca15687e9bcf553d3be8439662ebe4c45 (diff) | |
download | bundler-778a11b2b78b900a0803da871a280af87556a3fc.tar.gz |
Fix detecting binstubs mismatch
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 3016a19e03..6f8a7608b0 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -455,7 +455,7 @@ module Bundler raise Gem::Exception, "no default executable for #{spec.full_name}" unless exec_name ||= spec.default_executable - unless spec.name == exec_name + unless spec.name == gem_name Bundler::SharedHelpers.major_deprecation 2, "Bundler is using a binstub that was created for a different gem (#{spec.name}).\n" \ "You should run `bundle binstub #{gem_name}` " \ |