diff options
Diffstat (limited to 'bin/rubocop')
-rwxr-xr-x | bin/rubocop | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rubocop b/bin/rubocop index bc81f5cc88..01840861cc 100755 --- a/bin/rubocop +++ b/bin/rubocop @@ -1,6 +1,8 @@ #!/usr/bin/env ruby # frozen_string_literal: true +load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"] + require "rubygems" bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__)) @@ -10,8 +12,6 @@ end gem "rubocop", "= 0.37.1" -Gem::Specification.unresolved_deps.each do |_name, dep| - gem dep.name, *dep.requirement -end +Gem.finish_resolve if Gem.respond_to?(:finish_resolve) load Gem.bin_path("rubocop", "rubocop") |