From f3b129241c2f12c2db8382be67fa304d4034c9ba Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 15 Mar 2023 18:07:35 +0900 Subject: [PATCH] [rubygems/rubygems] Applied Layout/SpaceAroundOperators cop https://github.com/rubygems/rubygems/commit/3139587be9 --- lib/bundler/cli.rb | 2 +- lib/bundler/digest.rb | 2 +- spec/bundler/install/gemfile/sources_spec.rb | 2 +- spec/bundler/runtime/self_management_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index a3eb494db2..dd91038d64 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -771,7 +771,7 @@ module Bundler def self.deprecated_ext_value?(arguments) index = arguments.index("--ext") - next_argument = arguments[index+1] + next_argument = arguments[index + 1] # it is ok when --ext is followed with valid extension value # for example `bundle gem hello --ext c` diff --git a/lib/bundler/digest.rb b/lib/bundler/digest.rb index f11f5edd38..148e9f7788 100644 --- a/lib/bundler/digest.rb +++ b/lib/bundler/digest.rb @@ -26,7 +26,7 @@ module Bundler end a, b, c, d, e = *words (16..79).each do |i| - w[i] = SHA1_MASK & rotate((w[i-3] ^ w[i-8] ^ w[i-14] ^ w[i-16]), 1) + w[i] = SHA1_MASK & rotate((w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]), 1) end 0.upto(79) do |i| case i diff --git a/spec/bundler/install/gemfile/sources_spec.rb b/spec/bundler/install/gemfile/sources_spec.rb index b20ab0090f..7189967d29 100644 --- a/spec/bundler/install/gemfile/sources_spec.rb +++ b/spec/bundler/install/gemfile/sources_spec.rb @@ -1074,7 +1074,7 @@ RSpec.describe "bundle install with gems on multiple sources" do it "refuses to install the existing lockfile and prints an error", :bundler => "3" do bundle "config set --local deployment true" - bundle "install", :artifice => "compact_index", :raise_on_error =>false + bundle "install", :artifice => "compact_index", :raise_on_error => false expect(lockfile).to eq(aggregate_gem_section_lockfile) expect(err).to include("Your lockfile contains a single rubygems source section with multiple remotes, which is insecure.") diff --git a/spec/bundler/runtime/self_management_spec.rb b/spec/bundler/runtime/self_management_spec.rb index 61cfc9b795..700084babf 100644 --- a/spec/bundler/runtime/self_management_spec.rb +++ b/spec/bundler/runtime/self_management_spec.rb @@ -92,7 +92,7 @@ RSpec.describe "Self management", :rubygems => ">= 3.3.0.dev", :realworld => tru end it "shows a discrete message if locked bundler does not exist" do - missing_minor ="#{Bundler::VERSION[0]}.999.999" + missing_minor = "#{Bundler::VERSION[0]}.999.999" lockfile_bundled_with(missing_minor)