[rubygems/rubygems] Applied Layout/SpaceAroundOperators cop

https://github.com/rubygems/rubygems/commit/3139587be9
This commit is contained in:
Hiroshi SHIBATA 2023-03-15 18:07:35 +09:00 committed by git
parent 760b8b7d24
commit f3b129241c
4 changed files with 4 additions and 4 deletions

View File

@ -771,7 +771,7 @@ module Bundler
def self.deprecated_ext_value?(arguments) def self.deprecated_ext_value?(arguments)
index = arguments.index("--ext") 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 # it is ok when --ext is followed with valid extension value
# for example `bundle gem hello --ext c` # for example `bundle gem hello --ext c`

View File

@ -26,7 +26,7 @@ module Bundler
end end
a, b, c, d, e = *words a, b, c, d, e = *words
(16..79).each do |i| (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 end
0.upto(79) do |i| 0.upto(79) do |i|
case i case i

View File

@ -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 it "refuses to install the existing lockfile and prints an error", :bundler => "3" do
bundle "config set --local deployment true" 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(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.") expect(err).to include("Your lockfile contains a single rubygems source section with multiple remotes, which is insecure.")

View File

@ -92,7 +92,7 @@ RSpec.describe "Self management", :rubygems => ">= 3.3.0.dev", :realworld => tru
end end
it "shows a discrete message if locked bundler does not exist" do 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) lockfile_bundled_with(missing_minor)