From 6f396645f41c3210c2dba3bcc86778103a01f71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 8 Mar 2019 12:03:59 +0100 Subject: `finish_resolve` is not actually needed --- bin/rake | 2 -- bin/rspec | 2 -- bin/rubocop | 2 -- 3 files changed, 6 deletions(-) diff --git a/bin/rake b/bin/rake index 6c08fb0b97..cf4131d5b0 100755 --- a/bin/rake +++ b/bin/rake @@ -14,8 +14,6 @@ rake_requirement = rake.requirement.to_s begin gem "rake", rake_requirement - Gem.finish_resolve if Gem.respond_to?(:finish_resolve) - load Gem.bin_path("rake", "rake") rescue Gem::LoadError warn "We couln't activate rake (#{rake_requirement}). Run `gem install rake:'#{rake_requirement}'`" diff --git a/bin/rspec b/bin/rspec index 4ef45c9b32..a3980e6744 100755 --- a/bin/rspec +++ b/bin/rspec @@ -14,8 +14,6 @@ rspec_requirement = rspec.requirement.to_s begin gem "rspec", rspec_requirement - Gem.finish_resolve if Gem.respond_to?(:finish_resolve) - load Gem.bin_path("rspec-core", "rspec") rescue Gem::LoadError warn "We couln't activate rspec (#{rspec_requirement}). Try `gem install rspec:'#{rspec_requirement}'`" diff --git a/bin/rubocop b/bin/rubocop index ac84b47963..ef86f084a9 100755 --- a/bin/rubocop +++ b/bin/rubocop @@ -14,8 +14,6 @@ rubocop_requirement = rubocop.requirement.to_s begin gem "rubocop", rubocop_requirement - Gem.finish_resolve if Gem.respond_to?(:finish_resolve) - load Gem.bin_path("rubocop", "rubocop") rescue Gem::LoadError warn "We couln't activate rubocop (#{rubocop_requirement}). Try `gem install rubocop:'#{rubocop_requirement}'`" -- cgit v1.2.1