Merge pull request #7621 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-0.84.0
build(deps): bump rubocop from 0.83.0 to 0.84.0 in /Library/Homebrew
This commit is contained in:
commit
dee3903b57
1
.gitignore
vendored
1
.gitignore
vendored
@ -120,6 +120,7 @@
|
||||
**/vendor/bundle/ruby/*/gems/rspec-support-*/
|
||||
**/vendor/bundle/ruby/*/gems/rspec-wait-*/
|
||||
**/vendor/bundle/ruby/*/gems/rubocop-0*/
|
||||
**/vendor/bundle/ruby/*/gems/rubocop-ast-*/
|
||||
**/vendor/bundle/ruby/*/gems/ruby-prof-*/
|
||||
**/vendor/bundle/ruby/*/gems/ruby-progressbar-*/
|
||||
**/vendor/bundle/ruby/*/gems/simplecov-*/
|
||||
|
||||
@ -81,13 +81,16 @@ GEM
|
||||
rspec-support (3.9.3)
|
||||
rspec-wait (0.0.9)
|
||||
rspec (>= 3, < 4)
|
||||
rubocop (0.83.0)
|
||||
rubocop (0.84.0)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 2.7.0.1)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
rexml
|
||||
rubocop-ast (>= 0.0.3)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 1.4.0, < 2.0)
|
||||
rubocop-ast (0.0.3)
|
||||
parser (>= 2.7.0.1)
|
||||
rubocop-performance (1.5.2)
|
||||
rubocop (>= 0.71.0)
|
||||
rubocop-rspec (1.39.0)
|
||||
|
||||
@ -437,13 +437,13 @@ module Kernel
|
||||
n_back_bytes = max_bytes_in - n_front_bytes
|
||||
if n_front_bytes.zero?
|
||||
front = bytes[1..0]
|
||||
back = bytes[-max_bytes_in..-1]
|
||||
back = bytes[-max_bytes_in..]
|
||||
elsif n_back_bytes.zero?
|
||||
front = bytes[0..(max_bytes_in - 1)]
|
||||
back = bytes[1..0]
|
||||
else
|
||||
front = bytes[0..(n_front_bytes - 1)]
|
||||
back = bytes[-n_back_bytes..-1]
|
||||
back = bytes[-n_back_bytes..]
|
||||
end
|
||||
out = front + glue_bytes + back
|
||||
out.force_encoding("UTF-8")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user