fix rubocop cop Style/SpaceAroundOperators

This commit is contained in:
Pavel Lobashov 2015-06-08 10:26:13 +03:00
parent 68181da2c7
commit f7eec2dd76
3 changed files with 4 additions and 4 deletions

View File

@ -18,8 +18,8 @@ module Zip
# size: 0 for central directory. 4 for local header
return if !size || size == 0
uid, gid = content.unpack('vv')
@uid ||= uid
@gid ||= gid
@uid ||= uid
@gid ||= gid
end
def ==(other)

View File

@ -190,7 +190,7 @@ module Zip
segment_bytes_left = ssegment_size - chunk_bytes
buffer_size = segment_bytes_left < DATA_BUFFER_SIZE ? segment_bytes_left : DATA_BUFFER_SIZE
chunk = zip_file.read(buffer_size)
chunk_bytes += buffer_size
chunk_bytes += buffer_size
szip_file << chunk
# Info for track splitting
yield segment_count, szip_file_index, chunk_bytes, ssegment_size if block_given?

View File

@ -80,7 +80,7 @@ module Zip
over_limit = (number_of_bytes && @output_buffer.bytesize >= number_of_bytes)
end
sep_index = [match_index + a_sep_string.bytesize, number_of_bytes || @output_buffer.bytesize].min
@pos += sep_index
@pos += sep_index
@output_buffer.slice!(0...sep_index)
end