[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 коммит произвёл git
Родитель 760b8b7d24
Коммит f3b129241c
4 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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`

Просмотреть файл

@ -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

Просмотреть файл

@ -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.")

Просмотреть файл

@ -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)