Skip to content

Commit

Permalink
[rubygems/rubygems] Applied Layout/SpaceAroundOperators cop
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and matzbot committed Mar 16, 2023
1 parent 760b8b7 commit f3b1292
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/cli.rb
Expand Up @@ -771,7 +771,7 @@ def self.check_deprecated_ext_option(arguments)

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`
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/digest.rb
Expand Up @@ -26,7 +26,7 @@ def sha1(string)
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
Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/install/gemfile/sources_spec.rb
Expand Up @@ -1074,7 +1074,7 @@
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.")
Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/runtime/self_management_spec.rb
Expand Up @@ -92,7 +92,7 @@
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)

Expand Down

0 comments on commit f3b1292

Please sign in to comment.